| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 std::map<ExtensionMenuItem::Id, ExtensionMenuItem*> items_by_id_; | 279 std::map<ExtensionMenuItem::Id, ExtensionMenuItem*> items_by_id_; |
| 279 | 280 |
| 280 NotificationRegistrar registrar_; | 281 NotificationRegistrar registrar_; |
| 281 | 282 |
| 282 ExtensionIconManager icon_manager_; | 283 ExtensionIconManager icon_manager_; |
| 283 | 284 |
| 284 DISALLOW_COPY_AND_ASSIGN(ExtensionMenuManager); | 285 DISALLOW_COPY_AND_ASSIGN(ExtensionMenuManager); |
| 285 }; | 286 }; |
| 286 | 287 |
| 287 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MENU_MANAGER_H_ | 288 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MENU_MANAGER_H_ |
| OLD | NEW |