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

Side by Side Diff: extensions/browser/notification_types.h

Issue 475813004: Clean up NOTIFICATION_EXTENSION_PAGE_ACTION_[ COUNT | VISIBILITY ]_CHANGED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac Compile Fix Created 6 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_BROWSER_NOTIFICATION_TYPES_H_ 5 #ifndef EXTENSIONS_BROWSER_NOTIFICATION_TYPES_H_
6 #define EXTENSIONS_BROWSER_NOTIFICATION_TYPES_H_ 6 #define EXTENSIONS_BROWSER_NOTIFICATION_TYPES_H_
7 7
8 #include "content/public/browser/notification_types.h" 8 #include "content/public/browser/notification_types.h"
9 9
10 namespace extensions { 10 namespace extensions {
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 NOTIFICATION_EXTENSION_PROCESS_TERMINATED, 114 NOTIFICATION_EXTENSION_PROCESS_TERMINATED,
115 115
116 // Sent when a background page is ready so other components can load. 116 // Sent when a background page is ready so other components can load.
117 NOTIFICATION_EXTENSION_BACKGROUND_PAGE_READY, 117 NOTIFICATION_EXTENSION_BACKGROUND_PAGE_READY,
118 118
119 // Sent when a browser action's state has changed. The source is the 119 // Sent when a browser action's state has changed. The source is the
120 // ExtensionAction* that changed. The details are the BrowserContext* that the 120 // ExtensionAction* that changed. The details are the BrowserContext* that the
121 // browser action belongs to. 121 // browser action belongs to.
122 NOTIFICATION_EXTENSION_BROWSER_ACTION_UPDATED, 122 NOTIFICATION_EXTENSION_BROWSER_ACTION_UPDATED,
123 123
124 // Sent when the count of page actions has changed. Note that some of them
125 // may not apply to the current page. The source is a LocationBar*. There
126 // are no details.
127 NOTIFICATION_EXTENSION_PAGE_ACTION_COUNT_CHANGED,
128
129 // Sent when a browser action's visibility has changed. The source is the 124 // Sent when a browser action's visibility has changed. The source is the
130 // ExtensionPrefs* that changed, and the details are a std::string with the 125 // ExtensionPrefs* that changed, and the details are a std::string with the
131 // extension's ID. 126 // extension's ID.
132 NOTIFICATION_EXTENSION_BROWSER_ACTION_VISIBILITY_CHANGED, 127 NOTIFICATION_EXTENSION_BROWSER_ACTION_VISIBILITY_CHANGED,
133 128
134 // Sent when a page action's visibility has changed. The source is the 129 // Sent when the page actions have been updated. The source is a WebContents*,
135 // ExtensionAction* that changed. The details are a WebContents*. 130 // and there are no details.
136 NOTIFICATION_EXTENSION_PAGE_ACTION_VISIBILITY_CHANGED, 131 NOTIFICATION_EXTENSION_PAGE_ACTIONS_UPDATED,
137 132
138 // Sent when a system indicator action's state has changed. The source is the 133 // Sent when a system indicator action's state has changed. The source is the
139 // BrowserContext* that the browser action belongs to. The details are the 134 // BrowserContext* that the browser action belongs to. The details are the
140 // ExtensionAction* that changed. 135 // ExtensionAction* that changed.
141 NOTIFICATION_EXTENSION_SYSTEM_INDICATOR_UPDATED, 136 NOTIFICATION_EXTENSION_SYSTEM_INDICATOR_UPDATED,
142 137
143 // Sent when an extension command has been removed. The source is the 138 // Sent when an extension command has been removed. The source is the
144 // BrowserContext* and the details is a std::pair of two std::string objects 139 // BrowserContext* and the details is a std::pair of two std::string objects
145 // (an extension ID and the name of the command being removed). 140 // (an extension ID and the name of the command being removed).
146 NOTIFICATION_EXTENSION_COMMAND_REMOVED, 141 NOTIFICATION_EXTENSION_COMMAND_REMOVED,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 212
218 // Sent when there are new user scripts available. The details are a 213 // Sent when there are new user scripts available. The details are a
219 // pointer to SharedMemory containing the new scripts. 214 // pointer to SharedMemory containing the new scripts.
220 NOTIFICATION_USER_SCRIPTS_UPDATED, 215 NOTIFICATION_USER_SCRIPTS_UPDATED,
221 NOTIFICATION_EXTENSIONS_END 216 NOTIFICATION_EXTENSIONS_END
222 }; 217 };
223 218
224 } // namespace extensions 219 } // namespace extensions
225 220
226 #endif // EXTENSIONS_BROWSER_NOTIFICATION_TYPES_H_ 221 #endif // EXTENSIONS_BROWSER_NOTIFICATION_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698