| OLD | NEW |
| 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 Loading... |
| 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__ |
| OLD | NEW |