| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_EVENT_ROUTER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_EVENT_ROUTER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_EVENT_ROUTER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_EVENT_ROUTER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 int to_index) OVERRIDE; | 58 int to_index) OVERRIDE; |
| 59 virtual void TabChangedAt(content::WebContents* contents, | 59 virtual void TabChangedAt(content::WebContents* contents, |
| 60 int index, | 60 int index, |
| 61 TabChangeType change_type) OVERRIDE; | 61 TabChangeType change_type) OVERRIDE; |
| 62 virtual void TabReplacedAt(TabStripModel* tab_strip_model, | 62 virtual void TabReplacedAt(TabStripModel* tab_strip_model, |
| 63 content::WebContents* old_contents, | 63 content::WebContents* old_contents, |
| 64 content::WebContents* new_contents, | 64 content::WebContents* new_contents, |
| 65 int index) OVERRIDE; | 65 int index) OVERRIDE; |
| 66 virtual void TabPinnedStateChanged(content::WebContents* contents, | 66 virtual void TabPinnedStateChanged(content::WebContents* contents, |
| 67 int index) OVERRIDE; | 67 int index) OVERRIDE; |
| 68 virtual void TabZoomChange(content::WebContents* contents, |
| 69 double old_zoom_level, |
| 70 double new_zoom_level, |
| 71 content::ZoomMode zoom_mode) OVERRIDE; |
| 68 | 72 |
| 69 // content::NotificationObserver. | 73 // content::NotificationObserver. |
| 70 virtual void Observe(int type, | 74 virtual void Observe(int type, |
| 71 const content::NotificationSource& source, | 75 const content::NotificationSource& source, |
| 72 const content::NotificationDetails& details) OVERRIDE; | 76 const content::NotificationDetails& details) OVERRIDE; |
| 73 private: | 77 private: |
| 74 // "Synthetic" event. Called from TabInsertedAt if new tab is detected. | 78 // "Synthetic" event. Called from TabInsertedAt if new tab is detected. |
| 75 void TabCreatedAt(content::WebContents* contents, int index, bool active); | 79 void TabCreatedAt(content::WebContents* contents, int index, bool active); |
| 76 | 80 |
| 77 // Internal processing of tab updated events. Is called by both TabChangedAt | 81 // Internal processing of tab updated events. Is called by both TabChangedAt |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 | 166 |
| 163 // The main profile that owns this event router. | 167 // The main profile that owns this event router. |
| 164 Profile* profile_; | 168 Profile* profile_; |
| 165 | 169 |
| 166 DISALLOW_COPY_AND_ASSIGN(TabsEventRouter); | 170 DISALLOW_COPY_AND_ASSIGN(TabsEventRouter); |
| 167 }; | 171 }; |
| 168 | 172 |
| 169 } // namespace extensions | 173 } // namespace extensions |
| 170 | 174 |
| 171 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_EVENT_ROUTER_H_ | 175 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_EVENT_ROUTER_H_ |
| OLD | NEW |