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

Issue 14840011: [Android] Move zoom controls management into WebView (Closed)

Created:
7 years, 7 months ago by mnaganov (inactive)
Modified:
7 years, 7 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, android-webview-reviews_chromium.org
Visibility:
Public.

Description

[Android] Move zoom controls management into WebView Chrome for Android doesn't use zoom controls, so it makes sense to move all the related code into android_webview. However, as visibility of zoom controls is controlled from the internals of ContentView*, we are providing hooks through a new delegate interface. BUG=b/8296421 R=benm@chromium.org, joth@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=198862

Patch Set 1 #

Total comments: 2

Patch Set 2 : Introduced ZoomControlsDelegate interface instead of inheritance #

Total comments: 4

Patch Set 3 : Comments addressed #

Patch Set 4 : Use an interface and an inline stub, as discussed offline #

Total comments: 18

Messages

Total messages: 13 (0 generated)
mnaganov (inactive)
ContentSettings / AwSettings refactoring continued
7 years, 7 months ago (2013-05-02 12:26:54 UTC) #1
benm (inactive)
https://codereview.chromium.org/14840011/diff/1/content/public/android/java/src/org/chromium/content/browser/ZoomManager.java File content/public/android/java/src/org/chromium/content/browser/ZoomManager.java (right): https://codereview.chromium.org/14840011/diff/1/content/public/android/java/src/org/chromium/content/browser/ZoomManager.java#newcode140 content/public/android/java/src/org/chromium/content/browser/ZoomManager.java:140: public void invokeZoomPicker() { Would it be nice I ...
7 years, 7 months ago (2013-05-02 13:08:44 UTC) #2
mnaganov (inactive)
https://codereview.chromium.org/14840011/diff/1/content/public/android/java/src/org/chromium/content/browser/ZoomManager.java File content/public/android/java/src/org/chromium/content/browser/ZoomManager.java (right): https://codereview.chromium.org/14840011/diff/1/content/public/android/java/src/org/chromium/content/browser/ZoomManager.java#newcode140 content/public/android/java/src/org/chromium/content/browser/ZoomManager.java:140: public void invokeZoomPicker() { On 2013/05/02 13:08:44, benm wrote: ...
7 years, 7 months ago (2013-05-03 09:00:17 UTC) #3
benm (inactive)
Thanks Mikhail! https://codereview.chromium.org/14840011/diff/6001/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java File content/public/android/java/src/org/chromium/content/browser/ContentSettings.java (right): https://codereview.chromium.org/14840011/diff/6001/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java#newcode57 content/public/android/java/src/org/chromium/content/browser/ContentSettings.java:57: return false; nit: maybe make this a ...
7 years, 7 months ago (2013-05-03 09:31:33 UTC) #4
mnaganov (inactive)
https://codereview.chromium.org/14840011/diff/6001/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java File content/public/android/java/src/org/chromium/content/browser/ContentSettings.java (right): https://codereview.chromium.org/14840011/diff/6001/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java#newcode57 content/public/android/java/src/org/chromium/content/browser/ContentSettings.java:57: return false; On 2013/05/03 09:31:34, benm wrote: > nit: ...
7 years, 7 months ago (2013-05-03 10:30:57 UTC) #5
benm (inactive)
lgtm thanks mikhail! https://codereview.chromium.org/14840011/diff/6003/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/14840011/diff/6003/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode678 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:678: mZoomControlsDelegate = new ZoomControlsDelegate() { nit: ...
7 years, 7 months ago (2013-05-03 16:01:12 UTC) #6
mnaganov (inactive)
Jonathan, PTAL! I need an owner's review for the changes in content.
7 years, 7 months ago (2013-05-03 16:05:08 UTC) #7
mnaganov (inactive)
Thanks, Ben! https://codereview.chromium.org/14840011/diff/6003/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/14840011/diff/6003/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode678 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:678: mZoomControlsDelegate = new ZoomControlsDelegate() { On 2013/05/03 ...
7 years, 7 months ago (2013-05-03 16:09:51 UTC) #8
joth
nice cleanup, lgtm some suggestions for going even further with this, but maybe as another ...
7 years, 7 months ago (2013-05-03 19:32:43 UTC) #9
mnaganov (inactive)
Thanks, Jonathan! Very insightful comments. https://codereview.chromium.org/14840011/diff/6003/android_webview/java/src/org/chromium/android_webview/AwZoomControls.java File android_webview/java/src/org/chromium/android_webview/AwZoomControls.java (right): https://codereview.chromium.org/14840011/diff/6003/android_webview/java/src/org/chromium/android_webview/AwZoomControls.java#newcode26 android_webview/java/src/org/chromium/android_webview/AwZoomControls.java:26: if (zoomControls != null ...
7 years, 7 months ago (2013-05-07 09:55:44 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnaganov@chromium.org/14840011/6003
7 years, 7 months ago (2013-05-07 09:55:57 UTC) #11
mnaganov (inactive)
This should land soonish
7 years, 7 months ago (2013-05-07 13:00:14 UTC) #12
mnaganov (inactive)
7 years, 7 months ago (2013-05-08 07:56:24 UTC) #13
Message was sent while issue was closed.
Committed patchset #4 manually as r198862 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698