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

Unified Diff: chrome/browser/extensions/extension_toolstrip_api.h

Issue 274059: Small cleanup to extension function registration to avoid scattered definitions. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_toolstrip_api.h
diff --git a/chrome/browser/extensions/extension_toolstrip_api.h b/chrome/browser/extensions/extension_toolstrip_api.h
index a21e627ac08fa337c2c4ebb5bc98cd660766a58c..6f648bb9e14481f760a19f4530f67ee1fda21bcd 100644
--- a/chrome/browser/extensions/extension_toolstrip_api.h
+++ b/chrome/browser/extensions/extension_toolstrip_api.h
@@ -10,12 +10,6 @@
class Profile;
-// Function names.
-namespace extension_toolstrip_api_functions {
- extern const char kExpandFunction[];
- extern const char kCollapseFunction[];
-}; // namespace extension_toolstrip_api_functions
-
namespace extension_toolstrip_api_events {
extern const char kOnToolstripExpanded[];
extern const char kOnToolstripCollapsed[];
@@ -31,10 +25,12 @@ class ToolstripFunction : public SyncExtensionFunction {
class ToolstripExpandFunction : public ToolstripFunction {
virtual bool RunImpl();
+ DECLARE_EXTENSION_FUNCTION_NAME("toolstrip.expand")
};
class ToolstripCollapseFunction : public ToolstripFunction {
virtual bool RunImpl();
+ DECLARE_EXTENSION_FUNCTION_NAME("toolstrip.collapse")
};
class ToolstripEventRouter {

Powered by Google App Engine
This is Rietveld 408576698