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

Issue 38793007: Experimental viewport meta tag support for desktop (Closed)

Created:
7 years, 2 months ago by bokan
Modified:
7 years, 1 month ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, miu+watch_chromium.org
Visibility:
Public.

Description

Experimental viewport meta tag support for desktop Added flag to allow desktop builds to experimentally turn on support for the viewport meta tag. The --enable-viewport flag now turns on only support for @viewport. --enable-viewport-meta turns on viewport meta and @viewport support. On Android, the viewport gets rescaled when the view is resized, i.e. phone is rotated between landscape and portrait. On desktop, enabling the viewport causes the page to zoom out when the window is shrunk, rather than adding scrollbars. To support viewport on both devices, I've added a --main-frame-resizes-are-orientation-changes flag that should be set on Android and not desktop. This prevents the viewport scaling code in WebViewImpl::resize(). Enabling viewport on desktop means the page scale can change. This causes a known issue with scrollbars where mouse events are scaled with the page, making mouse interaction with scrollbars broken. This is the Chromium side of a 2-side patch (Blink-side at https://codereview.chromium.org/40423003/) BUG=232102 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=234617

Patch Set 1 #

Total comments: 7

Patch Set 2 : Changed to MainFrameResizesAreOrientationChange #

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -3 lines) Patch
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/android/content_startup_flags.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 1 chunk +9 lines, -1 line 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 1 chunk +10 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/web_preferences.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/common/webpreferences.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/common/webpreferences.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
bokan
The flags I added would need to be set on Clank by default (replace --enable-viewport ...
7 years, 2 months ago (2013-10-24 16:11:40 UTC) #1
aelias_OOO_until_Jul13
https://codereview.chromium.org/38793007/diff/1/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/38793007/diff/1/content/browser/web_contents/web_contents_impl.cc#newcode671 content/browser/web_contents/web_contents_impl.cc:671: prefs.viewport_meta_enabled; This effectively turns on @viewport support for Android ...
7 years, 2 months ago (2013-10-25 04:13:27 UTC) #2
kenneth.r.christiansen
https://codereview.chromium.org/38793007/diff/1/chrome/browser/chromeos/login/chrome_restart_request.cc File chrome/browser/chromeos/login/chrome_restart_request.cc (right): https://codereview.chromium.org/38793007/diff/1/chrome/browser/chromeos/login/chrome_restart_request.cc#newcode110 chrome/browser/chromeos/login/chrome_restart_request.cc:110: ::switches::kScaleViewportOnResize, It cannot always scale and will overflow. Not ...
7 years, 2 months ago (2013-10-25 06:27:01 UTC) #3
bokan
https://codereview.chromium.org/38793007/diff/1/chrome/browser/chromeos/login/chrome_restart_request.cc File chrome/browser/chromeos/login/chrome_restart_request.cc (right): https://codereview.chromium.org/38793007/diff/1/chrome/browser/chromeos/login/chrome_restart_request.cc#newcode110 chrome/browser/chromeos/login/chrome_restart_request.cc:110: ::switches::kScaleViewportOnResize, On 2013/10/25 06:27:01, kenneth.r.christiansen wrote: > It cannot ...
7 years, 1 month ago (2013-10-25 17:19:33 UTC) #4
Mikhail
7 years, 1 month ago (2013-10-31 19:01:18 UTC) #5
aelias_OOO_until_Jul13
lgtm. Adding darin@ for OWNERS (this patch just adds new flags and plumbs them to ...
7 years, 1 month ago (2013-10-31 20:54:26 UTC) #6
bokan
On 2013/10/31 20:54:26, aelias wrote: > lgtm. Adding darin@ for OWNERS (this patch just adds ...
7 years, 1 month ago (2013-10-31 21:02:19 UTC) #7
aelias_OOO_until_Jul13
On 2013/10/31 21:02:19, bokan wrote: > I'm assuming I should land the Blink CL first ...
7 years, 1 month ago (2013-11-01 00:05:57 UTC) #8
bokan
Blink side has landed. Darin, please take a look. Thanks.
7 years, 1 month ago (2013-11-06 23:30:25 UTC) #9
kenneth.r.christiansen
https://codereview.chromium.org/38793007/diff/150001/content/public/common/content_switches.h File content/public/common/content_switches.h (right): https://codereview.chromium.org/38793007/diff/150001/content/public/common/content_switches.h#newcode170 content/public/common/content_switches.h:170: extern const char kEnableViewportMeta[]; What is the rule for ...
7 years, 1 month ago (2013-11-07 09:06:26 UTC) #10
bokan
On 2013/11/07 09:06:26, kenneth.r.christiansen wrote: > https://codereview.chromium.org/38793007/diff/150001/content/public/common/content_switches.h > File content/public/common/content_switches.h (right): > > https://codereview.chromium.org/38793007/diff/150001/content/public/common/content_switches.h#newcode170 > ...
7 years, 1 month ago (2013-11-12 00:51:53 UTC) #11
darin (slow to review)
LGTM
7 years, 1 month ago (2013-11-12 05:12:28 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bokan@chromium.org/38793007/230001
7 years, 1 month ago (2013-11-12 14:49:03 UTC) #13
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 1 month ago (2013-11-12 18:43:25 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bokan@chromium.org/38793007/230001
7 years, 1 month ago (2013-11-12 19:29:02 UTC) #15
commit-bot: I haz the power
7 years, 1 month ago (2013-11-12 20:15:30 UTC) #16
Message was sent while issue was closed.
Change committed as 234617

Powered by Google App Engine
This is Rietveld 408576698