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

Side by Side Diff: chrome/browser/extensions/api/extension_action/extension_browser_actions_api.h

Issue 10789026: Add browserAction.enable/disable as alias for pageAction.show/hide. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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_API_EXTENSION_ACTION_EXTENSION_BROWSER_ACTIONS _API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_EXTENSION_ACTION_EXTENSION_BROWSER_ACTIONS _API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_EXTENSION_ACTION_EXTENSION_BROWSER_ACTIONS _API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_EXTENSION_ACTION_EXTENSION_BROWSER_ACTIONS _API_H_
7 7
8 #include "chrome/browser/extensions/api/extension_action/extension_actions_api.h " 8 #include "chrome/browser/extensions/api/extension_action/extension_actions_api.h "
9 #include "chrome/browser/extensions/extension_function.h" 9 #include "chrome/browser/extensions/extension_function.h"
10 #include "chrome/common/extensions/extension_action.h" 10 #include "chrome/common/extensions/extension_action.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 class BrowserActionGetBadgeBackgroundColorFunction 83 class BrowserActionGetBadgeBackgroundColorFunction
84 : public ExtensionActionGetBadgeBackgroundColorFunction { 84 : public ExtensionActionGetBadgeBackgroundColorFunction {
85 public: 85 public:
86 DECLARE_EXTENSION_FUNCTION_NAME("browserAction.getBadgeBackgroundColor") 86 DECLARE_EXTENSION_FUNCTION_NAME("browserAction.getBadgeBackgroundColor")
87 87
88 protected: 88 protected:
89 virtual ~BrowserActionGetBadgeBackgroundColorFunction() {} 89 virtual ~BrowserActionGetBadgeBackgroundColorFunction() {}
90 }; 90 };
91 91
92 class BrowserActionEnableFunction : public ExtensionActionShowFunction {
93 public:
94 DECLARE_EXTENSION_FUNCTION_NAME("browserAction.enable")
95
96 protected:
97 virtual ~BrowserActionEnableFunction() {}
98 };
99
100 class BrowserActionDisableFunction : public ExtensionActionHideFunction {
101 public:
102 DECLARE_EXTENSION_FUNCTION_NAME("browserAction.disable")
103
104 protected:
105 virtual ~BrowserActionDisableFunction() {}
106 };
107
92 #endif // CHROME_BROWSER_EXTENSIONS_API_EXTENSION_ACTION_EXTENSION_BROWSER_ACTI ONS_API_H_ 108 #endif // CHROME_BROWSER_EXTENSIONS_API_EXTENSION_ACTION_EXTENSION_BROWSER_ACTI ONS_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698