OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTENSIONS_EXTENSION_CONTEXT_MENU_MODEL_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTEXT_MENU_MODEL_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTEXT_MENU_MODEL_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTEXT_MENU_MODEL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "ui/base/models/simple_menu_model.h" | 12 #include "ui/base/models/simple_menu_model.h" |
13 | 13 |
14 class Browser; | 14 class Browser; |
15 class ExtensionAction; | 15 class ExtensionAction; |
16 class Profile; | 16 class Profile; |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 class WebContents; | 19 class WebContents; |
20 } | 20 } |
21 | 21 |
22 namespace extensions { | 22 namespace extensions { |
23 class Extension; | 23 class Extension; |
24 class ContextMenuMatcher; | 24 class ContextMenuMatcher; |
25 class ExtensionContextMenuModelTest; | |
26 | 25 |
27 // The context menu model for extension icons. | 26 // The context menu model for extension icons. |
28 class ExtensionContextMenuModel : public ui::SimpleMenuModel, | 27 class ExtensionContextMenuModel : public ui::SimpleMenuModel, |
29 public ui::SimpleMenuModel::Delegate { | 28 public ui::SimpleMenuModel::Delegate { |
30 public: | 29 public: |
31 enum MenuEntries { | 30 enum MenuEntries { |
32 NAME = 0, | 31 NAME = 0, |
33 CONFIGURE, | 32 CONFIGURE, |
34 TOGGLE_VISIBILITY, | 33 TOGGLE_VISIBILITY, |
35 UNINSTALL, | 34 UNINSTALL, |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 std::unique_ptr<ContextMenuMatcher> extension_items_; | 133 std::unique_ptr<ContextMenuMatcher> extension_items_; |
135 | 134 |
136 std::unique_ptr<ui::SimpleMenuModel> page_access_submenu_; | 135 std::unique_ptr<ui::SimpleMenuModel> page_access_submenu_; |
137 | 136 |
138 DISALLOW_COPY_AND_ASSIGN(ExtensionContextMenuModel); | 137 DISALLOW_COPY_AND_ASSIGN(ExtensionContextMenuModel); |
139 }; | 138 }; |
140 | 139 |
141 } // namespace extensions | 140 } // namespace extensions |
142 | 141 |
143 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTEXT_MENU_MODEL_H_ | 142 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTEXT_MENU_MODEL_H_ |
OLD | NEW |