| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 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
|
|
|
|
|
|
|
|
|
| |
BUG=
Review URL: https://chromiumcodereview.appspot.com/10908271
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157274 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Review URL: https://chromiumcodereview.appspot.com/10829023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148555 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|