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

Issue 302603012: Zoom Extension API (content changes) (Closed)

Created:
6 years, 6 months ago by wjmaclean
Modified:
6 years, 6 months ago
Reviewers:
palmer, Fady Samuel, fsamuel, jam
CC:
chromium-reviews, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Zoom Extension API (content changes) Changes to content/ needed to facilitate the new zoom extension API, which is outlined in: https://docs.google.com/a/chromium.org/document/d/1sCZjx1J3_M2a02T8NXd-ufGKZDoBHI5Ixis1DaGLQCA/edit?usp=sharing Based on code from https://codereview.chromium.org/226523006/, with various fixes and rebased against changes in https://codereview.chromium.org/287093002/ Must land before https://codereview.chromium.org/301733006/. BUG=30583 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277153

Patch Set 1 #

Total comments: 1

Patch Set 2 : In progress, uploaded for testing only. #

Patch Set 3 : Additions to HostZoomMap API. #

Total comments: 21

Patch Set 4 : Address comments. #

Total comments: 1

Patch Set 5 : Remove exceptions from IPC. #

Total comments: 38

Patch Set 6 : Address comments. #

Total comments: 14

Patch Set 7 : Use ContainsKey(), send host zoom level if it exists. #

Total comments: 8

Patch Set 8 : Fix nits. #

Total comments: 14

Patch Set 9 : Fix nits. #

Total comments: 6

Patch Set 10 : Added comments re GURL vs host/scheme use. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -125 lines) Patch
M content/browser/host_zoom_map_impl.h View 1 2 3 4 5 6 7 8 9 5 chunks +28 lines, -26 lines 0 comments Download
M content/browser/host_zoom_map_impl.cc View 1 2 3 4 5 6 7 8 9 8 chunks +87 lines, -95 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 1 chunk +6 lines, -2 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/browser/host_zoom_map.h View 1 2 3 4 5 6 7 8 2 chunks +27 lines, -1 line 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
wjmaclean
Moved from https://codereview.chromium.org/226523006/
6 years, 6 months ago (2014-05-28 15:31:24 UTC) #1
fsamuel
https://codereview.chromium.org/302603012/diff/1/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/302603012/diff/1/content/renderer/render_thread_impl.cc#newcode1200 content/renderer/render_thread_impl.cc:1200: const std::set<int>& exceptions) { I'm confused. What are we ...
6 years, 6 months ago (2014-05-28 15:37:05 UTC) #2
wjmaclean
On 2014/05/28 15:37:05, fsamuel wrote: > https://codereview.chromium.org/302603012/diff/1/content/renderer/render_thread_impl.cc > File content/renderer/render_thread_impl.cc (right): > > https://codereview.chromium.org/302603012/diff/1/content/renderer/render_thread_impl.cc#newcode1200 > ...
6 years, 6 months ago (2014-05-28 15:40:30 UTC) #3
fsamuel
On 2014/05/28 15:40:30, wjmaclean wrote: > On 2014/05/28 15:37:05, fsamuel wrote: > > > https://codereview.chromium.org/302603012/diff/1/content/renderer/render_thread_impl.cc ...
6 years, 6 months ago (2014-05-28 15:42:09 UTC) #4
wjmaclean
On 2014/05/28 15:42:09, fsamuel wrote: > > The original use was to isolate manual zoom ...
6 years, 6 months ago (2014-05-28 15:43:38 UTC) #5
wjmaclean
This cl, in conjunction with https://codereview.chromium.org/301733006/, seems to be fairly mature now, so I'd like ...
6 years, 6 months ago (2014-06-05 17:58:55 UTC) #6
Fady Samuel
I have a bunch of API level comments. It might be easier to take this ...
6 years, 6 months ago (2014-06-09 15:43:21 UTC) #7
wjmaclean
I'll incorporate the changes into the next uploaded patch. See comments below. https://codereview.chromium.org/302603012/diff/40001/content/browser/host_zoom_map_impl.cc File content/browser/host_zoom_map_impl.cc ...
6 years, 6 months ago (2014-06-09 17:23:29 UTC) #8
wjmaclean
I've uploaded the new patch. 1) I suspect there's more cost in setting up and ...
6 years, 6 months ago (2014-06-10 13:20:09 UTC) #9
Fady Samuel
https://codereview.chromium.org/302603012/diff/60001/content/common/view_messages.h File content/common/view_messages.h (right): https://codereview.chromium.org/302603012/diff/60001/content/common/view_messages.h#newcode689 content/common/view_messages.h:689: std::set<int> /* exceptions */) I'm still not particularly comfortable ...
6 years, 6 months ago (2014-06-10 14:24:27 UTC) #10
wjmaclean
On 2014/06/10 14:24:27, Fady Samuel wrote: > https://codereview.chromium.org/302603012/diff/60001/content/common/view_messages.h > File content/common/view_messages.h (right): > > https://codereview.chromium.org/302603012/diff/60001/content/common/view_messages.h#newcode689 ...
6 years, 6 months ago (2014-06-10 15:15:16 UTC) #11
wjmaclean
PTAL
6 years, 6 months ago (2014-06-10 18:21:20 UTC) #12
Fady Samuel
Two main thoughts: 1. I think a couple of the IPCs can be merged into ...
6 years, 6 months ago (2014-06-10 20:05:14 UTC) #13
wjmaclean
I'll start working on the changes, but I don't think I agree with them all ...
6 years, 6 months ago (2014-06-10 20:18:55 UTC) #14
wjmaclean
PTAL https://codereview.chromium.org/302603012/diff/80001/content/browser/host_zoom_map_impl.cc File content/browser/host_zoom_map_impl.cc (right): https://codereview.chromium.org/302603012/diff/80001/content/browser/host_zoom_map_impl.cc#newcode282 content/browser/host_zoom_map_impl.cc:282: void HostZoomMapImpl::SetUsesTemporaryZoomLevel( On 2014/06/10 20:05:13, Fady Samuel wrote: ...
6 years, 6 months ago (2014-06-12 17:40:09 UTC) #15
Fady Samuel
This looks really good. Just a few small changes and I'll happily sign off on ...
6 years, 6 months ago (2014-06-12 18:49:48 UTC) #16
wjmaclean
https://codereview.chromium.org/302603012/diff/100001/content/browser/host_zoom_map_impl.cc File content/browser/host_zoom_map_impl.cc (right): https://codereview.chromium.org/302603012/diff/100001/content/browser/host_zoom_map_impl.cc#newcode278 content/browser/host_zoom_map_impl.cc:278: return temporary_zoom_levels_.find(key) != temporary_zoom_levels_.end(); On 2014/06/12 18:49:48, Fady Samuel ...
6 years, 6 months ago (2014-06-12 19:35:53 UTC) #17
Fady Samuel
lgtm with nits. https://codereview.chromium.org/302603012/diff/120001/content/browser/host_zoom_map_impl.cc File content/browser/host_zoom_map_impl.cc (right): https://codereview.chromium.org/302603012/diff/120001/content/browser/host_zoom_map_impl.cc#newcode243 content/browser/host_zoom_map_impl.cc:243: SetTemporaryZoomLevel(render_process_id, nit: Unnecessary change, revert. https://codereview.chromium.org/302603012/diff/120001/content/browser/host_zoom_map_impl.cc#newcode361 ...
6 years, 6 months ago (2014-06-12 19:42:44 UTC) #18
Fady Samuel
https://codereview.chromium.org/302603012/diff/120001/content/common/view_messages.h File content/common/view_messages.h (right): https://codereview.chromium.org/302603012/diff/120001/content/common/view_messages.h#newcode684 content/common/view_messages.h:684: // Render views in the exception list do not ...
6 years, 6 months ago (2014-06-12 19:43:18 UTC) #19
Fady Samuel
https://codereview.chromium.org/302603012/diff/120001/content/common/view_messages.h File content/common/view_messages.h (right): https://codereview.chromium.org/302603012/diff/120001/content/common/view_messages.h#newcode684 content/common/view_messages.h:684: // Render views in the exception list do not ...
6 years, 6 months ago (2014-06-12 19:43:18 UTC) #20
wjmaclean
https://codereview.chromium.org/302603012/diff/120001/content/browser/host_zoom_map_impl.cc File content/browser/host_zoom_map_impl.cc (right): https://codereview.chromium.org/302603012/diff/120001/content/browser/host_zoom_map_impl.cc#newcode243 content/browser/host_zoom_map_impl.cc:243: SetTemporaryZoomLevel(render_process_id, On 2014/06/12 19:42:44, Fady Samuel wrote: > nit: ...
6 years, 6 months ago (2014-06-12 19:58:19 UTC) #21
jam
https://codereview.chromium.org/302603012/diff/140001/content/browser/host_zoom_map_impl.cc File content/browser/host_zoom_map_impl.cc (right): https://codereview.chromium.org/302603012/diff/140001/content/browser/host_zoom_map_impl.cc#newcode289 content/browser/host_zoom_map_impl.cc:289: namespace { nit: in general, there's usually one anonymous ...
6 years, 6 months ago (2014-06-12 21:35:53 UTC) #22
Fady Samuel
https://codereview.chromium.org/302603012/diff/140001/content/browser/host_zoom_map_impl.h File content/browser/host_zoom_map_impl.h (right): https://codereview.chromium.org/302603012/diff/140001/content/browser/host_zoom_map_impl.h#newcode109 content/browser/host_zoom_map_impl.h:109: typedef std::map<RenderViewKey, double> TemporaryZoomLevels; On 2014/06/12 21:35:52, jam wrote: ...
6 years, 6 months ago (2014-06-12 21:43:49 UTC) #23
jam
lgtm https://codereview.chromium.org/302603012/diff/140001/content/browser/host_zoom_map_impl.h File content/browser/host_zoom_map_impl.h (right): https://codereview.chromium.org/302603012/diff/140001/content/browser/host_zoom_map_impl.h#newcode109 content/browser/host_zoom_map_impl.h:109: typedef std::map<RenderViewKey, double> TemporaryZoomLevels; On 2014/06/12 21:43:49, Fady ...
6 years, 6 months ago (2014-06-13 15:25:49 UTC) #24
wjmaclean
Fixed nits. +palmer@ for OWNERS approval on view_messages.h https://codereview.chromium.org/302603012/diff/140001/content/browser/host_zoom_map_impl.cc File content/browser/host_zoom_map_impl.cc (right): https://codereview.chromium.org/302603012/diff/140001/content/browser/host_zoom_map_impl.cc#newcode289 content/browser/host_zoom_map_impl.cc:289: namespace ...
6 years, 6 months ago (2014-06-13 16:00:17 UTC) #25
palmer
IPC security LGTM, although I do think it's better to go with GURLs than with ...
6 years, 6 months ago (2014-06-13 17:47:02 UTC) #26
wjmaclean
Bug filed, comments added. https://codereview.chromium.org/302603012/diff/160001/content/browser/host_zoom_map_impl.cc File content/browser/host_zoom_map_impl.cc (right): https://codereview.chromium.org/302603012/diff/160001/content/browser/host_zoom_map_impl.cc#newcode192 content/browser/host_zoom_map_impl.cc:192: SendZoomLevelChange(std::string(), host, level); On 2014/06/13 ...
6 years, 6 months ago (2014-06-13 20:05:22 UTC) #27
wjmaclean
The CQ bit was checked by wjmaclean@chromium.org
6 years, 6 months ago (2014-06-13 20:05:31 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wjmaclean@chromium.org/302603012/180001
6 years, 6 months ago (2014-06-13 20:07:16 UTC) #29
commit-bot: I haz the power
6 years, 6 months ago (2014-06-14 01:49:43 UTC) #30
Message was sent while issue was closed.
Change committed as 277153

Powered by Google App Engine
This is Rietveld 408576698