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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 FRAME = 256, | 61 FRAME = 256, |
| 62 FILE = 512, |
62 }; | 63 }; |
63 | 64 |
64 // An item can be only one of these types. | 65 // An item can be only one of these types. |
65 enum Type { | 66 enum Type { |
66 NORMAL, | 67 NORMAL, |
67 CHECKBOX, | 68 CHECKBOX, |
68 RADIO, | 69 RADIO, |
69 SEPARATOR | 70 SEPARATOR |
70 }; | 71 }; |
71 | 72 |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 std::map<ExtensionMenuItem::Id, ExtensionMenuItem*> items_by_id_; | 280 std::map<ExtensionMenuItem::Id, ExtensionMenuItem*> items_by_id_; |
280 | 281 |
281 NotificationRegistrar registrar_; | 282 NotificationRegistrar registrar_; |
282 | 283 |
283 ExtensionIconManager icon_manager_; | 284 ExtensionIconManager icon_manager_; |
284 | 285 |
285 DISALLOW_COPY_AND_ASSIGN(ExtensionMenuManager); | 286 DISALLOW_COPY_AND_ASSIGN(ExtensionMenuManager); |
286 }; | 287 }; |
287 | 288 |
288 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MENU_MANAGER_H_ | 289 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MENU_MANAGER_H_ |
OLD | NEW |