Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Issue 2561463004: Refactor ZoomControlsDelegate out of ContentViewCore (Closed)

Created:
4 years ago by rlanday
Modified:
4 years ago
CC:
agrieve+watch_chromium.org, android-webview-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, jam
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor ZoomControlsDelegate out of ContentViewCore We can keep this logic entirely in AwContents, it doesn't need to be in ContentViewCore. I'm using the existing GestureStateListener interface to signal AwZoomControls of the relevant events, but I did have to add a few more events to that interface. Hopefully they're OK and will work with our future plans to refactor more input-handling stuff out of ContentViewCore. Note on testing this: the Android WebView shell works for testing but I had to knock out the "&& mAwContents.getSettings().shouldDisplayZoomControls()" check in getZoomController() to enable the zoom controls. Once you do this they appear when scrolling. BUG=664339 Committed: https://crrev.com/6ea15211ce9bda01f3ef0a014d30997b5fe06769 Cr-Commit-Position: refs/heads/master@{#438045}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Don't unnecessarily route detach/visibility change events through CVC and back #

Total comments: 4

Patch Set 3 : Remove more stuff #

Patch Set 4 : Rebase (no actual changes needed) #

Messages

Total messages: 37 (21 generated)
rlanday
I think this works, still waiting for the trybots to run but the zoom controls ...
4 years ago (2016-12-08 01:52:25 UTC) #5
rlanday
On 2016/12/08 at 01:52:25, rlanday wrote: > I think this works, still waiting for the ...
4 years ago (2016-12-08 02:11:05 UTC) #6
boliu
https://codereview.chromium.org/2561463004/diff/1/content/public/android/java/src/org/chromium/content_public/browser/GestureStateListener.java File content/public/android/java/src/org/chromium/content_public/browser/GestureStateListener.java (right): https://codereview.chromium.org/2561463004/diff/1/content/public/android/java/src/org/chromium/content_public/browser/GestureStateListener.java#newcode81 content/public/android/java/src/org/chromium/content_public/browser/GestureStateListener.java:81: public void onVisibilityChanged(int visibility) {} visibility and detach are ...
4 years ago (2016-12-08 06:08:05 UTC) #9
rlanday
https://codereview.chromium.org/2561463004/diff/1/content/public/android/java/src/org/chromium/content_public/browser/GestureStateListener.java File content/public/android/java/src/org/chromium/content_public/browser/GestureStateListener.java (right): https://codereview.chromium.org/2561463004/diff/1/content/public/android/java/src/org/chromium/content_public/browser/GestureStateListener.java#newcode81 content/public/android/java/src/org/chromium/content_public/browser/GestureStateListener.java:81: public void onVisibilityChanged(int visibility) {} On 2016/12/08 at 06:08:05, ...
4 years ago (2016-12-08 18:32:01 UTC) #10
rlanday
I cleaned this up as requested, the ScreenOrientationListenerTest that was failing on the trybot is ...
4 years ago (2016-12-08 20:19:12 UTC) #13
boliu
https://codereview.chromium.org/2561463004/diff/20001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/2561463004/diff/20001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode3247 android_webview/java/src/org/chromium/android_webview/AwContents.java:3247: if (!viewVisible) { I was gonna suggest move this ...
4 years ago (2016-12-08 21:29:07 UTC) #14
rlanday
Updated with requested changes https://codereview.chromium.org/2561463004/diff/20001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/2561463004/diff/20001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode3247 android_webview/java/src/org/chromium/android_webview/AwContents.java:3247: if (!viewVisible) { On 2016/12/08 ...
4 years ago (2016-12-08 22:19:34 UTC) #17
boliu
lgtm think I meant to do that 2 days ago..
4 years ago (2016-12-10 22:11:59 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2561463004/60001
4 years ago (2016-12-12 19:01:08 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_amd64-generic_chromium_compile_only_ng on ...
4 years ago (2016-12-12 21:05:21 UTC) #25
rlanday
I tried some of the failing tests on master, they're failing there too, hopefully they'll ...
4 years ago (2016-12-12 22:11:57 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2561463004/60001
4 years ago (2016-12-12 22:12:19 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/197604)
4 years ago (2016-12-13 01:05:16 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2561463004/60001
4 years ago (2016-12-13 03:04:59 UTC) #32
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-13 03:52:57 UTC) #35
commit-bot: I haz the power
4 years ago (2016-12-13 03:55:01 UTC) #37
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/6ea15211ce9bda01f3ef0a014d30997b5fe06769
Cr-Commit-Position: refs/heads/master@{#438045}

Powered by Google App Engine
This is Rietveld 408576698