OLD | NEW |
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" |
11 | 11 |
12 class Browser; | 12 class Browser; |
13 class ToolbarActionsModel; | |
14 | 13 |
15 namespace extensions { | 14 namespace extensions { |
16 class ComponentMigrationHelper; | 15 class ComponentMigrationHelper; |
17 } // namespace extensions | 16 } // namespace extensions |
18 | 17 |
19 // The class for the contextual menu for the Media Router action. | 18 // The class for the contextual menu for the Media Router action. |
20 class MediaRouterContextualMenu : public ui::SimpleMenuModel::Delegate { | 19 class MediaRouterContextualMenu : public ui::SimpleMenuModel::Delegate { |
21 public: | 20 public: |
22 explicit MediaRouterContextualMenu(Browser* browser); | 21 explicit MediaRouterContextualMenu(Browser* browser); |
23 ~MediaRouterContextualMenu() override; | 22 ~MediaRouterContextualMenu() override; |
(...skipping 19 matching lines...) Expand all Loading... |
43 void ReportIssue(); | 42 void ReportIssue(); |
44 | 43 |
45 Browser* const browser_; | 44 Browser* const browser_; |
46 ui::SimpleMenuModel menu_model_; | 45 ui::SimpleMenuModel menu_model_; |
47 extensions::ComponentMigrationHelper* const component_migration_helper_; | 46 extensions::ComponentMigrationHelper* const component_migration_helper_; |
48 | 47 |
49 DISALLOW_COPY_AND_ASSIGN(MediaRouterContextualMenu); | 48 DISALLOW_COPY_AND_ASSIGN(MediaRouterContextualMenu); |
50 }; | 49 }; |
51 | 50 |
52 #endif // CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_CONTEXTUAL_MENU_H_ | 51 #endif // CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_CONTEXTUAL_MENU_H_ |
OLD | NEW |