summaryrefslogtreecommitdiffstats
path: root/base/android
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove native side of content_view_clientyusufo@chromium.org2012-09-211-1/+0
| | | | | | | | | | | | 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
* Upstream chromium side of modal dialogs for webview.yfriedman@chromium.org2012-09-201-0/+3
| | | | | | | | | | | | 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
* [Android] Add IO thread delegate for request intercepting.mkosiba@chromium.org2012-09-193-3/+26
| | | | | | | | | | | | | 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
* Upstreaming SelectFileDialog for Androidaurimas@chromium.org2012-09-181-1/+3
| | | | | | | | | | | | Upstreaming the Select File Dialog and its dependencies needed for Chrome on Android BUG=116131 Review URL: https://chromiumcodereview.appspot.com/10916160 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157424 0039d316-1c4b-4281-b951-d872f2087c98
* Add package label to base::android::BuildInfonileshagrawal@chromium.org2012-09-183-58/+80
| | | | | | | | | BUG= Review URL: https://chromiumcodereview.appspot.com/10908271 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157274 0039d316-1c4b-4281-b951-d872f2087c98
* Chromium's key generation is running on a non-joinable worker thread, which ↵jnd@chromium.org2012-09-171-11/+12
| | | | | | | | | | | | | | requirs us to use leakable Singleton/LazyInstance object since. See crbug.com/134118 for details BUG=134118 TEST=None Review URL: https://chromiumcodereview.appspot.com/10580038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157083 0039d316-1c4b-4281-b951-d872f2087c98
* Update jni_generator to include Callback for saveWebArchive.tedchoc@chromium.org2012-09-151-8/+9
| | | | | | | | | | | Also, does a bit of style cleanup by alpha sorting the list. BUG=146004 Review URL: https://chromiumcodereview.appspot.com/10907240 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156990 0039d316-1c4b-4281-b951-d872f2087c98
* Make ConvertJavaToUTF functions more robusts.jcivelli@chromium.org2012-09-151-0/+4
| | | | | | | | | | | | | The ConvertJavaToUTF functions can have undefined behavior when called with null strings. This CL makes it easier to catch such problems. BUG=None TEST=None Review URL: https://chromiumcodereview.appspot.com/10916281 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156965 0039d316-1c4b-4281-b951-d872f2087c98
* Implement ResourceDispatchHostLoginDelegate for android_webview.benm@chromium.org2012-09-141-0/+3
| | | | | | | | | | | 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
* [Android] Upstream ChromeBrowserProvider, the Android port ContentProvider ↵leandrogracia@chromium.org2012-09-132-2/+2
| | | | | | | | | | | | implementation. BUG=138755 TEST=3 new java tests coming as soon as we're ready to build them Review URL: https://chromiumcodereview.appspot.com/10912172 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156488 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Upstream org.chromium.base.test.UrlUtils (partially) and device filesmnaganov@chromium.org2012-09-121-0/+23
| | | | | | | | | | Required by android_webview AwSettingsTest BUG=146009 Review URL: https://chromiumcodereview.appspot.com/10911097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156304 0039d316-1c4b-4281-b951-d872f2087c98
* Make base compiled by clangmichaelbai@chromium.org2012-09-111-0/+22
| | | | | | | | BUG=143931 Review URL: https://chromiumcodereview.appspot.com/10909137 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156071 0039d316-1c4b-4281-b951-d872f2087c98
* Upstream the Android port find-in-page feature.leandrogracia@chromium.org2012-09-051-0/+2
| | | | | | | | | | | | | | This patch provides the find-in-page Chromium code for the Android port. Further code implementing the feature for Android WebView will be added later in a different patch. Unlike the previous approach (CL 10699024) this patch uses the FindTabHelper class as Desktop Chrome does, introducing its new required APIs there. It also introduces FindMatchRects in a way symmetrical to the current Find/FindReply implementation in order to simplify any possible future adoption of this API by other platforms. BUG=136762 Review URL: https://chromiumcodereview.appspot.com/10905058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154893 0039d316-1c4b-4281-b951-d872f2087c98
* Implement DocuementHasImagesjoth@chromium.org2012-09-011-0/+1
| | | | | | | | | | | | Requires new plumbing to get custom android_webview layer IPC messages a flowing. BUG= Review URL: https://chromiumcodereview.appspot.com/10890024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154564 0039d316-1c4b-4281-b951-d872f2087c98
* Add WebContentsObserverAndroid that will take over native tasks of ↵yusufo@chromium.org2012-08-301-0/+1
| | | | | | | | | | | | | ContentViewCLient This just adds the implementation but doesn't get rid of the content view client functionality yet. BUG=137967 Review URL: https://chromiumcodereview.appspot.com/10876099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154185 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Upstream Modal Dialogs functionalityyfriedman@chromium.org2012-08-301-1/+1
| | | | | | | | | | | This is used for managing alert/confirm/prompt dialogs. There are downstream tests that can't be upstreamed yet until we have a test shell set up for chromium code. BUG=138483 TBR=jam@chromium.org for content/public/browser. Should we have a content/public/browser/android/OWNERS? Review URL: https://chromiumcodereview.appspot.com/10823340 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154018 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Add InstrumentationUtils class.mkosiba@chromium.org2012-08-281-0/+32
| | | | | | | | | | | | This adds an utility method for dispatching methods to the UI thread using the Instrumentation class. BUG= Review URL: https://chromiumcodereview.appspot.com/10827416 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153698 0039d316-1c4b-4281-b951-d872f2087c98
* Add DIR_ANDROID_EXTERNAL_STORAGE to base/base_path.hnileshagrawal@chromium.org2012-08-243-0/+19
| | | | | | | | | | | This adds a method to get the external storage directory on Android. BUG= Review URL: https://chromiumcodereview.appspot.com/10867020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153183 0039d316-1c4b-4281-b951-d872f2087c98
* Add a test runner for android_webview.mkosiba@chromium.org2012-08-231-1/+1
| | | | | | | | | | | | This change adds the necessary build rules for an android_webview test APK and test runner APK and a trivial test case. This change also adds a static Java library target to the WebContentsDelegateAndroid component. BUG= Review URL: https://chromiumcodereview.appspot.com/10855171 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153046 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor the Android port to allow access to the chrome layer.leandrogracia@chromium.org2012-08-211-1/+3
| | | | | | | | | | | | | | | | | | | While in desktop chrome the main WebContentsDelegate is implemented in the chrome layer by the Browser class, the Android port implements it in the content layer in its ContentViewClient class. However, because of the content layering limitations this renders the chrome layer out of reach. This patch splits the WebContentsDelegate implementation in ContentViewClient into a separate class named WebContentsDelegateAndroid in the first chrome browser component "web_contents_delegate_android". Also, this patch introduces stubs for Chrome-specific and WebView-specific extensions of WebContentsDelegateAndroid in order to set the foundations for later patches. BUG=137967 TEST=existing tests Review URL: https://chromiumcodereview.appspot.com/10831060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152598 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Implement WebSettings.{get|set}Allow{Content|File}Access.mnaganov@chromium.org2012-08-201-0/+31
| | | | | | | | This is as much as we can put upstream now. Review URL: https://chromiumcodereview.appspot.com/10827380 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152318 0039d316-1c4b-4281-b951-d872f2087c98
* Moves device_orientation to content namespaceaousterh@chromium.org2012-08-151-1/+1
| | | | | | | | | | | | Code in content/ should be in the content namespace. TBR=jam BUG=none Review URL: https://chromiumcodereview.appspot.com/10823318 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151684 0039d316-1c4b-4281-b951-d872f2087c98
* Make jars build from a single ant .xml templatecjhopman@chromium.org2012-08-132-67/+0
| | | | | | | | | | | | | | The ant build files for each of the jars that we create consisted of only fairly straightforward boilerplate. With the recent changes to java.gypi and java_aidl.gypi we can now build these correctly from a single .xml with GYP passing in defines for the minor differences. BUG=136756 Review URL: https://chromiumcodereview.appspot.com/10831227 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151334 0039d316-1c4b-4281-b951-d872f2087c98
* Upstream ChromeHttpAuthHandleryusufo@chromium.org2012-08-071-1/+0
| | | | | | | | | BUG=138142 Review URL: https://chromiumcodereview.appspot.com/10821116 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150245 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Add chrome_java target for building Java code in the chromium layer.yfriedman@chromium.org2012-08-061-46/+9
| | | | | | | | | | | Also includes a refactoring of the Ant xml scripts to use a common template (contributed by shashishekhar@chromium.org). As part of this, I also continued Torne's effort of removing our reliance on environment variables. Unfortunately this currently means that you have to specify 5 gyp flags: ANDROID_SDK, ANDROID_SDK_ROOT, ANDROID_SDK_TOOLS, ANDROID_SDK_VERSION, ANDROID_TOOLCHAIN. This'll get better as we make further use of the checked in sdk both upstream and downstream. The problem stems from the android tree and released sdk having different configurations. Review URL: https://chromiumcodereview.appspot.com/10830012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150172 0039d316-1c4b-4281-b951-d872f2087c98
* Move base/android/path_service.cc|h to path_service_android.cc|hbenm@chromium.org2012-08-063-5/+5
| | | | | | | | | | | Gyp targets shouldn't contain source with identical basenames. Fallout from http://src.chromium.org/viewvc/chrome?view=rev&revision=149842 Review URL: https://chromiumcodereview.appspot.com/10828152 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150110 0039d316-1c4b-4281-b951-d872f2087c98
* Android requires some extra functionality to set the path to it's resource ↵benm@chromium.org2012-08-034-0/+70
| | | | | | | | | | | | | | pak files and native libraries. This patch adds a new value to the PathService to implement the resource pak override and update the places that load pak files to take advantage of it. Also adds a function for embedders to set the path to native libraries. Review URL: https://chromiumcodereview.appspot.com/10802065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149842 0039d316-1c4b-4281-b951-d872f2087c98
* Do not wrap preprocessor lines in the generated JNI.tedchoc@chromium.org2012-08-032-1/+19
| | | | | | | | | | | | For classes with long package/class names, this can extend over 80 characters when preceded by a #ifndef, etc.. BUG= Review URL: https://chromiumcodereview.appspot.com/10850030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149780 0039d316-1c4b-4281-b951-d872f2087c98
* Use JavaObjectWeakGlobalRef in ContentViewCore.nileshagrawal@chromium.org2012-08-022-7/+21
| | | | | | | | | | | | | | Java ContentViewCore object may be garbage collected without first destroying the native object. Because of this, all C++->Java calls to ContentViewCore must be guarded with a null check. BUG=139386,138237 Review URL: https://chromiumcodereview.appspot.com/10827125 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149570 0039d316-1c4b-4281-b951-d872f2087c98
* Android: upstream @DisabledTest annotation for instrumentation tests.bulach@chromium.org2012-08-011-0/+21
| | | | | | | | | | | | This annotation is used to disable specific instrumentation tests. While at it, disable the failing testBaseStartup. BUG=139365,139870 TEST=Android FYI tester bot is green. Review URL: https://chromiumcodereview.appspot.com/10829104 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149405 0039d316-1c4b-4281-b951-d872f2087c98
* Android: remove ant environment dependencies.torne@chromium.org2012-08-012-30/+2
| | | | | | | | | | | | | | | | The logic to calculate where the SDK should be is already done by envsetup and made available to gyp as a variable, so just have gyp pass this as a command line argument to ant. The behaviour is identical. This change is to move toward making it possible to build the Android port without having envsetup.sh sourced at build time (only at gyp-generation time), making it more like other platforms. It also simplifies the ant buildfiles. Review URL: https://chromiumcodereview.appspot.com/10821105 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149400 0039d316-1c4b-4281-b951-d872f2087c98
* Ignore block comments in JNI generator.husky@chromium.org2012-07-302-5/+29
| | | | | | | | | | | | | | The JNI generator was being confused by the word 'native' appearing in a block comment in ChromeBrowserProvider.java. This patch ensures that all comments are stripped out correctly. BUG=138941 TEST=jni_generator_tests.py Review URL: https://chromiumcodereview.appspot.com/10830035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148967 0039d316-1c4b-4281-b951-d872f2087c98
* Fix segfault in JNIEnv function hooks for testhusky@chromium.org2012-07-302-22/+33
| | | | | | | | | | | | | | | On newer JB builds, the JNINativeInterface struct appears to be held in read-only memory so attempting to repoint individual function pointers in it causes segfault. So instead we repoint the top-level struct pointer to refer to our own copy held in read/write memory. BUG=137348 TEST=JNIAndroidTest Review URL: https://chromiumcodereview.appspot.com/10828050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148943 0039d316-1c4b-4281-b951-d872f2087c98
* Upstream Android LongPressDetectoryusufo@chromium.org2012-07-261-0/+66
| | | | | | | | | | | | | | | | | Include the LongPressDetectorTest as part of the ContentShellTests.apk. Produce a jar (ContentShellTests-debug.jar) so that run_instrumentation_tests.py can use Proguard to enumerate the tests by annotation. BUG=136687 TEST=LongPressDetectorTest Review URL: https://chromiumcodereview.appspot.com/10818039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148636 0039d316-1c4b-4281-b951-d872f2087c98
* Add yfriedman to several Android OWNERS filesyfriedman@chromium.org2012-07-261-0/+1
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10829023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148555 0039d316-1c4b-4281-b951-d872f2087c98
* Android: upstream instrumentation test components.bulach@chromium.org2012-07-233-0/+103
| | | | | | | | | | | | | In preparation for upstreaming the instrumentation tests, we need these components first. BUG=136687 TEST= Review URL: https://chromiumcodereview.appspot.com/10796031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147989 0039d316-1c4b-4281-b951-d872f2087c98
* Android Allows nested namespace in @JNINamespace annotation.bulach@chromium.org2012-07-234-18/+20
| | | | | | | | | | | | | There are a few cases such as PathUtils that requires "base::android". BUG= TEST=jni_generator_tests Review URL: https://chromiumcodereview.appspot.com/10803055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147854 0039d316-1c4b-4281-b951-d872f2087c98
* Uses gyp "rules" rather than "actions" templates for the JNI generator.bulach@chromium.org2012-07-197-116/+63
| | | | | | | | | | | | | | | | | This allow finer grain control over what is rebuilt. Also, since we have approval over the generated header file name, it greatly simplifies both the generator and also all the gyp files as they no longer need to list the header file and keep in sync with the java file, so the process now is as simple as adding a single java file to the sources. BUG=137069 TEST=build on android Review URL: https://chromiumcodereview.appspot.com/10798010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147515 0039d316-1c4b-4281-b951-d872f2087c98
* Upstream support for WebKit shared timer toggling.pliard@chromium.org2012-07-191-0/+1
| | | | | | | | | | | | | | | | | This is part of Chrome for Android upstreaming. These changes are used on the Java app side to suspend webkit timers in all renderers when activity is paused and resume timers when activity is resumed. This reduces javascript execution when the app is in the background, causing lesser CPU and network usage. It doesn't stop javascript altogether because if the page JS is constantly running without relying on timers/events then it continues to run (but that is quite rare). Review URL: https://chromiumcodereview.appspot.com/10690023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147438 0039d316-1c4b-4281-b951-d872f2087c98
* Remove "chrome" hardcoded suffix from Android .pak path.tedchoc@chromium.org2012-07-171-11/+28
| | | | | | | | | | BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10778023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147043 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the rest of #pragma once in one big CL.ajwong@chromium.org2012-07-111-1/+0
| | | | | | | | | For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Revert 146000 - Split out ContentViewCore from ContentView for ↵tedchoc@chromium.org2012-07-112-10/+10
| | | | | | | | | | | | | | | embedders." This reverts commit 331b803f65e8f994f9148024e8c2be6b465c6a6e. TBR=ericu@chromium.org BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10696173 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146141 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 146000 - Split out ContentViewCore from ContentView for embedders.ericu@google.com2012-07-112-10/+10
| | | | | | | | | | | | | | | | | Some embedders do not want the additional view added by using ContentView, so we are splitting out ContentViewCore so the functionality can be used without forcing an additional FrameLayout. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10704049 TBR=tedchoc@chromium.org Review URL: https://chromiumcodereview.appspot.com/10693134 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146005 0039d316-1c4b-4281-b951-d872f2087c98
* Split out ContentViewCore from ContentView for embedders.tedchoc@chromium.org2012-07-112-10/+10
| | | | | | | | | | | | | | Some embedders do not want the additional view added by using ContentView, so we are splitting out ContentViewCore so the functionality can be used without forcing an additional FrameLayout. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10704049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146000 0039d316-1c4b-4281-b951-d872f2087c98
* Switch base/ registrations to a static class method where appropriate.nileshagrawal@chromium.org2012-07-093-10/+8
| | | | | | | | | | BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10753007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145757 0039d316-1c4b-4281-b951-d872f2087c98
* Move DeviceInfo to common to prevent a DEPS failure.leandrogracia@chromium.org2012-07-051-1/+1
| | | | | | | | | | | | | | The DeviceInfo class is expected to be used in RenderViewImpl in the future. Needs to be moved from browser to the common folder. BUG=125390 TEST=none Review URL: https://chromiumcodereview.appspot.com/10698097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145553 0039d316-1c4b-4281-b951-d872f2087c98
* upstream SurfaceTextureListener and SurfaceTextureBridge class for androidqinmin@chromium.org2012-07-021-1/+1
| | | | | | | | | | BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10695020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145213 0039d316-1c4b-4281-b951-d872f2087c98
* Add Java function to retrieve the native library dir.aurimas@chromium.org2012-07-024-0/+34
| | | | | | | | | | | | Upstreaming the Change with change-id: I94aa26a6e421ec8310f351a410b9083d49eb90f4 made by Ben Murdoch (benm@google.com) BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10663039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145179 0039d316-1c4b-4281-b951-d872f2087c98
* Android JNI generator: raises an error when there are no JNI methods.bulach@chromium.org2012-07-022-0/+14
| | | | | | | | | | | | Minor sanity check to avoid parsing files without JNI methods. BUG= TEST=testRaisesOnNonJNIMethod Review URL: https://chromiumcodereview.appspot.com/10636049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145150 0039d316-1c4b-4281-b951-d872f2087c98
* JNI Generator: Always generate static fwd declarations for free functions.pliard@chromium.org2012-07-022-16/+8
| | | | | | | | | | | | | This lets us use the namespace specification (through @JNINamespace) for free functions while keeping functions private (non-exported). This only works because we never use exported JNI functions. TEST=jni_generator_tests Review URL: https://chromiumcodereview.appspot.com/10695040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145135 0039d316-1c4b-4281-b951-d872f2087c98