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

Issue 12217134: [Android WebView] Implement WebSettings.{get|set}LoadWithOverviewMode (Closed)

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

Description

[Android WebView] Implement WebSettings.{get|set}LoadWithOverviewMode The 'LoadWithOverviewMode' setting controls, whether the page needs to be scaled to fit contents into the viewport. Chrome on Android always adjusts page scale to fit contents. We need to make this behavior controllable. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=184631

Patch Set 1 #

Patch Set 2 : Corrections after the WebKit patch #

Total comments: 2

Patch Set 3 : Fixed typo in comment #

Total comments: 4

Patch Set 4 : Comments addressed #

Total comments: 2

Patch Set 5 : Avoid making changes in render_view_impl.cc #

Patch Set 6 : Really get rid of render_view_impl.cc change #

Total comments: 4

Patch Set 7 : Ben's comments addressed #

Patch Set 8 : Added comment for the message #

Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -23 lines) Patch
M android_webview/browser/renderer_host/aw_render_view_host_ext.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/browser/renderer_host/aw_render_view_host_ext.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M android_webview/common/render_view_messages.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 4 5 6 2 chunks +11 lines, -0 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientOnScaleChangedTest.java View 1 2 chunks +4 lines, -23 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java View 1 2 3 4 5 6 4 chunks +131 lines, -0 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/TestAwContentsClient.java View 1 2 3 4 chunks +25 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M android_webview/renderer/aw_render_view_ext.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/renderer/aw_render_view_ext.cc View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/android/content_settings.cc View 1 2 4 chunks +12 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentSettings.java View 1 2 3 chunks +18 lines, -0 lines 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/webpreferences.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/webpreferences.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
mnaganov (inactive)
Depends on a webkit patch: https://bugs.webkit.org/show_bug.cgi?id=109584
7 years, 10 months ago (2013-02-12 17:27:26 UTC) #1
mnaganov (inactive)
The webkit patch is now committed. Ben, please start reviewing the change.
7 years, 10 months ago (2013-02-14 14:22:01 UTC) #2
benm (inactive)
lgtm https://codereview.chromium.org/12217134/diff/7001/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java (right): https://codereview.chromium.org/12217134/diff/7001/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java#newcode2242 android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java:2242: // set in the viewport tag, Is this ...
7 years, 10 months ago (2013-02-14 18:29:38 UTC) #3
mnaganov (inactive)
OWNERS review needed (calling all Js :) jcivelli@: content/browser/android and content/public/android joi@: content/public/common jamesr@: content/renderer ...
7 years, 10 months ago (2013-02-14 21:37:29 UTC) #4
Jói
LGTM for content/public.
7 years, 10 months ago (2013-02-15 10:24:48 UTC) #5
mnaganov (inactive)
https://codereview.chromium.org/12217134/diff/7001/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java (right): https://codereview.chromium.org/12217134/diff/7001/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java#newcode2242 android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java:2242: // set in the viewport tag, On 2013/02/14 18:29:38, ...
7 years, 10 months ago (2013-02-15 10:30:19 UTC) #6
mnaganov (inactive)
Jay, James, can you please take a look?
7 years, 10 months ago (2013-02-19 20:56:37 UTC) #7
Jay Civelli
lgtm
7 years, 10 months ago (2013-02-19 21:17:33 UTC) #8
jamesr
I'm not sure the OnUpdate...() code will work - in some cases (for instance RenderViewImpl::Initialize()) ...
7 years, 10 months ago (2013-02-19 23:26:21 UTC) #9
mnaganov (inactive)
James, thanks for your comments! > I'm not sure the OnUpdate...() code will work - ...
7 years, 10 months ago (2013-02-20 10:36:49 UTC) #10
mnaganov (inactive)
James, can you please take another look? Those trans-Atlantic reviews have unpleasantly long turnaround time ...
7 years, 10 months ago (2013-02-21 21:25:48 UTC) #11
jamesr
On 2013/02/20 10:36:49, Mikhail Naganov (Chromium) wrote: > James, thanks for your comments! > > ...
7 years, 10 months ago (2013-02-21 22:35:13 UTC) #12
jamesr
On 2013/02/20 10:36:49, Mikhail Naganov (Chromium) wrote: > This setting resides in WebPreferences because it's ...
7 years, 10 months ago (2013-02-21 22:36:25 UTC) #13
jamesr
https://codereview.chromium.org/12217134/diff/20001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/12217134/diff/20001/content/renderer/render_view_impl.cc#newcode3330 content/renderer/render_view_impl.cc:3330: ViewMsg_Navigate_Type::RELOAD_ORIGINAL_REQUEST_URL); if you just want to modify the behavior ...
7 years, 10 months ago (2013-02-21 22:38:32 UTC) #14
mnaganov (inactive)
James, thanks for explaining your point of view! As this change of behaviour is only ...
7 years, 10 months ago (2013-02-22 15:55:16 UTC) #15
mnaganov (inactive)
Ben, can you please re-review the change? James, can you please still look at the ...
7 years, 10 months ago (2013-02-22 16:00:55 UTC) #16
jamesr
lgtm and thank you
7 years, 10 months ago (2013-02-22 20:47:06 UTC) #17
benm (inactive)
https://codereview.chromium.org/12217134/diff/28010/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/12217134/diff/28010/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode678 android_webview/java/src/org/chromium/android_webview/AwContents.java:678: public void resetScrollAndScaleState() { does this need to be ...
7 years, 10 months ago (2013-02-25 12:37:04 UTC) #18
mnaganov (inactive)
https://codereview.chromium.org/12217134/diff/28010/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/12217134/diff/28010/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode678 android_webview/java/src/org/chromium/android_webview/AwContents.java:678: public void resetScrollAndScaleState() { On 2013/02/25 12:37:04, benm wrote: ...
7 years, 10 months ago (2013-02-25 12:59:23 UTC) #19
benm (inactive)
lgtm
7 years, 10 months ago (2013-02-25 17:53:07 UTC) #20
mnaganov (inactive)
Thanks, Ben! Chris, can you please look at android_webview/common/render_view_messages.h?
7 years, 10 months ago (2013-02-25 18:02:34 UTC) #21
palmer
LGTM from IPC security perspective.
7 years, 10 months ago (2013-02-26 01:45:43 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnaganov@chromium.org/12217134/23019
7 years, 10 months ago (2013-02-26 10:20:53 UTC) #23
commit-bot: I haz the power
7 years, 10 months ago (2013-02-26 12:31:51 UTC) #24
Message was sent while issue was closed.
Change committed as 184631

Powered by Google App Engine
This is Rietveld 408576698