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

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

Issue 337035: Replace ExtensionAction with ExtensionAction2. (Closed)
Patch Set: Remove todo Created 11 years, 1 month 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_PAGE_ACTIONS_MODULE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PAGE_ACTIONS_MODULE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PAGE_ACTIONS_MODULE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PAGE_ACTIONS_MODULE_H_
7 7
8 #include "chrome/browser/extensions/extension_function.h" 8 #include "chrome/browser/extensions/extension_function.h"
9 9
10 class TabContents; 10 class TabContents;
11 class ExtensionAction2; 11 class ExtensionAction;
12 12
13 class PageActionFunction : public SyncExtensionFunction { 13 class PageActionFunction : public SyncExtensionFunction {
14 protected: 14 protected:
15 bool SetPageActionEnabled(bool enable); 15 bool SetPageActionEnabled(bool enable);
16 16
17 bool InitCommon(int tab_id); 17 bool InitCommon(int tab_id);
18 bool SetVisible(bool visible); 18 bool SetVisible(bool visible);
19 19
20 ExtensionAction2* page_action_; 20 ExtensionAction* page_action_;
21 TabContents* contents_; 21 TabContents* contents_;
22 }; 22 };
23 23
24 class EnablePageActionFunction : public PageActionFunction { 24 class EnablePageActionFunction : public PageActionFunction {
25 virtual bool RunImpl(); 25 virtual bool RunImpl();
26 DECLARE_EXTENSION_FUNCTION_NAME("pageActions.enableForTab") 26 DECLARE_EXTENSION_FUNCTION_NAME("pageActions.enableForTab")
27 }; 27 };
28 28
29 class DisablePageActionFunction : public PageActionFunction { 29 class DisablePageActionFunction : public PageActionFunction {
30 virtual bool RunImpl(); 30 virtual bool RunImpl();
(...skipping 29 matching lines...) Expand all
60 virtual bool RunImpl(); 60 virtual bool RunImpl();
61 DECLARE_EXTENSION_FUNCTION_NAME("pageAction.setBadgeTextColor") 61 DECLARE_EXTENSION_FUNCTION_NAME("pageAction.setBadgeTextColor")
62 }; 62 };
63 63
64 class PageActionSetBadgeTextFunction : public PageActionFunction { 64 class PageActionSetBadgeTextFunction : public PageActionFunction {
65 virtual bool RunImpl(); 65 virtual bool RunImpl();
66 DECLARE_EXTENSION_FUNCTION_NAME("pageAction.setBadgeText") 66 DECLARE_EXTENSION_FUNCTION_NAME("pageAction.setBadgeText")
67 }; 67 };
68 68
69 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PAGE_ACTIONS_MODULE_H_ 69 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PAGE_ACTIONS_MODULE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_file_util.cc ('k') | chrome/browser/extensions/extension_page_actions_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698