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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 virtual void TabInsertedAt(TabContents* contents, int index, bool foreground); | 61 virtual void TabInsertedAt(TabContents* contents, int index, bool foreground); |
62 virtual void TabClosingAt(TabContents* contents, int index); | 62 virtual void TabClosingAt(TabContents* contents, int index); |
63 virtual void TabDetachedAt(TabContents* contents, int index); | 63 virtual void TabDetachedAt(TabContents* contents, int index); |
64 virtual void TabSelectedAt(TabContents* old_contents, | 64 virtual void TabSelectedAt(TabContents* old_contents, |
65 TabContents* new_contents, | 65 TabContents* new_contents, |
66 int index, | 66 int index, |
67 bool user_gesture); | 67 bool user_gesture); |
68 virtual void TabMoved(TabContents* contents, int from_index, int to_index); | 68 virtual void TabMoved(TabContents* contents, int from_index, int to_index); |
69 virtual void TabChangedAt(TabContents* contents, int index, | 69 virtual void TabChangedAt(TabContents* contents, int index, |
70 TabChangeType change_type); | 70 TabChangeType change_type); |
71 virtual void TabReplacedAt(TabContents* old_contents, | |
72 TabContents* new_contents, int index); | |
73 virtual void TabStripEmpty(); | 71 virtual void TabStripEmpty(); |
74 | 72 |
75 // Page Action execute event. | 73 // Page Action execute event. |
76 void PageActionExecuted(Profile* profile, | 74 void PageActionExecuted(Profile* profile, |
77 const std::string& extension_id, | 75 const std::string& extension_id, |
78 const std::string& page_action_id, | 76 const std::string& page_action_id, |
79 int tab_id, | 77 int tab_id, |
80 const std::string& url, | 78 const std::string& url, |
81 int button); | 79 int button); |
82 // Browser Actions execute event. | 80 // Browser Actions execute event. |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 int focused_window_id_; | 161 int focused_window_id_; |
164 | 162 |
165 // The main profile (non-OTR) profile which will be used to send events not | 163 // The main profile (non-OTR) profile which will be used to send events not |
166 // associated with any browser. | 164 // associated with any browser. |
167 Profile* profile_; | 165 Profile* profile_; |
168 | 166 |
169 DISALLOW_COPY_AND_ASSIGN(ExtensionBrowserEventRouter); | 167 DISALLOW_COPY_AND_ASSIGN(ExtensionBrowserEventRouter); |
170 }; | 168 }; |
171 | 169 |
172 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ | 170 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ |
OLD | NEW |