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

Side by Side Diff: chrome/browser/ui/toolbar/media_router_action.h

Issue 1214243003: [Extensions UI] Clean up extension icon generation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/skia/ImageSkia Created 5 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_UI_TOOLBAR_MEDIA_ROUTER_ACTION_H_ 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_ACTION_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_ACTION_H_ 6 #define CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_ACTION_H_
7 7
8 #include "chrome/browser/ui/toolbar/toolbar_action_view_controller.h" 8 #include "chrome/browser/ui/toolbar/toolbar_action_view_controller.h"
9 9
10 namespace media_router { 10 namespace media_router {
11 class MediaRouterDialogController; 11 class MediaRouterDialogController;
12 } // namespace media_router 12 } // namespace media_router
13 13
14 // The class for the Media Router component action that will be shown in 14 // The class for the Media Router component action that will be shown in
15 // the toolbar. 15 // the toolbar.
16 class MediaRouterAction : public ToolbarActionViewController { 16 class MediaRouterAction : public ToolbarActionViewController {
17 public: 17 public:
18 MediaRouterAction(); 18 MediaRouterAction();
19 ~MediaRouterAction() override; 19 ~MediaRouterAction() override;
20 20
21 // ToolbarActionViewController implementation. 21 // ToolbarActionViewController implementation.
22 const std::string& GetId() const override; 22 const std::string& GetId() const override;
23 void SetDelegate(ToolbarActionViewDelegate* delegate) override; 23 void SetDelegate(ToolbarActionViewDelegate* delegate) override;
24 gfx::Image GetIcon(content::WebContents* web_contents) override; 24 gfx::Image GetIcon(content::WebContents* web_contents,
25 gfx::ImageSkia GetIconWithBadge() override; 25 const gfx::Size& size) override;
26 base::string16 GetActionName() const override; 26 base::string16 GetActionName() const override;
27 base::string16 GetAccessibleName(content::WebContents* web_contents) 27 base::string16 GetAccessibleName(content::WebContents* web_contents)
28 const override; 28 const override;
29 base::string16 GetTooltip(content::WebContents* web_contents) 29 base::string16 GetTooltip(content::WebContents* web_contents)
30 const override; 30 const override;
31 bool IsEnabled(content::WebContents* web_contents) const override; 31 bool IsEnabled(content::WebContents* web_contents) const override;
32 bool WantsToRun(content::WebContents* web_contents) const override; 32 bool WantsToRun(content::WebContents* web_contents) const override;
33 bool HasPopup(content::WebContents* web_contents) const override; 33 bool HasPopup(content::WebContents* web_contents) const override;
34 void HidePopup() override; 34 void HidePopup() override;
35 gfx::NativeView GetPopupNativeView() override; 35 gfx::NativeView GetPopupNativeView() override;
(...skipping 13 matching lines...) Expand all
49 49
50 // Cached icons. 50 // Cached icons.
51 gfx::Image media_router_idle_icon_; 51 gfx::Image media_router_idle_icon_;
52 52
53 ToolbarActionViewDelegate* delegate_; 53 ToolbarActionViewDelegate* delegate_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(MediaRouterAction); 55 DISALLOW_COPY_AND_ASSIGN(MediaRouterAction);
56 }; 56 };
57 57
58 #endif // CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_ACTION_H_ 58 #endif // CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_ACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698