Chromium Code Reviews| 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 12ecfb7c3a900c9e4b9f1851f445873ab84821da..88257c1a4bcce7b434f426dfe9c86e5a045cb0b2 100644 |
| --- a/chrome/browser/extensions/api/tabs/tabs_event_router.h |
| +++ b/chrome/browser/extensions/api/tabs/tabs_event_router.h |
| @@ -13,6 +13,7 @@ |
| #include "chrome/browser/extensions/api/tabs/tabs_api.h" |
| #include "chrome/browser/ui/browser_list_observer.h" |
| #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" |
| +#include "chrome/browser/ui/zoom/zoom_observer.h" |
| #include "content/public/browser/notification_registrar.h" |
| #include "extensions/browser/event_router.h" |
| @@ -28,7 +29,8 @@ namespace extensions { |
| // extension processes in the same profile. |
| class TabsEventRouter : public TabStripModelObserver, |
| public chrome::BrowserListObserver, |
| - public content::NotificationObserver { |
| + public content::NotificationObserver, |
| + public ZoomObserver { |
| public: |
| explicit TabsEventRouter(Profile* profile); |
| virtual ~TabsEventRouter(); |
| @@ -70,6 +72,14 @@ class TabsEventRouter : public TabStripModelObserver, |
| virtual void Observe(int type, |
| const content::NotificationSource& source, |
| const content::NotificationDetails& details) OVERRIDE; |
| + |
| + // chrome::ZoomObserver. |
|
Devlin
2014/06/19 21:15:28
nit: just ZoomObserver, since it's not in the chro
wjmaclean
2014/06/20 22:01:32
Done.
|
| + virtual void OnZoomChangeInitiated( |
| + content::WebContents* web_contents, |
| + double old_zoom_level, |
| + double new_zoom_level, |
| + ZoomController::ZoomMode zoom_mode) OVERRIDE; |
| + |
| private: |
| // "Synthetic" event. Called from TabInsertedAt if new tab is detected. |
| void TabCreatedAt(content::WebContents* contents, int index, bool active); |