summaryrefslogtreecommitdiffstats
path: root/android_webview
Commit message (Collapse)AuthorAgeFilesLines
* [Android] Set a default locale for WebView.leandrogracia@chromium.org2012-10-032-0/+10
| | | | | | | | | | | | | | Recent WebKit rolls have introduced an assertion for the default language that is causing some failures in WebView. The reason is that the default locale is not properly iset in single process mode. However, since this will probably require more elaborate solution we'll be setting a value manually for now to unblock tests and prevent further issues. BUG=153758 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11054012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159899 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Fix android_webview SDK version in manifest files.mkosiba@chromium.org2012-10-032-2/+2
| | | | | | | | | | | | | | Both the test and production APKs should have a minimum of ICS and target of JB. TBR=benm@chromium.org NOTRY=true BUG= Review URL: https://chromiumcodereview.appspot.com/11048017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159882 0039d316-1c4b-4281-b951-d872f2087c98
* Implement part of Android WebView.clearCacheboliu@chromium.org2012-10-0310-1/+120
| | | | | | | | | | | | For velocity, not refactoring BrowsingDataRemover code into content/. This method is similar to BrowsingDataRemover::REMOVE_CACHE mask. Still need to implement clearing http disk cache. BUG= Review URL: https://chromiumcodereview.appspot.com/11051003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159827 0039d316-1c4b-4281-b951-d872f2087c98
* Fix style error in AwContentsIoThreadClientImpljknotten@chromium.org2012-10-021-1/+1
| | | | | | | | | | | | The destructor must be virtual declared OVERRIDE. This is required by the clang style checker. See http://dev.chromium.org/developers/coding-style/chromium-style-checker-errors Review URL: https://chromiumcodereview.appspot.com/11038020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159744 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Disable failing AwSettings tests.mkosiba@chromium.org2012-10-021-24/+73
| | | | | | | | | | | | | | This is so that when we enable the android_webview tests on the FYI bot it doesn't immediately go red. BUG=153516 Just making tests which we don't yet run as Flaky. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11030014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159693 0039d316-1c4b-4281-b951-d872f2087c98
* Explicit out-of-line destructor for AwContentsIoThreadClientImpl.jknotten@chromium.org2012-10-022-0/+5
| | | | | | | | | | | This is required by the clang style checker. See http://dev.chromium.org/developers/coding-style/chromium-style-checker-errors for more information. Review URL: https://chromiumcodereview.appspot.com/11029013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159689 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Fix AwSettingsTest tests downstream failures due to missing ↵mnaganov@chromium.org2012-10-022-2/+8
| | | | | | | | | | | | resource files A whitespace change to a java file is made to ensure that apk will be rebuilt. R=mkosiba@chromium.org Review URL: https://codereview.chromium.org/11030015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159684 0039d316-1c4b-4281-b951-d872f2087c98
* Implement Android WebSettings.[get|set]BlockNetworkLoadsboliu@chromium.org2012-10-0117-137/+369
| | | | | | | | | | | | | The existing implementation simply sets the net::LOAD_ONLY_FROM_CACHE load flag. Chromium also supports ftp which ignores this flag, so need to explicitly block ftp loads. BUG= Review URL: https://chromiumcodereview.appspot.com/10979045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159588 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Fix the final crash in the android_webview test runner.mkosiba@chromium.org2012-10-011-0/+8
| | | | | | | | | | | | | android_webview will require a specific rendering architecture that hasn't landed yet. This change lets us run our tests (even though we're not showing anything on screen). BUG=152904 TEST=run_instrumentation_tests.py --test-apk AndroidWebViewTest Review URL: https://codereview.chromium.org/10979075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159505 0039d316-1c4b-4281-b951-d872f2087c98
* Add more AwSettingsTest testsmnaganov@chromium.org2012-10-013-76/+407
| | | | | | | | BUG=146009 Review URL: https://codereview.chromium.org/11008024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159490 0039d316-1c4b-4281-b951-d872f2087c98
* Add more generic support for java targets bundling multiple directoriescjhopman@chromium.org2012-09-282-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently chromium_testshell_test_apk and content_shell_test_apk compile and package java files from two different directories. Supporting this in a good way is a requirement for using a single ant template for all apks. Introduce a new gyp variable for apk/jar targets, generated_src_dirs. Now, generated_src_dirs is for directories that contain .java files that are generated at build time and additional_src_dirs is for extra normal directories to include in the jar/apk. Change content_shell_test_apk and chromium_testshell_test_apk to use additional_src_dirs for their extra dirs. Add documentation for the gyp variables for jar/apk targets. Reorder the ant defines in the java.gypi and java_apk.gypi. BUG=136756,146056 Review URL: https://chromiumcodereview.appspot.com/10987083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159299 0039d316-1c4b-4281-b951-d872f2087c98
* Improves jni_generator name mangling.bulach@chromium.org2012-09-281-2/+2
| | | | | | | | | | | | | Uses a more compact format to avoid generating uber-long names. Changes media_player_bridge to use such format. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10957037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159240 0039d316-1c4b-4281-b951-d872f2087c98
* Move AndroidProtocolAdaptor into android_webviewmnaganov@chromium.org2012-09-2714-8/+962
| | | | | | | | | | | Also move Android-specific URL constants into android_webview R=benm@chromium.org,joth@chromium.org Review URL: https://chromiumcodereview.appspot.com/10985044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159078 0039d316-1c4b-4281-b951-d872f2087c98
* Ignore "*.orig" and "*.rej" files in WebView licence scanning tool.mnaganov@chromium.org2012-09-271-0/+2
| | | | | | | | | | | | We have a report that on try servers the patch tool can produce such files and they confuse the tool. R=torne@chromium.org Review URL: https://chromiumcodereview.appspot.com/10982062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159025 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Fix AwSettings.testUserAgentString... testsmnaganov@chromium.org2012-09-261-3/+1
| | | | | | | | | | | Using 'document.writeln' breaks 'getTitle'. BUG=151012 Review URL: https://chromiumcodereview.appspot.com/10993033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158867 0039d316-1c4b-4281-b951-d872f2087c98
* Implement Android WebView BlockNetworkImagesboliu@chromium.org2012-09-264-21/+155
| | | | | | | | | | | | | | | | | This uses the WebCore ImagesEnabled setting, which is added to ContentSettings. The setting also includes overriding WebPermissionClient::allowImage, which here allows images with local soucres to load as well. Use a whitelist of local file schemes instead of blacklisting only http(s). BUG= Review URL: https://chromiumcodereview.appspot.com/10920033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158809 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor the about:version code out of about_ui.stevet@chromium.org2012-09-261-1/+1
| | | | | | | | BUG=None TEST=No user visible changes in about:version. Review URL: https://chromiumcodereview.appspot.com/10916182 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158699 0039d316-1c4b-4281-b951-d872f2087c98
* Fix webview license scan for clangmichaelbai@google.com2012-09-251-2/+2
| | | | | | | | | | TBR=mnaganov BUG=143931 Review URL: https://codereview.chromium.org/10993012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158610 0039d316-1c4b-4281-b951-d872f2087c98
* Move content test utils to content/public/testnyquist@chromium.org2012-09-257-21/+14
| | | | | | | | | | | | | | We have several test utils in content/public/android/javatests/src/org/chromium/content/browser/util that needs to be part of its own gyp target. This creates the target and moves the test utils to that target. TBR=jam@chromium.org, joth@chromium.org BUG=151561, 150617 Review URL: https://codereview.chromium.org/10979009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158599 0039d316-1c4b-4281-b951-d872f2087c98
* Use upstream style for whitelisting clang (fixes ↵yfriedman@chromium.org2012-09-251-1/+1
| | | | | | | | | | http://codereview.chromium.org/10988014/) TBR=mnaganov@chromium.org Review URL: https://codereview.chromium.org/10987025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158597 0039d316-1c4b-4281-b951-d872f2087c98
* Fix webview license scan for clang.yfriedman@chromium.org2012-09-251-0/+2
| | | | | | | | | | We can't whitelist this entry because it doesn't exist for non-clang builders and hence would break the gcc build. BUG=143931 Review URL: https://codereview.chromium.org/10988014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158577 0039d316-1c4b-4281-b951-d872f2087c98
* Fix warnings when compiling with clangmichaelbai@chromium.org2012-09-252-9/+0
| | | | | | | | | TBR=scherkus BUG=143931 Review URL: https://chromiumcodereview.appspot.com/10983004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158493 0039d316-1c4b-4281-b951-d872f2087c98
* Remove chrome/app/theme/chromium/BRANDING frommark@chromium.org2012-09-241-2/+0
| | | | | | | | | | | android_webview/tools/third_party_files_whitelist.txt following r158415. See http://build.chromium.org/p/chromium.linux/buildstatus?builder=Android%20Builder%20%28dbg%29&number=16202 TBR=steveblock Review URL: https://codereview.chromium.org/10992002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158425 0039d316-1c4b-4281-b951-d872f2087c98
* Move base Java utils to base/test/android/javatests.nyquist@chromium.org2012-09-2410-28/+13
| | | | | | | | | | | | | | | | | | | gyp targets should not depend on tests from other packages, but instead be able to depend on their test utils. The target including the base utilities is called base_java_test_support and contains files from base/test/android/javatests. base_java_test_support was also the name of the wrongly named target for building base/android/javatests, but since only contained util-classes, no new target has been created for tests of base/android/java. BUG=151561,150773 Review URL: https://chromiumcodereview.appspot.com/10974012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158422 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Install a WebContentsObserverAndroid in android_webview.benm@chromium.org2012-09-242-2/+10
| | | | | | | | | | | | To proxy WebContentsObserverAndroid calls to the embedder, we need to create an instance of the observer. Android trybots are green and only touches java, so no need for CQ to look at other bots. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/10969071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158306 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Use 'copies' instead of 'cp' to copy files in android_webview.mkosiba@chromium.org2012-09-241-9/+4
| | | | | | | | | | | BUG= Ran this through the android try job, change shouldn't affect other platforms. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/10973011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158290 0039d316-1c4b-4281-b951-d872f2087c98
* Simplify android_webview apk generation gyp rules.mkosiba@chromium.org2012-09-244-290/+134
| | | | | | | | | | | Common code has been moved to build/java_apk.gypi. BUG= Review URL: https://chromiumcodereview.appspot.com/10959018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158265 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Add AwNativeWindow class to android_webview.benm@chromium.org2012-09-241-0/+28
| | | | | | | | | | | | | | Currently NativeWindow is used for showing the file picker and for providing a context to show JS modal dialogs. We only require the modal dialog functionality in android_webview, so leave the file picker functions as stubs. Android trybots looked good during review, and only touched Java. No need for CQ to run other bots. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/10972006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158260 0039d316-1c4b-4281-b951-d872f2087c98
* Adding NativeWindow base class with context.aurimas@chromium.org2012-09-221-2/+2
| | | | | | | | | | This is a change from the previous CL (https://codereview.chromium.org/10916160/). It turns out that not all the Android objects that create NativeWindow will have an activity, so we need this change. BUG=116131 Review URL: https://chromiumcodereview.appspot.com/10962002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158159 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Revert 158067 - Remove native side of content_view_client"yusufo@chromium.org2012-09-224-13/+186
| | | | | | | | | | | | | | The previous CL broke the build, because the changes in net_errors_java.template didn't get the net_error_java target to be rebuilt. We needed a net.gyp change that makes sure NetError.java gets recreated after the changes. BUG=137967 TBR=jam@chromium.org, mkosiba@chromium.org, willchan@chromium.org Review URL: https://chromiumcodereview.appspot.com/10963041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158146 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 158067 - Remove native side of content_view_clientavi@chromium.org2012-09-214-186/+13
| | | | | | | | | | | | | | | | | | | | | This moves related callabcks from content_view_client to web_contents_observer_android and makes the client a Java only API. This broke the compile: http://build.chromium.org/p/chromium.linux/buildstatus?builder=Android%20Builder%20%28dbg%29&number=16035 ErrorCodeConversionHelper, new in this change, failed to build. BUG=137967 Review URL: https://chromiumcodereview.appspot.com/10952029 TBR=yusufo@chromium.org Review URL: https://codereview.chromium.org/10969045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158072 0039d316-1c4b-4281-b951-d872f2087c98
* Remove native side of content_view_clientyusufo@chromium.org2012-09-214-13/+186
| | | | | | | | | | | | This moves related callabcks from content_view_client to web_contents_observer_android and makes the client a Java only API. BUG=137967 Review URL: https://chromiumcodereview.appspot.com/10952029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158067 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Re-enable the ContentViewCore initialization in WebView.leandrogracia@chromium.org2012-09-211-4/+3
| | | | | | | | | | | | | This was temporarily disabled until the appropriate construction and initialization methods where synced upstream, but it was not re-enabled after this happened. BUG=145874 Review URL: https://chromiumcodereview.appspot.com/10965036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157997 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Upstream the WebView find-in-page API implementation.leandrogracia@chromium.org2012-09-2119-33/+953
| | | | | | | | | | | | | This API requires implementing a browser -> renderer synchronous findAll message. While this method is deprecated and an alternative asynchronous version is suggested we still need to implement it for legacy WebView compatibility. BUG=136762 TEST=3 new java tests. Review URL: https://codereview.chromium.org/10941015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157975 0039d316-1c4b-4281-b951-d872f2087c98
* Rename package org.chromium.android_webview.tests to .testjknotten@chromium.org2012-09-203-7/+5
| | | | | | | | | | | | | Apparently the packages do not have to have separate names, so rename org.chromium.android_webview.tests to org.chromium.android_webview.test to keep the test code together. BUG=146009 Review URL: https://chromiumcodereview.appspot.com/10965012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157820 0039d316-1c4b-4281-b951-d872f2087c98
* Upstream chromium side of modal dialogs for webview.yfriedman@chromium.org2012-09-2019-10/+585
| | | | | | | | | | | | There's still some default handling needed if the embedder doesn't override the handler. Includes clean-up of previous hooks in content that aren't needed anymore. BUG=138483 Review URL: https://chromiumcodereview.appspot.com/10907166 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157815 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the clang build as a result of ↵michaelbai@chromium.org2012-09-202-0/+2
| | | | | | | | | | http://src.chromium.org/viewvc/chrome?view=rev&revision=156991 BUG=143931 Review URL: https://chromiumcodereview.appspot.com/10937037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157803 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Upstream the WebView HttpAuthUsernamePassword methods.leandrogracia@chromium.org2012-09-203-0/+346
| | | | | | | | | BUG= TEST=HttpAuthDatabaseTest.java Review URL: https://chromiumcodereview.appspot.com/10941013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157750 0039d316-1c4b-4281-b951-d872f2087c98
* Add WebView.saveWebArchive support to android_webview.tedchoc@chromium.org2012-09-194-5/+269
| | | | | | | | | BUG=146004 Review URL: https://chromiumcodereview.appspot.com/10946013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157658 0039d316-1c4b-4281-b951-d872f2087c98
* mv public/android/javatests/.../{test,util}frankf@chromium.org2012-09-195-13/+13
| | | | | | | | BUG=150617 Review URL: https://codereview.chromium.org/10945019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157582 0039d316-1c4b-4281-b951-d872f2087c98
* Re-apply: [Android] Fix WebView tests breakage after http://crrev.com/10916160mnaganov@chromium.org2012-09-195-3/+24
| | | | | | | | | | | Original CL: https://codereview.chromium.org/10947028 Now with DEPS update. BUG=116131 Review URL: https://codereview.chromium.org/10947032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157548 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 157543 - [Android] Fix WebView tests breakage after ↵mnaganov@chromium.org2012-09-194-23/+3
| | | | | | | | | | | | | | http://crrev.com/10916160 R=benm@chromium.org,android-webview-reviews@google.com BUG=116131 Review URL: https://codereview.chromium.org/10947028 TBR=mnaganov@chromium.org Review URL: https://codereview.chromium.org/10941032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157544 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Fix WebView tests breakage after http://crrev.com/10916160mnaganov@chromium.org2012-09-194-3/+23
| | | | | | | | | R=benm@chromium.org,android-webview-reviews@google.com BUG=116131 Review URL: https://codereview.chromium.org/10947028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157543 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Add IO thread delegate for request intercepting.mkosiba@chromium.org2012-09-1910-9/+345
| | | | | | | | | | | | | This is to make it possible for a ResourceThrottle (which runs on the IO thread) to call a WebViewClient method. This requires caching the RenderViewHost<->WebContents relationship in a threadsafe way. BUG=138481 Review URL: https://codereview.chromium.org/10702083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157533 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Port ContentSettingsTest.testJavaScriptEnabledDynamic... -> ↵mnaganov@chromium.org2012-09-192-0/+78
| | | | | | | | | | | | | | | | AwSettingsTest. Previously these tests were flaky because of the race with PrefsTabHelper. After removing the dependency on TabContents, the tests seem to run fine. Depends on https://codereview.chromium.org/10939017/ R=benm@chromium.org,android-webview-reviews@google.com Review URL: https://codereview.chromium.org/10938012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157519 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Upstream TestCallbackHelperContainer.mnaganov@chromium.org2012-09-182-5/+6
| | | | | | | | | | Make required changes to dependant files. R=mkosiba@chromium.org,android-webview-reviews@google.com Review URL: https://codereview.chromium.org/10939017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157359 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Remove the dependency on TabContents.mnaganov@chromium.org2012-09-182-12/+7
| | | | | | | | | | | | | | So far, all Aw tests that we have don't change their state after removing this dependency. We will need things like AutoFillManager, FaviconTabHelper, PasswordManager and SSLHelper, but it looks like it will be better to componentize them in the first place. R=joth@chromium.org,android-webview-reviews@google.com Review URL: https://codereview.chromium.org/10916309 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157328 0039d316-1c4b-4281-b951-d872f2087c98
* Tighten up android_webview DEPS rulesjoth@chromium.org2012-09-153-0/+13
| | | | | | | | | | | | Codifies the agreed layering :- native->browser->common renderer->common lib is at top, it may depend on anything but nothing depend in it Review URL: https://chromiumcodereview.appspot.com/10916326 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156980 0039d316-1c4b-4281-b951-d872f2087c98
* Added virtual destructor.michaelbai@google.com2012-09-147-0/+22
| | | | | | | | | | Also fix the clang compiling error. BUG=143931 Review URL: https://codereview.chromium.org/10918248 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156859 0039d316-1c4b-4281-b951-d872f2087c98
* Implement ResourceDispatchHostLoginDelegate for android_webview.benm@chromium.org2012-09-1416-2/+399
| | | | | | | | | | | Add an android_webview ResourceDispatchHostLoginDelgate that forwards the auth request to the java side embedder via AwContents.onReceivedHttpAuthRequest. Review URL: https://chromiumcodereview.appspot.com/10918023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156746 0039d316-1c4b-4281-b951-d872f2087c98