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

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

Issue 6693054: Get rid of extensions dependency from content\browser. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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) 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 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/extensions/extension_function.h" 9 #include "chrome/browser/extensions/extension_function.h"
10 10
11 class TabContents; 11 class TabContentsWrapper;
12 class ExtensionAction; 12 class ExtensionAction;
13 13
14 // Base class for page action APIs. 14 // Base class for page action APIs.
15 class PageActionFunction : public SyncExtensionFunction { 15 class PageActionFunction : public SyncExtensionFunction {
16 protected: 16 protected:
17 virtual ~PageActionFunction() {} 17 virtual ~PageActionFunction() {}
18 bool SetPageActionEnabled(bool enable); 18 bool SetPageActionEnabled(bool enable);
19 19
20 bool InitCommon(int tab_id); 20 bool InitCommon(int tab_id);
21 bool SetVisible(bool visible); 21 bool SetVisible(bool visible);
22 22
23 ExtensionAction* page_action_; 23 ExtensionAction* page_action_;
24 TabContents* contents_; 24 TabContentsWrapper* contents_;
25 }; 25 };
26 26
27 // Implement chrome.pageActions.enableForTab(). 27 // Implement chrome.pageActions.enableForTab().
28 class EnablePageActionFunction : public PageActionFunction { 28 class EnablePageActionFunction : public PageActionFunction {
29 ~EnablePageActionFunction() {} 29 ~EnablePageActionFunction() {}
30 virtual bool RunImpl(); 30 virtual bool RunImpl();
31 DECLARE_EXTENSION_FUNCTION_NAME("pageActions.enableForTab") 31 DECLARE_EXTENSION_FUNCTION_NAME("pageActions.enableForTab")
32 }; 32 };
33 33
34 // Implement chrome.pageActions.disableForTab(). 34 // Implement chrome.pageActions.disableForTab().
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 }; 88 };
89 89
90 // Implement chrome.pageActions.setBadgeText(). 90 // Implement chrome.pageActions.setBadgeText().
91 class PageActionSetBadgeTextFunction : public PageActionFunction { 91 class PageActionSetBadgeTextFunction : public PageActionFunction {
92 ~PageActionSetBadgeTextFunction() {} 92 ~PageActionSetBadgeTextFunction() {}
93 virtual bool RunImpl(); 93 virtual bool RunImpl();
94 DECLARE_EXTENSION_FUNCTION_NAME("pageAction.setBadgeText") 94 DECLARE_EXTENSION_FUNCTION_NAME("pageAction.setBadgeText")
95 }; 95 };
96 96
97 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PAGE_ACTIONS_MODULE_H_ 97 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PAGE_ACTIONS_MODULE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_host.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