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

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

Issue 1216053013: [Extension Toolbar Redesign] Wants to act treatment, redux - left click (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 {
(...skipping 19 matching lines...) Expand all
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;
36 ui::MenuModel* GetContextMenu() override; 36 ui::MenuModel* GetContextMenu() override;
37 bool CanDrag() const override; 37 bool CanDrag() const override;
38 bool ExecuteAction(bool by_user) override; 38 bool ExecuteAction(bool by_user) override;
39 void UpdateState() override; 39 void UpdateState() override;
40 bool DisabledClickOpensMenu() const override;
40 41
41 private: 42 private:
42 // Returns a reference to the MediaRouterDialogController associated with 43 // Returns a reference to the MediaRouterDialogController associated with
43 // |delegate_|'s current WebContents. Guaranteed to be non-null. 44 // |delegate_|'s current WebContents. Guaranteed to be non-null.
44 // |delegate_| and its current WebContents must not be null. 45 // |delegate_| and its current WebContents must not be null.
45 media_router::MediaRouterDialogController* GetMediaRouterDialogController(); 46 media_router::MediaRouterDialogController* GetMediaRouterDialogController();
46 47
47 const std::string id_; 48 const std::string id_;
48 const base::string16 name_; 49 const base::string16 name_;
49 50
50 // Cached icons. 51 // Cached icons.
51 gfx::Image media_router_idle_icon_; 52 gfx::Image media_router_idle_icon_;
52 53
53 ToolbarActionViewDelegate* delegate_; 54 ToolbarActionViewDelegate* delegate_;
54 55
55 DISALLOW_COPY_AND_ASSIGN(MediaRouterAction); 56 DISALLOW_COPY_AND_ASSIGN(MediaRouterAction);
56 }; 57 };
57 58
58 #endif // CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_ACTION_H_ 59 #endif // CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_ACTION_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/extensions/extension_action_view_controller.cc ('k') | chrome/browser/ui/toolbar/media_router_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698