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

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

Issue 11866012: Revert 176406 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_EVENT_ROUTER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_BROWSER_EVENT_ROUTER_H_
6 #define CHROME_BROWSER_EXTENSIONS_BROWSER_EVENT_ROUTER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_BROWSER_EVENT_ROUTER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 scoped_ptr<base::ListValue> event_args, 117 scoped_ptr<base::ListValue> event_args,
118 scoped_ptr<base::ListValue> cross_incognito_args); 118 scoped_ptr<base::ListValue> cross_incognito_args);
119 119
120 void DispatchSimpleBrowserEvent(Profile* profile, 120 void DispatchSimpleBrowserEvent(Profile* profile,
121 const int window_id, 121 const int window_id,
122 const char* event_name); 122 const char* event_name);
123 123
124 // Packages |changed_properties| as a tab updated event for the tab |contents| 124 // Packages |changed_properties| as a tab updated event for the tab |contents|
125 // and dispatches the event to the extension. 125 // and dispatches the event to the extension.
126 void DispatchTabUpdatedEvent(content::WebContents* contents, 126 void DispatchTabUpdatedEvent(content::WebContents* contents,
127 scoped_ptr<DictionaryValue> changed_properties); 127 DictionaryValue* changed_properties);
128 128
129 // Called to dispatch a deprecated style page action click event that was 129 // Called to dispatch a deprecated style page action click event that was
130 // registered like: 130 // registered like:
131 // chrome.pageActions["name"].addListener(function(actionId, info){}) 131 // chrome.pageActions["name"].addListener(function(actionId, info){})
132 void DispatchOldPageActionEvent(Profile* profile, 132 void DispatchOldPageActionEvent(Profile* profile,
133 const std::string& extension_id, 133 const std::string& extension_id,
134 const std::string& page_action_id, 134 const std::string& page_action_id,
135 int tab_id, 135 int tab_id,
136 const std::string& url, 136 const std::string& url,
137 int button); 137 int button);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 198
199 // The main profile that owns this event router. 199 // The main profile that owns this event router.
200 Profile* profile_; 200 Profile* profile_;
201 201
202 DISALLOW_COPY_AND_ASSIGN(BrowserEventRouter); 202 DISALLOW_COPY_AND_ASSIGN(BrowserEventRouter);
203 }; 203 };
204 204
205 } // namespace extensions 205 } // namespace extensions
206 206
207 #endif // CHROME_BROWSER_EXTENSIONS_BROWSER_EVENT_ROUTER_H_ 207 #endif // CHROME_BROWSER_EXTENSIONS_BROWSER_EVENT_ROUTER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/messaging/message_service.cc ('k') | chrome/browser/extensions/browser_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698