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

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

Issue 2840038: Move context menu module out of experimental. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: kathy changes Created 10 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_context_menu_apitest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_API_H__ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTEXT_MENU_API_H__
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTEXT_MENU_API_H__ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTEXT_MENU_API_H__
7 7
8 #include "chrome/browser/extensions/extension_function.h" 8 #include "chrome/browser/extensions/extension_function.h"
9 #include "chrome/browser/extensions/extension_menu_manager.h" 9 #include "chrome/browser/extensions/extension_menu_manager.h"
10 10
(...skipping 28 matching lines...) Expand all
39 // unset. Also, it is considered an error if the item found has a type other 39 // unset. Also, it is considered an error if the item found has a type other
40 // than NORMAL. 40 // than NORMAL.
41 bool GetParent(const DictionaryValue& properties, 41 bool GetParent(const DictionaryValue& properties,
42 const ExtensionMenuManager& manager, 42 const ExtensionMenuManager& manager,
43 ExtensionMenuItem** result); 43 ExtensionMenuItem** result);
44 }; 44 };
45 45
46 class CreateContextMenuFunction : public ExtensionContextMenuFunction { 46 class CreateContextMenuFunction : public ExtensionContextMenuFunction {
47 ~CreateContextMenuFunction() {} 47 ~CreateContextMenuFunction() {}
48 virtual bool RunImpl(); 48 virtual bool RunImpl();
49 DECLARE_EXTENSION_FUNCTION_NAME("experimental.contextMenus.create") 49 DECLARE_EXTENSION_FUNCTION_NAME("contextMenus.create")
50 }; 50 };
51 51
52 class UpdateContextMenuFunction : public ExtensionContextMenuFunction { 52 class UpdateContextMenuFunction : public ExtensionContextMenuFunction {
53 ~UpdateContextMenuFunction() {} 53 ~UpdateContextMenuFunction() {}
54 virtual bool RunImpl(); 54 virtual bool RunImpl();
55 DECLARE_EXTENSION_FUNCTION_NAME("experimental.contextMenus.update") 55 DECLARE_EXTENSION_FUNCTION_NAME("contextMenus.update")
56 }; 56 };
57 57
58 class RemoveContextMenuFunction : public ExtensionContextMenuFunction { 58 class RemoveContextMenuFunction : public ExtensionContextMenuFunction {
59 ~RemoveContextMenuFunction() {} 59 ~RemoveContextMenuFunction() {}
60 virtual bool RunImpl(); 60 virtual bool RunImpl();
61 DECLARE_EXTENSION_FUNCTION_NAME("experimental.contextMenus.remove") 61 DECLARE_EXTENSION_FUNCTION_NAME("contextMenus.remove")
62 }; 62 };
63 63
64 class RemoveAllContextMenusFunction : public ExtensionContextMenuFunction { 64 class RemoveAllContextMenusFunction : public ExtensionContextMenuFunction {
65 ~RemoveAllContextMenusFunction() {} 65 ~RemoveAllContextMenusFunction() {}
66 virtual bool RunImpl(); 66 virtual bool RunImpl();
67 DECLARE_EXTENSION_FUNCTION_NAME("experimental.contextMenus.removeAll") 67 DECLARE_EXTENSION_FUNCTION_NAME("contextMenus.removeAll")
68 }; 68 };
69 69
70 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTEXT_MENU_API_H__ 70 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTEXT_MENU_API_H__
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_context_menu_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698