OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_MENU_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MENU_MANAGER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MENU_MANAGER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MENU_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // For context menus, these are the contexts where an item can appear. | 51 // For context menus, these are the contexts where an item can appear. |
52 enum Context { | 52 enum Context { |
53 ALL = 1, | 53 ALL = 1, |
54 PAGE = 2, | 54 PAGE = 2, |
55 SELECTION = 4, | 55 SELECTION = 4, |
56 LINK = 8, | 56 LINK = 8, |
57 EDITABLE = 16, | 57 EDITABLE = 16, |
58 IMAGE = 32, | 58 IMAGE = 32, |
59 VIDEO = 64, | 59 VIDEO = 64, |
60 AUDIO = 128, | 60 AUDIO = 128, |
| 61 FILE = 256, |
61 }; | 62 }; |
62 | 63 |
63 // An item can be only one of these types. | 64 // An item can be only one of these types. |
64 enum Type { | 65 enum Type { |
65 NORMAL, | 66 NORMAL, |
66 CHECKBOX, | 67 CHECKBOX, |
67 RADIO, | 68 RADIO, |
68 SEPARATOR | 69 SEPARATOR |
69 }; | 70 }; |
70 | 71 |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 std::map<ExtensionMenuItem::Id, ExtensionMenuItem*> items_by_id_; | 276 std::map<ExtensionMenuItem::Id, ExtensionMenuItem*> items_by_id_; |
276 | 277 |
277 NotificationRegistrar registrar_; | 278 NotificationRegistrar registrar_; |
278 | 279 |
279 ExtensionIconManager icon_manager_; | 280 ExtensionIconManager icon_manager_; |
280 | 281 |
281 DISALLOW_COPY_AND_ASSIGN(ExtensionMenuManager); | 282 DISALLOW_COPY_AND_ASSIGN(ExtensionMenuManager); |
282 }; | 283 }; |
283 | 284 |
284 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MENU_MANAGER_H_ | 285 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MENU_MANAGER_H_ |
OLD | NEW |