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

Issue 373733003: Make sure WebContents passed to chrome_page_zoom::Zoom() have a ZoomController. (Closed)

Created:
6 years, 5 months ago by wjmaclean
Modified:
6 years, 5 months ago
CC:
chromium-reviews, vsevik, jennb, jianli, Dmitry Titov, yurys, paulirish+reviews_chromium.org, dcheng, devtools-reviews_chromium.org, aandrey+blink_chromium.org, Fady Samuel
Project:
chromium
Visibility:
Public.

Description

Make sure WebContents passed to chrome_page_zoom::Zoom() have a ZoomController. Not all WebContents will be zoomed by chrome_page_zoom::Zoom(), but those that are need to have a ZoomCOntroller. It is assumed that at the point at which the WebContents is created it should be known if it will be passed into chrome_page_zoom::Zoom(), so the ZoomController is created at that point. BUG=391708 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282221

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address comments, move IsDevTools check out of browser.cc. #

Patch Set 3 : Rebase to r282074. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -4 lines) Patch
M chrome/browser/chrome_page_zoom.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/devtools/devtools_window.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_host.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/zoom/zoom_controller.h View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/zoom/zoom_controller.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
wjmaclean
6 years, 5 months ago (2014-07-07 15:41:57 UTC) #1
wjmaclean
Just a further comment: another option is to have chrome_page_zoom::Zoom() force creation of the ZoomController ...
6 years, 5 months ago (2014-07-07 15:44:06 UTC) #2
Dan Beam
lgtm, though i'm not sure dev tools needs a ZoomController. the original reason we wrote ...
6 years, 5 months ago (2014-07-07 17:09:04 UTC) #3
wjmaclean
On 2014/07/07 17:09:04, Dan Beam wrote: > lgtm, though i'm not sure dev tools needs ...
6 years, 5 months ago (2014-07-07 17:17:12 UTC) #4
dgozman
On 2014/07/07 17:09:04, Dan Beam wrote: > lgtm, though i'm not sure dev tools needs ...
6 years, 5 months ago (2014-07-08 09:16:43 UTC) #5
wjmaclean
On 2014/07/08 09:16:43, dgozman wrote: > On 2014/07/07 17:09:04, Dan Beam wrote: > > lgtm, ...
6 years, 5 months ago (2014-07-08 12:27:05 UTC) #6
wjmaclean
pkasting@chromium.org: Please review changes?
6 years, 5 months ago (2014-07-08 12:48:35 UTC) #7
dgozman
> Moving the check presumably only works if DevTools has a ZoomController? Sure. But you ...
6 years, 5 months ago (2014-07-08 14:12:32 UTC) #8
wjmaclean
On 2014/07/08 14:12:32, dgozman wrote: > > Moving the check presumably only works if DevTools ...
6 years, 5 months ago (2014-07-08 14:49:05 UTC) #9
dgozman
> The tabs zoom api doesn't change the behaviour of existing UI (like the wrench ...
6 years, 5 months ago (2014-07-08 15:07:52 UTC) #10
Peter Kasting
LGTM https://codereview.chromium.org/373733003/diff/1/chrome/browser/chrome_page_zoom.cc File chrome/browser/chrome_page_zoom.cc (right): https://codereview.chromium.org/373733003/diff/1/chrome/browser/chrome_page_zoom.cc#newcode72 chrome/browser/chrome_page_zoom.cc:72: Nit: Extra blank line https://codereview.chromium.org/373733003/diff/1/chrome/browser/chrome_page_zoom.cc#newcode74 chrome/browser/chrome_page_zoom.cc:74: NOTREACHED(); This ...
6 years, 5 months ago (2014-07-08 19:16:43 UTC) #11
wjmaclean
thakis@chromium.org: Please review changes in chrome_page_zoom.cc (pkasting@ has already looked). https://codereview.chromium.org/373733003/diff/1/chrome/browser/chrome_page_zoom.cc File chrome/browser/chrome_page_zoom.cc (right): https://codereview.chromium.org/373733003/diff/1/chrome/browser/chrome_page_zoom.cc#newcode72 ...
6 years, 5 months ago (2014-07-08 20:51:21 UTC) #12
Peter Kasting
https://codereview.chromium.org/373733003/diff/1/chrome/browser/chrome_page_zoom.cc File chrome/browser/chrome_page_zoom.cc (right): https://codereview.chromium.org/373733003/diff/1/chrome/browser/chrome_page_zoom.cc#newcode74 chrome/browser/chrome_page_zoom.cc:74: NOTREACHED(); On 2014/07/08 20:51:21, wjmaclean wrote: > On 2014/07/08 ...
6 years, 5 months ago (2014-07-08 20:52:47 UTC) #13
pfeldman
devtools lgtm
6 years, 5 months ago (2014-07-08 20:55:32 UTC) #14
Nico
chrome_page_zoom.cc lgtm
6 years, 5 months ago (2014-07-08 23:48:58 UTC) #15
wjmaclean
The CQ bit was checked by wjmaclean@chromium.org
6 years, 5 months ago (2014-07-09 18:44:03 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wjmaclean@chromium.org/373733003/40001
6 years, 5 months ago (2014-07-09 18:45:13 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-10 00:12:13 UTC) #18
commit-bot: I haz the power
6 years, 5 months ago (2014-07-10 02:51:58 UTC) #19
Message was sent while issue was closed.
Change committed as 282221

Powered by Google App Engine
This is Rietveld 408576698