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

Unified Diff: chrome/browser/extensions/api/tabs/tabs_event_router.h

Issue 225093019: Zoom Extension API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Using callbacks instead of zoom IDs. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/tabs/tabs_event_router.h
diff --git a/chrome/browser/extensions/api/tabs/tabs_event_router.h b/chrome/browser/extensions/api/tabs/tabs_event_router.h
index 461786a8a061da17e07149ff8e9b91d75d0800dc..e6c17d4dbe715cbb1bb8cff6a13b2e1fa7af642d 100644
--- a/chrome/browser/extensions/api/tabs/tabs_event_router.h
+++ b/chrome/browser/extensions/api/tabs/tabs_event_router.h
@@ -105,6 +105,12 @@ class TabsEventRouter : public TabStripModelObserver,
content::WebContents* contents,
scoped_ptr<base::DictionaryValue> changed_properties);
+ // Dispatches an |onZoomChange| event when the tab |contents| is zoomed.
+ void DispatchTabZoomChangeEvent(content::WebContents* contents,
+ double old_zoom_factor,
+ double new_zoom_factor,
+ base::DictionaryValue* zoom_settings);
+
// Register ourselves to receive the various notifications we are interested
// in for a browser.
void RegisterForBrowserNotifications(Browser* browser);

Powered by Google App Engine
This is Rietveld 408576698