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

Issue 570048: Add zoom extension API (Closed)

Created:
10 years, 10 months ago by andersrb
Modified:
8 years, 9 months ago
CC:
chromium-reviews, pam+watch_chromium.org, ben+cc_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org, Erik does not do reviews, Paweł Hajdan Jr., Mihai Parparita -not on Chrome
Visibility:
Public.

Description

Add zoom extension API BUG=30583

Patch Set 1 #

Patch Set 2 : Improve documentation for zoom API. Add generated html. #

Patch Set 3 : Update patch for latest version of chromium. Split zoom function into zoomIn/Out #

Patch Set 4 : Switch extension API to get/set instead of in/out #

Patch Set 5 : Convert zoom extension interface to use zoom percentages instead of zoom levels #

Patch Set 6 : Move temporary zoom handling from HostZoomMap to TabControl #

Patch Set 7 : Convert SetZoomPercent to be asynchronous. Add unit tests. #

Patch Set 8 : Zoom extension API with docs and examples #

Unified diffs Side-by-side diffs Delta from patch set Stats (+552 lines, -33 lines) Patch
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_apitest.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module.h View 1 2 3 4 5 6 7 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module.cc View 1 2 3 4 5 6 7 1 chunk +92 lines, -0 lines 0 comments Download
M chrome/browser/host_zoom_map.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/host_zoom_map.cc View 1 2 3 4 5 6 7 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/host_zoom_map_unittest.cc View 1 2 3 4 5 6 7 6 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/renderer_host/render_message_filter.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 7 4 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 1 2 3 4 5 6 7 1 chunk +9 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 6 7 3 chunks +18 lines, -4 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 3 4 5 6 7 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/examples/api/tabs/zoom/icon.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
A chrome/common/extensions/docs/examples/api/tabs/zoom/manifest.json View 1 2 3 4 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/examples/api/tabs/zoom/popup.html View 1 2 3 4 5 6 7 1 chunk +154 lines, -0 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/renderer/render_view.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -1 line 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -8 lines 0 comments Download
A chrome/test/data/extensions/api_test/tabs/zoom_getset/blank.html View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/tabs/zoom_getset/manifest.json View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/tabs/zoom_getset/test.html View 1 2 3 4 5 6 7 1 chunk +130 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
andersrb
This patch adds a simple zoom in/out extension API. Bug 30583.
10 years, 10 months ago (2010-02-09 00:20:32 UTC) #1
jv
can this be made part of Chome 6? On 2010/02/09 00:20:32, andersrb wrote: > This ...
10 years, 7 months ago (2010-05-20 20:00:55 UTC) #2
andersrb
Patch 5 gives extension_tabs_module.cc a dependency on webkit by including WebView.h and using the zoomFactorToZoomLevel ...
10 years, 2 months ago (2010-10-18 03:56:07 UTC) #3
Aaron Boodman
SetZoomLevel() calls the RenderView directly, while GetZoomLevel() talks to host_zoom_map.cc. If I'm reading the code ...
10 years, 2 months ago (2010-10-18 20:16:43 UTC) #4
andersrb
chrome.tabs.setZoomPercent(tabId, zoomPercent); chrome.tabs.getZoomPercent(tabId, function(newZoomPercent) { alert(newZoomPercent); });
10 years, 2 months ago (2010-10-19 02:39:28 UTC) #5
andersrb
Please ignore the previous message. It was a misfire. The example as you proposed it ...
10 years, 2 months ago (2010-10-19 02:44:31 UTC) #6
andersrb
This version of the patch attempts to solve the race condition in the previous patch ...
10 years, 1 month ago (2010-10-31 22:46:53 UTC) #7
Aaron Boodman
+pkasting erikkay, pkasting: can you take a look at this CL in your spare time ...
10 years, 1 month ago (2010-11-15 21:56:32 UTC) #8
Peter Kasting
While I did some of the original implementation, I don't have a good feel for ...
10 years, 1 month ago (2010-11-15 23:28:18 UTC) #9
Erik does not do reviews
From reading the bug, it sounds like andersb just wants to emulate current behavior but ...
10 years, 1 month ago (2010-11-16 00:09:45 UTC) #10
Peter Kasting
John, can you comment here regarding Aaron's question above?
10 years, 1 month ago (2010-11-16 00:36:21 UTC) #11
jv
On 2010/11/16 00:36:21, Peter Kasting wrote: > John, can you comment here regarding Aaron's question ...
10 years, 1 month ago (2010-11-16 01:02:52 UTC) #12
jam
I agree that percentages is better for extensions. This is what we had done for ...
10 years, 1 month ago (2010-11-17 00:59:11 UTC) #13
andersrb
Thanks for the feedback, Gentlemen. John, those are great suggestions and I will explore them. ...
10 years, 1 month ago (2010-11-21 20:48:13 UTC) #14
Aaron Boodman
I'm having trouble understanding why the current code has this weird round trip in it ...
10 years, 1 month ago (2010-11-22 00:42:53 UTC) #15
Aaron Boodman
(other than that, I think this is on the right track -- thanks for sticking ...
10 years, 1 month ago (2010-11-22 00:43:22 UTC) #16
andersrb
It's because the render process is responsible for deciding what the final zoom level is. ...
10 years, 1 month ago (2010-11-22 01:28:18 UTC) #17
andersrb
It's because the render process is responsible for deciding what the final zoom level is. ...
10 years, 1 month ago (2010-11-22 01:28:18 UTC) #18
Peter Kasting
On 2010/11/22 01:28:18, andersrb wrote: > It's because the render process is responsible for deciding ...
10 years, 1 month ago (2010-11-22 02:05:41 UTC) #19
Aaron Boodman
Ok, I think I understand all the issues now. How about this... since what is ...
10 years, 1 month ago (2010-11-22 02:11:30 UTC) #20
Aaron Boodman
On Sun, Nov 21, 2010 at 6:11 PM, <aa@chromium.org> wrote: > Ok, I think I ...
10 years, 1 month ago (2010-11-22 02:16:28 UTC) #21
andersrb
Thanks for the clarifications, Peter. Aaron, I like your suggestion, and will move in that ...
10 years, 1 month ago (2010-11-22 02:34:57 UTC) #22
andersrb
Patch 7 implements SetZoomPercent with an asynchronous callback as suggested by Aaron. This results in ...
10 years ago (2010-11-29 04:50:09 UTC) #23
andersrb
Unless somebody expresses further concerns, I believe this feature is complete with patch 8. It ...
9 years, 10 months ago (2011-02-07 01:35:39 UTC) #24
Aaron Boodman
omg, it's so beautiful. I only had a few comments, and in order to move ...
9 years, 10 months ago (2011-02-07 09:29:12 UTC) #25
andersrb
Yes. Looks good. On Mon, Feb 7, 2011 at 4:29 AM, <aa@chromium.org> wrote: > omg, ...
9 years, 10 months ago (2011-02-07 15:14:49 UTC) #26
Aaron Boodman
Haven't forgotten about this. Got sidetracked trying to add some features to the change. Will ...
9 years, 10 months ago (2011-02-15 02:03:57 UTC) #27
Peter Kasting
9 years, 8 months ago (2011-04-21 20:21:07 UTC) #28
On 2011/02/15 02:03:57, Aaron Boodman wrote:
> Will land it someday.

Aaron, what's the status of this patch?  It looks like the CL you mention a few
comments up was closed, but the associated bug is not marked Fixed and shows no
commit-bot additions.

Powered by Google App Engine
This is Rietveld 408576698