OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 int index); | 66 int index); |
67 virtual void TabDetachedAt(TabContentsWrapper* contents, int index); | 67 virtual void TabDetachedAt(TabContentsWrapper* contents, int index); |
68 virtual void TabSelectedAt(TabContentsWrapper* old_contents, | 68 virtual void TabSelectedAt(TabContentsWrapper* old_contents, |
69 TabContentsWrapper* new_contents, | 69 TabContentsWrapper* new_contents, |
70 int index, | 70 int index, |
71 bool user_gesture); | 71 bool user_gesture); |
72 virtual void TabMoved(TabContentsWrapper* contents, int from_index, | 72 virtual void TabMoved(TabContentsWrapper* contents, int from_index, |
73 int to_index); | 73 int to_index); |
74 virtual void TabChangedAt(TabContentsWrapper* contents, int index, | 74 virtual void TabChangedAt(TabContentsWrapper* contents, int index, |
75 TabChangeType change_type); | 75 TabChangeType change_type); |
76 virtual void TabReplacedAt(TabContentsWrapper* old_contents, | 76 virtual void TabReplacedAt(TabStripModel* tab_strip_model, |
| 77 TabContentsWrapper* old_contents, |
77 TabContentsWrapper* new_contents, | 78 TabContentsWrapper* new_contents, |
78 int index); | 79 int index); |
79 virtual void TabPinnedStateChanged(TabContentsWrapper* contents, int index); | 80 virtual void TabPinnedStateChanged(TabContentsWrapper* contents, int index); |
80 virtual void TabStripEmpty(); | 81 virtual void TabStripEmpty(); |
81 | 82 |
82 // Page Action execute event. | 83 // Page Action execute event. |
83 void PageActionExecuted(Profile* profile, | 84 void PageActionExecuted(Profile* profile, |
84 const std::string& extension_id, | 85 const std::string& extension_id, |
85 const std::string& page_action_id, | 86 const std::string& page_action_id, |
86 int tab_id, | 87 int tab_id, |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 int focused_window_id_; | 184 int focused_window_id_; |
184 | 185 |
185 // The main profile (non-OTR) profile which will be used to send events not | 186 // The main profile (non-OTR) profile which will be used to send events not |
186 // associated with any browser. | 187 // associated with any browser. |
187 Profile* profile_; | 188 Profile* profile_; |
188 | 189 |
189 DISALLOW_COPY_AND_ASSIGN(ExtensionBrowserEventRouter); | 190 DISALLOW_COPY_AND_ASSIGN(ExtensionBrowserEventRouter); |
190 }; | 191 }; |
191 | 192 |
192 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ | 193 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ |
OLD | NEW |