ExtensionSyncService: listen for relevant changes instead of being explicitly called...
[chromium-blink-merge.git] / chrome / browser / ui / toolbar / media_router_contextual_menu.h
bloba7b4a8ab75aa94fb6629d34bb8389b87c25fd63a
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_CONTEXTUAL_MENU_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_CONTEXTUAL_MENU_H_
8 #include "base/strings/utf_string_conversions.h"
9 #include "ui/base/models/simple_menu_model.h"
11 class Browser;
13 // The class for the contextual menu for the Media Router action.
14 class MediaRouterContextualMenu : public ui::SimpleMenuModel::Delegate {
15 public:
16 explicit MediaRouterContextualMenu(Browser* browser);
17 ~MediaRouterContextualMenu() override;
19 ui::MenuModel* menu_model() { return &menu_model_; }
21 private:
22 // ui::SimpleMenuModel::Delegate:
23 bool IsCommandIdChecked(int command_id) const override;
24 bool IsCommandIdEnabled(int command_id) const override;
25 bool GetAcceleratorForCommandId(int command_id,
26 ui::Accelerator* accelerator) override;
27 base::string16 GetLabelForCommandId(int command_id) const override;
28 void ExecuteCommand(int command_id, int event_flags) override;
30 void ReportIssue();
32 Browser* browser_;
33 ui::SimpleMenuModel menu_model_;
35 DISALLOW_COPY_AND_ASSIGN(MediaRouterContextualMenu);
38 #endif // CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_CONTEXTUAL_MENU_H_