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

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

Issue 10535077: TabContentsWrapper -> TabContents, part 12. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 6 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_PAGE_ACTION_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_PAGE_ACTION_CONTROLLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_PAGE_ACTION_CONTROLLER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_PAGE_ACTION_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 11
12 #include "base/observer_list.h" 12 #include "base/observer_list.h"
13 #include "chrome/browser/extensions/location_bar_controller.h" 13 #include "chrome/browser/extensions/location_bar_controller.h"
14 14
15 class ExtensionService; 15 class ExtensionService;
16 class TabContents; 16 class TabContents;
17 typedef TabContents TabContentsWrapper;
18 17
19 namespace extensions { 18 namespace extensions {
20 19
21 // A LocationBarController which populates the location bar with icons based 20 // A LocationBarController which populates the location bar with icons based
22 // on the page_action extension API. 21 // on the page_action extension API.
23 class PageActionController : public LocationBarController { 22 class PageActionController : public LocationBarController {
24 public: 23 public:
25 explicit PageActionController(TabContentsWrapper* tab_contents); 24 explicit PageActionController(TabContents* tab_contents);
26 virtual ~PageActionController(); 25 virtual ~PageActionController();
27 26
28 // LocationBarController implementation. 27 // LocationBarController implementation.
29 virtual scoped_ptr<std::vector<ExtensionAction*> > GetCurrentActions() 28 virtual scoped_ptr<std::vector<ExtensionAction*> > GetCurrentActions()
30 OVERRIDE; 29 OVERRIDE;
31 virtual Action OnClicked(const std::string& extension_id, 30 virtual Action OnClicked(const std::string& extension_id,
32 int mouse_button) OVERRIDE; 31 int mouse_button) OVERRIDE;
33 32
34 private: 33 private:
35 // Gets the ExtensionService for |tab_contents_|. 34 // Gets the ExtensionService for |tab_contents_|.
36 ExtensionService* GetExtensionService(); 35 ExtensionService* GetExtensionService();
37 36
38 TabContentsWrapper* tab_contents_; 37 TabContents* tab_contents_;
39 38
40 DISALLOW_COPY_AND_ASSIGN(PageActionController); 39 DISALLOW_COPY_AND_ASSIGN(PageActionController);
41 }; 40 };
42 41
43 } // namespace extensions 42 } // namespace extensions
44 43
45 #endif // CHROME_BROWSER_EXTENSIONS_PAGE_ACTION_CONTROLLER_H_ 44 #endif // CHROME_BROWSER_EXTENSIONS_PAGE_ACTION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/lazy_background_task_queue.cc ('k') | chrome/browser/extensions/page_action_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698