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"
13 // The class for the contextual menu for the Media Router action.
14 class MediaRouterContextualMenu
: public ui::SimpleMenuModel::Delegate
{
16 explicit MediaRouterContextualMenu(Browser
* browser
);
17 ~MediaRouterContextualMenu() override
;
19 ui::MenuModel
* menu_model() { return &menu_model_
; }
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
;
33 ui::SimpleMenuModel menu_model_
;
35 DISALLOW_COPY_AND_ASSIGN(MediaRouterContextualMenu
);
38 #endif // CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_CONTEXTUAL_MENU_H_