Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: chrome/browser/extensions/extension_browser_event_router.h

Issue 264046: Update browser actions api to be like new design doc. (Closed)
Patch Set: rebase Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // Page Action execute event. 55 // Page Action execute event.
56 void PageActionExecuted(Profile* profile, 56 void PageActionExecuted(Profile* profile,
57 const std::string& extension_id, 57 const std::string& extension_id,
58 const std::string& page_action_id, 58 const std::string& page_action_id,
59 int tab_id, 59 int tab_id,
60 const std::string& url, 60 const std::string& url,
61 int button); 61 int button);
62 // Browser Actions execute event. 62 // Browser Actions execute event.
63 void BrowserActionExecuted(Profile* profile, 63 void BrowserActionExecuted(Profile* profile,
64 const std::string& extension_id, 64 const std::string& extension_id,
65 int window_id); 65 Browser* browser);
66 66
67 // NotificationObserver. 67 // NotificationObserver.
68 void Observe(NotificationType type, 68 void Observe(NotificationType type,
69 const NotificationSource& source, 69 const NotificationSource& source,
70 const NotificationDetails& details); 70 const NotificationDetails& details);
71 private: 71 private:
72 // "Synthetic" event. Called from TabInsertedAt if new tab is detected. 72 // "Synthetic" event. Called from TabInsertedAt if new tab is detected.
73 void TabCreatedAt(TabContents* contents, int index, bool foreground); 73 void TabCreatedAt(TabContents* contents, int index, bool foreground);
74 74
75 // Internal processing of tab updated events. Is called by both TabChangedAt 75 // Internal processing of tab updated events. Is called by both TabChangedAt
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 GURL url_; 127 GURL url_;
128 }; 128 };
129 129
130 std::map<int, TabEntry> tab_entries_; 130 std::map<int, TabEntry> tab_entries_;
131 131
132 DISALLOW_COPY_AND_ASSIGN(ExtensionBrowserEventRouter); 132 DISALLOW_COPY_AND_ASSIGN(ExtensionBrowserEventRouter);
133 }; 133 };
134 134
135 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ 135 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698