| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_EXTENSION_BROWSER_EVENT_ROUTER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 virtual void OnBrowserSetLastActive(const Browser* browser); | 36 virtual void OnBrowserSetLastActive(const Browser* browser); |
| 37 | 37 |
| 38 // TabStripModelObserver | 38 // TabStripModelObserver |
| 39 void TabInsertedAt(TabContents* contents, int index, bool foreground); | 39 void TabInsertedAt(TabContents* contents, int index, bool foreground); |
| 40 void TabClosingAt(TabContents* contents, int index); | 40 void TabClosingAt(TabContents* contents, int index); |
| 41 void TabDetachedAt(TabContents* contents, int index); | 41 void TabDetachedAt(TabContents* contents, int index); |
| 42 void TabSelectedAt(TabContents* old_contents, | 42 void TabSelectedAt(TabContents* old_contents, |
| 43 TabContents* new_contents, | 43 TabContents* new_contents, |
| 44 int index, | 44 int index, |
| 45 bool user_gesture); | 45 bool user_gesture); |
| 46 void TabMoved(TabContents* contents, int from_index, int to_index); | 46 void TabMoved(TabContents* contents, int from_index, int to_index, |
| 47 bool pinned_state_changed); |
| 47 void TabChangedAt(TabContents* contents, int index, bool loading_only); | 48 void TabChangedAt(TabContents* contents, int index, bool loading_only); |
| 48 void TabStripEmpty(); | 49 void TabStripEmpty(); |
| 49 | 50 |
| 50 // PageActions. | 51 // PageActions. |
| 51 void PageActionExecuted(Profile* profile, | 52 void PageActionExecuted(Profile* profile, |
| 52 std::string page_action_id, | 53 std::string page_action_id, |
| 53 int tab_id, | 54 int tab_id, |
| 54 std::string url); | 55 std::string url); |
| 55 | 56 |
| 56 // NotificationObserver. | 57 // NotificationObserver. |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 116 |
| 116 GURL url_; | 117 GURL url_; |
| 117 }; | 118 }; |
| 118 | 119 |
| 119 std::map<int, TabEntry> tab_entries_; | 120 std::map<int, TabEntry> tab_entries_; |
| 120 | 121 |
| 121 DISALLOW_COPY_AND_ASSIGN(ExtensionBrowserEventRouter); | 122 DISALLOW_COPY_AND_ASSIGN(ExtensionBrowserEventRouter); |
| 122 }; | 123 }; |
| 123 | 124 |
| 124 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ | 125 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ |
| OLD | NEW |