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

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

Issue 1612203002: [Media Router] Adds a contextual menu item to remove the MR component action. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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_CONTEXTUAL_MENU_H_ 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_CONTEXTUAL_MENU_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_CONTEXTUAL_MENU_H_ 6 #define CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_CONTEXTUAL_MENU_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "ui/base/models/simple_menu_model.h" 10 #include "ui/base/models/simple_menu_model.h"
(...skipping 11 matching lines...) Expand all
22 private: 22 private:
23 // ui::SimpleMenuModel::Delegate: 23 // ui::SimpleMenuModel::Delegate:
24 bool IsCommandIdChecked(int command_id) const override; 24 bool IsCommandIdChecked(int command_id) const override;
25 bool IsCommandIdEnabled(int command_id) const override; 25 bool IsCommandIdEnabled(int command_id) const override;
26 bool GetAcceleratorForCommandId(int command_id, 26 bool GetAcceleratorForCommandId(int command_id,
27 ui::Accelerator* accelerator) override; 27 ui::Accelerator* accelerator) override;
28 base::string16 GetLabelForCommandId(int command_id) const override; 28 base::string16 GetLabelForCommandId(int command_id) const override;
29 void ExecuteCommand(int command_id, int event_flags) override; 29 void ExecuteCommand(int command_id, int event_flags) override;
30 30
31 void ReportIssue(); 31 void ReportIssue();
32 void RemoveMediaRouterComponentAction();
32 33
33 Browser* browser_; 34 Browser* browser_;
34 ui::SimpleMenuModel menu_model_; 35 ui::SimpleMenuModel menu_model_;
35 36
36 DISALLOW_COPY_AND_ASSIGN(MediaRouterContextualMenu); 37 DISALLOW_COPY_AND_ASSIGN(MediaRouterContextualMenu);
37 }; 38 };
38 39
39 #endif // CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_CONTEXTUAL_MENU_H_ 40 #endif // CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_CONTEXTUAL_MENU_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698