Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: chrome/browser/extensions/extension_menu_manager.h

Issue 6799020: Add support for a "frame" context option to chrome.contextMenus.create/update. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update docs. Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 FRAME = 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698