summaryrefslogtreecommitdiffstats
path: root/android_webview
Commit message (Collapse)AuthorAgeFilesLines
* Renaming org.chromium.android_webview.CookieManager to AwCookieManagerkristianm@chromium.org2012-12-205-138/+121
| | | | | | | | | | | Final patch BUG= Review URL: https://chromiumcodereview.appspot.com/11640048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174262 0039d316-1c4b-4281-b951-d872f2087c98
* Re-enable tests diabled in r174194boliu@chromium.org2012-12-206-115/+73
| | | | | | | | | | | | | | | | | | | Everything is re-enabled except ContentViewPopupZoomerTest#testPopupZoomerShowsUp which actually is flaky. These tests are only failing on a buildbot with a device that was not properly provisioned for running tests. BUG=167045, 167073, 167074, 167075, 167076 NOTRY=true R=ilevy@chromium.org,yfriedman@chromium.org,digit@chromium.org TBR=joth@chromium.org Review URL: https://chromiumcodereview.appspot.com/11635053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174250 0039d316-1c4b-4281-b951-d872f2087c98
* [Android Webview] Remove CreatePluginReplacement override.benm@chromium.org2012-12-202-11/+0
| | | | | | | | | | There's no need for android webview to override this method, so remove it. Review URL: https://chromiumcodereview.appspot.com/11571082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174239 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Update and extend the description of AwDrawGLInfo.leandrogracia@chromium.org2012-12-201-5/+23
| | | | | | | | BUG=161409 Review URL: https://chromiumcodereview.appspot.com/11411010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174234 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Add a system property to disable OpenGL state restoration ↵leandrogracia@chromium.org2012-12-201-41/+49
| | | | | | | | | | | | | | | in the draw functor. Add support to disable GL state restoration in Android GL functor calls when the webview.chromium_no_gl_restore property is set to "true". BUG=164140 Review URL: https://chromiumcodereview.appspot.com/11636038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174221 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Add API to focus the intial node.benm@chromium.org2012-12-204-0/+31
| | | | | | | | | | | | | Add a setting and API to allow the first node in the DOM to be given input focus. This is needed for the legacy WebSettings.setNeedsInitialFocus and WebView.requestFocus APIs. Android only change and android bots are green NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11618039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174201 0039d316-1c4b-4281-b951-d872f2087c98
* Disable failing testsdigit@chromium.org2012-12-206-73/+115
| | | | | | | | | | | | | | | | For the record, these tests don't look flaky at all, so I prefer disabling them directly. Unfortunately, it's very hard to know when the failures were introduced because previous content_unittests failures completely masked these problems and were only recently fixed. BUG=167045,167073,167074,167075,167076 NOTRY=true TBR=joth@chromium.org,torne@chromium.org,ilevy@chromium.org,yfriedman@chromium.org Review URL: https://chromiumcodereview.appspot.com/11639046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174194 0039d316-1c4b-4281-b951-d872f2087c98
* Convert trivial URLRequest::Interceptors and ↵pauljensen@chromium.org2012-12-208-54/+56
| | | | | | | | | | URLRequestJobFactory::Interceptor into URLRequestJobFactory::ProtocolHandlers. BUG=161524 Review URL: https://codereview.chromium.org/11293252 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174174 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: rename debugger/ to devtools/, move DevTools files into ↵pfeldman@chromium.org2012-12-191-1/+1
| | | | | | | | | content/renderer/devtools. Review URL: https://codereview.chromium.org/11630004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173903 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r173891 - "DevTools: rename debugger/ to devtools/, move DevTools ↵mnissler@chromium.org2012-12-191-1/+1
| | | | | | | | | | | | | | | | | | | | files into content/renderer/devtools." DevToolsManagerTest.ForwardMessageToClient: http://build.chromium.org/p/chromium.linux/buildstatus?builder=Linux%20Tests%20x64&number=29428 http://build.chromium.org/p/chromium.linux/buildstatus?builder=Linux%20Aura&number=304 http://build.chromium.org/p/chromium.linux/buildstatus?builder=Linux%20Clang%20%28dbg%29&number=37637 http://build.chromium.org/p/chromium.chromiumos/buildstatus?builder=Linux%20ChromiumOS%20Tests%20%281%29&number=17804 http://build.chromium.org/p/chromium.memory/buildstatus?builder=Linux%20Chromium%20OS%20ASAN%20Tests%20%283%29&number=1107 BUG=None TEST=Tree becomes greener. TBR=pfeldman@chromium.org Review URL: https://codereview.chromium.org/11645015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173893 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: rename debugger/ to devtools/, move DevTools files into ↵pfeldman@chromium.org2012-12-191-1/+1
| | | | | | | | content/renderer/devtools. Review URL: https://codereview.chromium.org/11630004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173891 0039d316-1c4b-4281-b951-d872f2087c98
* Subrect snapshot support.dtrainor@chromium.org2012-12-191-2/+9
| | | | | | | | | | | | Handle grabbing the subrect snapshot of a texture. Leaving the old method in there for now to deal with not breaking other repos when committing. BUG= Review URL: https://chromiumcodereview.appspot.com/11558039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173863 0039d316-1c4b-4281-b951-d872f2087c98
* Apply scroll correction to HW draw path.leandrogracia@chromium.org2012-12-194-6/+20
| | | | | | | | | NOTRY=true BUG=161409 Review URL: https://codereview.chromium.org/11635010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173838 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Introduce new layers to ensure proper scissoring and clipping.leandrogracia@chromium.org2012-12-192-21/+70
| | | | | | | | | | | | | A new layer hierarchy is introduced composed of 3 new layers. - Scissor clip layer: ensures proper scissoring into the clip rect provided by the Android framework. - Transform layer: applies the provided transformation matrix. - View clip layer: ensures content is clipped within the view during transformations. BUG=161409 Review URL: https://codereview.chromium.org/11641002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173818 0039d316-1c4b-4281-b951-d872f2087c98
* Add file browser handler resource throttler for intercepting downloads.tbarzic@chromium.org2012-12-182-0/+2
| | | | | | | | | | | | | | | The throttle will intercept requests with MIME types handleable by quick office extension, cancel them and send an event to the quick office extension to handle the request. BUG=162736 TEST=unit_tests:FileBrowserResourceThrotlleTest; browser_tests:FileBrowserResourceThrottleExtensionApiTest Review URL: https://chromiumcodereview.appspot.com/11280264 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173713 0039d316-1c4b-4281-b951-d872f2087c98
* Renaming CookieManager to AwCookieManager to avoid name conflict with ↵kristianm@chromium.org2012-12-183-1/+16
| | | | | | | | | | | | | | android.webview.CookieManager Part 1 of renaming CookieManager to AwCookieManager BUG= Review URL: https://chromiumcodereview.appspot.com/11614014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173701 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Implement WebSettings.{get|set}LayoutAlgorithmmnaganov@chromium.org2012-12-181-30/+116
| | | | | | | | | | | | | | | | | | The simplest implementation that introduces the new layout algorithm--text autosizing, and maps all other algorithms to NORMAL (no autosizing). Another issue is that in the current implementation page layout is only updated on reload, not immediately, as WebView Classic does, but this also applies to other settings, e.g. TextSize, so should be solved separately. R=benm@chromium.org Review URL: https://chromiumcodereview.appspot.com/11565040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173614 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Add API for specifying a charset for data Urls.benm@chromium.org2012-12-172-0/+34
| | | | | | | | | | | | | Currently it's not possible to change the charset of a data URL via the content.browser.LoadUrlParams API. Add an overload of the methods that build data URLs to support that. Android only change and android bots green. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11571008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173487 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Fix FindBugs warnings in AwSettingsTestmnaganov@chromium.org2012-12-171-20/+18
| | | | | | | | | R=benm@chromium.org NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11590015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173465 0039d316-1c4b-4281-b951-d872f2087c98
* Change Android Webview URL Request Context access of mutation functions.tedv@chromium.org2012-12-167-16/+18
| | | | | | | | | | | | | | | The associated CR involves moving mutation interfaces of URLRequestJobFactory to derived (non-abstract) classes. See CL https://codereview.chromium.org/11227017 for more information. BUG=146602 Review URL: https://chromiumcodereview.appspot.com/11447032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173392 0039d316-1c4b-4281-b951-d872f2087c98
* Generate PageTransitionTypes.java for Androidboliu@chromium.org2012-12-163-3/+7
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/11577016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173372 0039d316-1c4b-4281-b951-d872f2087c98
* Adding java implementation for Geolocationkristianm@chromium.org2012-12-151-0/+101
| | | | | | Review URL: https://chromiumcodereview.appspot.com/11416347 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173328 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Tie together Chrome's browser compositor with the Android ↵leandrogracia@chromium.org2012-12-155-24/+228
| | | | | | | | | | | | | | | | | | View system. This patch introduces a new feature to the compositor: - A setting to enable cleaning the framebuffer, disabled by default. This prevents destroying data below us when rendering non-rectangular views (e.g. during a rotation). A second required feature will be added by a later patch: - A device scissor rect that intersects any scissor calculation. Used to ensure we never render outside where the Android View System tells us. There are also some issues with the Android View side regarding the restoration of the GL state. This patch introduces a temporary workaround by reading and manually restoring the state changed by the compositor. This will go out as soon as the problem is fixed in the Android side. BUG=161409,154180 Review URL: https://chromiumcodereview.appspot.com/11316310 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173324 0039d316-1c4b-4281-b951-d872f2087c98
* WebView fix for third_party/eyesfreeboliu@chromium.org2012-12-141-1/+5
| | | | | | | | | | | | | R=joth@chromium.org Does not affect upstream builds NOTRY=true BUG= Review URL: https://chromiumcodereview.appspot.com/11565045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173205 0039d316-1c4b-4281-b951-d872f2087c98
* [Android Webview] Add hand-written R.java file to map ui resources.newt@chromium.org2012-12-141-1/+2
| | | | | | | | | | | This provides hand-maintained R.java files to enable Webview to provide resources used in ui, and fix the current webview ToT build break. BUG=165751 Review URL: https://codereview.chromium.org/11578034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173201 0039d316-1c4b-4281-b951-d872f2087c98
* Implement CookieManager.flushCookieStorejoth@chromium.org2012-12-143-11/+41
| | | | | | | | | | | | | This can still be hit if an app calls CookieSyncManager.sync() We can expose it as an explicit public method on CookieManager if needed in future Also make all java methods non-static, for consistency. BUG= Review URL: https://chromiumcodereview.appspot.com/11553042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173126 0039d316-1c4b-4281-b951-d872f2087c98
* Implement doUpdateVisitedHistory callbackboliu@chromium.org2012-12-145-1/+63
| | | | | | | | | | | | Convert WebContentsObserver::didNavigateAnyFrame callback to doUpdateVisitedHistory callback for WebView. BUG= Review URL: https://chromiumcodereview.appspot.com/11567019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173041 0039d316-1c4b-4281-b951-d872f2087c98
* Mark third_party/accessibility-developer-tools as a known license info issue.mnaganov@chromium.org2012-12-131-1/+3
| | | | | | | | | | | | BUG=165901 NOTRY=true R=torne@chromium.org Review URL: https://chromiumcodereview.appspot.com/11575006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172873 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Plumb WebContentsDelagate::ActivateContents -> Java.benm@chromium.org2012-12-135-6/+28
| | | | | | | | | | | This is needed for the Android WebChromeClient#onRequestFocus API. Android only change, android bots green NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11552016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172865 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Convert context menu callback to long pressboliu@chromium.org2012-12-1110-8/+161
| | | | | | | | | | | | A GestureLongPress is converted to a context menu callback inside WebKit. For Android WebView, use this callback to trigger the long click logic which by default triggers context menu. BUG= Android only change. Ran through android trybots. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11471040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172457 0039d316-1c4b-4281-b951-d872f2087c98
* Fix android build issue.boliu@chromium.org2012-12-112-1/+5
| | | | | | | | | | | r172350 added a new generated java file. dcommit because these files do not affect chromium builds BUG= Review URL: https://codereview.chromium.org/11537015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172381 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Exclude "arm-sysroot" from the license checking.mnaganov@chromium.org2012-12-111-0/+2
| | | | | | | | | | | NOTRY=true R=torne@chromium.org Review URL: https://chromiumcodereview.appspot.com/11532005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172322 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Remove pak rules that depend on chrome/benm@chromium.org2012-12-113-39/+0
| | | | | | | | | | | | These rules are no longer needed and finally break android_webview's ties with the chrome/ layer! Android only; android bots green NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11511003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172304 0039d316-1c4b-4281-b951-d872f2087c98
* Fix android build typoboliu@chromium.org2012-12-101-1/+1
| | | | | | | | | | TBR=torne BUG= NOTRY=true Review URL: https://codereview.chromium.org/11488014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172146 0039d316-1c4b-4281-b951-d872f2087c98
* Android WebView: fix location of NetError.java.torne@chromium.org2012-12-101-1/+2
| | | | | | | | | | | | | net.gyp:net_errors_java was updated to put the output in a new location; update the WebView Android.mk to match. BUG= TBR=digit@chromium.org NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11506008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172098 0039d316-1c4b-4281-b951-d872f2087c98
* [Android Webview] Fix typobenm@chromium.org2012-12-101-1/+1
| | | | | | | | | | | Typo introduced in https://codereview.chromium.org/11475035/ TBR=torne NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11500010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172061 0039d316-1c4b-4281-b951-d872f2087c98
* Introduces "CreateParams" for web contents, and add |parent| parameter in it.mukai@chromium.org2012-12-091-2/+1
| | | | | | | | | | BUG=155443 TEST=In Goobuntu, add logging of screen_info in RenderViewHost::CreateRenderView() temporarily and make sure the correct scale factor is chosen at boot. Review URL: https://chromiumcodereview.appspot.com/11361245 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172008 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Rename android_webview paks to webviewchromium.benm@chromium.org2012-12-074-11/+11
| | | | | | | | | | Android bots green. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11475035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171876 0039d316-1c4b-4281-b951-d872f2087c98
* Make AwContentsClient.onDownloadStart abstractboliu@chromium.org2012-12-061-4/+2
| | | | | | | | | | | BUG= Android java only change. Ran through android trybots. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11468011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171636 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Add new chrome/-less pak dependency.benm@chromium.org2012-12-064-10/+110
| | | | | | | | | | | | | | | | android_webview must not depend on the chrome/ layer, so we want to remove the last dependencies we have for generating resource paks. Toward this, define a new android_webview pak that depends only on content/ resources. A later change will remove the dependency on the paks that contain chrome/resources. For now we use the same resources Content Shell does. It may be possible to trim this further, but seems like a good starting point. Android only, Android bots green NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11348326 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171522 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Fix AwSettingsTest AppCache test crashes.mnaganov@chromium.org2012-12-063-21/+36
| | | | | | | | | | | | | The problem was due to usage of a second cache thread. R=boliu@chromium.org BUG=163383 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11440036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171520 0039d316-1c4b-4281-b951-d872f2087c98
* Make page transition type to InterceptNavigationResourceThrottlethrottlejknotten@chromium.org2012-12-051-1/+2
| | | | | | | | | | | | | | The intercept navigation resource throttle needs to be able to inspect the page transition type associated with a request, as different behaviour may be desired depending on it. For example, in Chrome on Android, we do not want to intercept requests resulting from backwards / forwards history navigation. BUG=164194 Review URL: https://chromiumcodereview.appspot.com/11415252 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171312 0039d316-1c4b-4281-b951-d872f2087c98
* [android_webview] Read InputStreams in chunks.mkosiba@chromium.org2012-12-053-50/+60
| | | | | | | | | | | | | This causes the intercepted requests to be streamed to the renderer instead of waiting for the entire resource to be loaded. BUG=None TESTS=AndroidWebViewTest,android_webview_unittests Review URL: https://chromiumcodereview.appspot.com/11412327 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171222 0039d316-1c4b-4281-b951-d872f2087c98
* Adds AwContentsClientOnScaleChangedTestacleung@google.com2012-12-051-0/+69
| | | | | | | | | BUG= Review URL: https://chromiumcodereview.appspot.com/11348280 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171191 0039d316-1c4b-4281-b951-d872f2087c98
* (Re)implement Android WebView downloadsboliu@chromium.org2012-12-0518-12/+318
| | | | | | | | | | | | | | | | | | | Current plan for Android WebView downloads is to only support existing DownloadListener API. This is a very simple API that cancels all Chromium side downloads and passes the request information to the listener. This independence from Chrome on Android's more sophisticated implementation (support Http POST downloads etc) will allow the Chrome impelmentation to be refactored more cleanly. BUG= Android only change. Ran through Android trybots. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11418301 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171180 0039d316-1c4b-4281-b951-d872f2087c98
* Remove hardcoded chromium_*.jar pathscjhopman@chromium.org2012-12-051-1/+0
| | | | | | | | | | | | | | | | | | | | | Targets with dependencies (direct/indirect) on a java target receive the chromium_*.jar paths in the variable input_jars_paths. Targets should use that rather than hardcoding where they think the jar will be. Change native_test_apk.xml to build with a list of jars in INPUT_JARS_PATHS rather than using all jars in a specific output directory. Make generate_native_test.py pass the --jars argument to ant with -DINPUT_JARS_PATHS. This supports those targets (WebKit) that are not updated to pass the ant-arg directly. BUG= Review URL: https://chromiumcodereview.appspot.com/11308351 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171131 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Implement WebSettings.setAppCache{Enabled|Path}mnaganov@chromium.org2012-12-044-14/+174
| | | | | | | | | | | | | | AppCacheEnabled is mapped onto WebPreferences.application_cache_enabled, which goes directly into WebKit Settings. AppCachePath is only used as a flag to enable AppCache. We can't make use of the full path given, because in Chromium the Application Cache directory lives inside the browser context (profile). The tests added trigger a DCHECK in disk cache, unless the profile is empty when the test starts. This makes impossible to run them both now, so only one of them is enabled for now. Android CTS tests WebSettings.testAppCache{Disabled|Enabled} are passing with this patch. Review URL: https://chromiumcodereview.appspot.com/11411229 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171074 0039d316-1c4b-4281-b951-d872f2087c98
* Re-enable testZoomControlsOnNonZoomableContentboliu@chromium.org2012-12-041-8/+2
| | | | | | | | | | | | Underlying bug is already fixed. BUG=160861 Android java test change. Ran through android trybot NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11299337 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171029 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Plumb WebContentsDelegate::CloseContents to embedder.benm@chromium.org2012-12-045-4/+29
| | | | | | | | | | | | This allows us to support the Android WebChromeClient.onCloseWindow API. Android bots green NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11418292 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170935 0039d316-1c4b-4281-b951-d872f2087c98
* Add waitUntilHasValue() to simplify usage.aruslan@chromium.org2012-12-041-2/+1
| | | | | | | | | BUG=161941 Review URL: https://chromiumcodereview.appspot.com/11280250 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170927 0039d316-1c4b-4281-b951-d872f2087c98