| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
Micro-opimization: remove additional string deep copies in inner loops.
BUG=
Review URL: https://chromiumcodereview.appspot.com/11416360
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173035 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This improves SystemMonitor on Android by firing RESUME/SUSPEND events when the
Android main activity goes to foreground/background.
This lets the Android port use the same code path as other platforms to support
the close idle network connections functionnality.
SUSPEND events are now fired 1 minute after the main activity goes to
background.
Additionnally this CL cleans up ActivityStatus used by the Java side
SystemMonitor class. ActivityStatus was suffering from various refactorings and
was providing a counter intuitive interface with the Listener/StateListener
duality.
In particular it was possible to call SystemMonitor.onPause/Resume() as opposed
to onStateChange(). This could lead to SystemMonitor.getActivity() returning
null. The issue was raised while this CL was prepared.
BUG=164495
Review URL: https://codereview.chromium.org/11538008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172864 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The ActivityStatus class used to track activity state changes is too basic
for some usage scenarios.
This patch does the following:
- Augment ActivityStatus with a new StateListener type that can be
registered to listen to all activity state changes.
Also add getActivity(), getState(), registerStateListener()
and unregisterStateListener() as static method.
- Add a new ChromiumActivity class that all Chromium main activities
should sub-class, to ensure that the ActivityStatus state is updated
appropriately.
- Modify all main activities in the Chromium code base to extend
from ChromiumActivity instead of Activity.
BUG=none
Review URL: https://chromiumcodereview.appspot.com/11419287
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171789 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of relying on a boolean to determine whether or not to rely on the
@JavascriptInterface annotation for injected APIs, allow the caller to pass
in an annotation that will be placed on the methods they want injected.
BUG=
Review URL: https://chromiumcodereview.appspot.com/11308356
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171352 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This will be used by the SSL client certificate support code to
return the certificate chain as a vector of DER-encoded X.509
certificates.
BUG=none
Review URL: https://chromiumcodereview.appspot.com/11418287
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171224 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
BUG=158821
Review URL: https://codereview.chromium.org/11416289
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170527 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of checking for a specific directory, check that the returned
directory contains a the base unit tests .so file. This should allow
the test to work on recent Jelly Bean build and make it less fragile
in general.
TEST=base_unittest:PathUtilsTest.TestGetNativeLibraryDirectory
BUG=
Review URL: https://chromiumcodereview.appspot.com/11412128
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169037 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enables DrawGL rendering (when used in downstream integration environment)
Still loose ends for:
- hiding the view and resource release paths
- correctly using the AwDrawGLInfo parameters, esp clip.
- and its a bit crashy
Depends on http://codereview.chromium.org/11293264/ and
http://codereview.chromium.org/11343058/
BUG=161409
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/11418025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168712 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
After r166482, it started deriving the JNI parameters from the "import" clause.
However, for "import foo.Outer.Inner", it'd generate "Lfoo/Outer/Inner" rather
than "Lfoo/Outer$Inner".
BUG=
TEST=build/android/jni_generator/jni_generator_tests.py
Review URL: https://chromiumcodereview.appspot.com/11293206
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167384 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=159476
Review URL: https://chromiumcodereview.appspot.com/11368146
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166844 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
parameters.
Rather than explicitly listing all the parameters
(see crbug.com/158722), infer almost all of them from the import section and inner classes.
Assumes other classes are in the same package as a fallback.
BUG=159397
TEST=base/android/jni_generator/jni_generator_tests.py
Review URL: https://chromiumcodereview.appspot.com/11363079
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166482 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Changes in this CL.
One google_location_settings_helper.h can be implemented separately for
chrome and unit_tests.
Removed google_location_settings_helper_factory.*
Removed the java GoogleLocationSettingsHelper files
Added 3 new unittests to test the new android infobar functionailty.
BUG=152236
Review URL: https://chromiumcodereview.appspot.com/11369065
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166343 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
Add symbol exports needed to build content shell.
BUG=158821
Review URL: https://codereview.chromium.org/11368031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165420 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of hardcoding the list of qualified JNI parameters,
pass it as a parameter so that different modules can inject their
classes.
This is the first step in such decoupling; follow up will start splitting
the class_list.jni list closer to their modules.
BUG=158722
TEST=jni_generator_tests
Review URL: https://chromiumcodereview.appspot.com/11339013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165250 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=none
Review URL: https://chromiumcodereview.appspot.com/11345006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164693 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Pre MR0 version in Android, we had an explicit "Enable Location"
setting in Chrome that will show the infobar based on the
settings. Post MR0, we use the combination of system master
location setting and system google apps location setting to
decide between
1. Showing the infobar with Allow button (if both master and
google apps are turned on)
2. Showing the infobar with Settings button that will take user
to Google Apps Location Setting activity (if master is on but
google apps location setting is turned off)
3. Do not show infobar (if master is off)
Above functionality has been added in this CL for both pre and
post MR0 cases.
This CL also removes the android unit_test for GeolocationEnabledDisabled. Since the android specific geolocation code is going to be refactored, this test along with few more android specific unit_tests will be added in an upcoming CL.
CQ-DEPEND=0f28fce084f6010242360fb7b6633b8fd7296be4
Review URL: https://chromiumcodereview.appspot.com/11186010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164466 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=149349
Review URL: https://chromiumcodereview.appspot.com/11275040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164335 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
Upstream Autofill functionality for Android.
BUG=138235
Review URL: https://chromiumcodereview.appspot.com/11187054
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163480 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rather than requiring early registration for all method id, we can initialize
them lazily as required.
This solves the problem of building against SDK X but running against X - 1.
Also adds a microbenchmark to ensure there are no considerable regressions.
Results are a bit variable, but it hovers over:
[ERROR:jni_android_unittest.cc(125)] JNI LazyMethodIDCall (us) 1983
[ERROR:jni_android_unittest.cc(127)] JNI MethodIDCall (us) 1862
BUG=152987
TEST=JNIAndroidMicrobenchmark.MethodId
TBR=akalin
Review URL: https://chromiumcodereview.appspot.com/11038015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162186 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
BUG=154293
Review URL: https://chromiumcodereview.appspot.com/11027024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162124 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
specific implementations.
This change moves the IgnoreNavigationResourceThrottle to a separate component
as it will be shared between chrome/android and android_webview.
This change also adds the chrome/ and android_webview/ specializations of the
throttle (or more precisely the callback that is used to find the right method
on the right delegate).
BUG=130006
TBR=ben@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10946008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160945 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Original change descriptions:
- make JNIAndroidTest work with --gtest_repeat
- add java exception info to breakpad
- add JniArray test
BUG=136707
TEST=Built and run jni_android_unittests.cc
Review URL: https://chromiumcodereview.appspot.com/11090022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160895 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit 64bfe38c416b0024c63cfeb932e8d3eac9f026b6.
The original CL was reverted due to build failure:
https://chromiumcodereview.appspot.com/11026080
BUG=
Review URL: https://chromiumcodereview.appspot.com/11096002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160746 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Breakages:
http://build.chromium.org/p/chromium/buildstatus?builder=Android%20%28dbg%29&number=673
Accounting for moved files and some cleanup.
BUG=137571
Review URL: https://chromiumcodereview.appspot.com/11026080
TBR=nileshagrawal@chromium.org
Review URL: https://codereview.chromium.org/11072009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160543 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
Accounting for moved files and some cleanup.
BUG=137571
Review URL: https://chromiumcodereview.appspot.com/11026080
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160537 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
Upstreaming chrome/common/chrome_* diff for Android.
BUG=152827
Review URL: https://chromiumcodereview.appspot.com/11031008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159777 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When generating JNI bindings for system classes, we try to get the ids
for methods based in the .class file in the SDK.
However, this may trigger run-time errors when trying to run on an older
SDK.
For these system classes, the JNI generator will bind using the "OrNULL"
variation.
BUG=152987
TEST=
Review URL: https://chromiumcodereview.appspot.com/10996063
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159769 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
Gives the GC a little less work todo, especially during repeatedly called async callpaths.
Review URL: https://chromiumcodereview.appspot.com/10913284
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158713 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This file contains some hand-written JNI, and a few
hops native<->java.
This clarifies things a bit by:
- adding a MediaPlayerBridge.java to avoid some hops.
- moving code to MediaPlayerListener.java.
Further clean up will be done by auto-generating bindings for
android.media.MediaPlayer directly.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/10961015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158275 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
This allows to simplify some places such as surface_texture_bridge.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/10968009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158249 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|