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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 bool pinned_state_changed); |
48 void TabChangedAt(TabContents* contents, int index, bool loading_only); | 48 void TabChangedAt(TabContents* contents, int index, bool loading_only); |
49 void TabStripEmpty(); | 49 void TabStripEmpty(); |
50 | 50 |
51 // PageActions. | 51 // PageActions. |
52 void PageActionExecuted(Profile* profile, | 52 void PageActionExecuted(Profile* profile, |
| 53 std::string extension_id, |
53 std::string page_action_id, | 54 std::string page_action_id, |
54 int tab_id, | 55 int tab_id, |
55 std::string url); | 56 std::string url); |
56 | 57 |
57 // NotificationObserver. | 58 // NotificationObserver. |
58 void Observe(NotificationType type, | 59 void Observe(NotificationType type, |
59 const NotificationSource& source, | 60 const NotificationSource& source, |
60 const NotificationDetails& details); | 61 const NotificationDetails& details); |
61 private: | 62 private: |
62 // "Synthetic" event. Called from TabInsertedAt if new tab is detected. | 63 // "Synthetic" event. Called from TabInsertedAt if new tab is detected. |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 117 |
117 GURL url_; | 118 GURL url_; |
118 }; | 119 }; |
119 | 120 |
120 std::map<int, TabEntry> tab_entries_; | 121 std::map<int, TabEntry> tab_entries_; |
121 | 122 |
122 DISALLOW_COPY_AND_ASSIGN(ExtensionBrowserEventRouter); | 123 DISALLOW_COPY_AND_ASSIGN(ExtensionBrowserEventRouter); |
123 }; | 124 }; |
124 | 125 |
125 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ | 126 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ |
OLD | NEW |