| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_API_CONTEXT_MENU_CONTEXT_MENU_API_H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_CONTEXT_MENUS_CONTEXT_MENUS_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_CONTEXT_MENU_CONTEXT_MENU_API_H__ | 6 #define CHROME_BROWSER_EXTENSIONS_API_CONTEXT_MENUS_CONTEXT_MENUS_API_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/extensions/extension_function.h" | 8 #include "chrome/browser/extensions/extension_function.h" |
| 9 | 9 |
| 10 namespace extensions { | 10 namespace extensions { |
| 11 | 11 |
| 12 class CreateContextMenuFunction : public SyncExtensionFunction { | 12 class ContextMenusCreateFunction : public SyncExtensionFunction { |
| 13 public: | 13 public: |
| 14 DECLARE_EXTENSION_FUNCTION_NAME("contextMenus.create") | 14 DECLARE_EXTENSION_FUNCTION_NAME("contextMenus.create") |
| 15 | 15 |
| 16 protected: | 16 protected: |
| 17 virtual ~CreateContextMenuFunction() {} | 17 virtual ~ContextMenusCreateFunction() {} |
| 18 | 18 |
| 19 // ExtensionFunction: | 19 // ExtensionFunction: |
| 20 virtual bool RunImpl() OVERRIDE; | 20 virtual bool RunImpl() OVERRIDE; |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 class UpdateContextMenuFunction : public SyncExtensionFunction { | 23 class ContextMenusUpdateFunction : public SyncExtensionFunction { |
| 24 public: | 24 public: |
| 25 DECLARE_EXTENSION_FUNCTION_NAME("contextMenus.update") | 25 DECLARE_EXTENSION_FUNCTION_NAME("contextMenus.update") |
| 26 | 26 |
| 27 protected: | 27 protected: |
| 28 virtual ~UpdateContextMenuFunction() {} | 28 virtual ~ContextMenusUpdateFunction() {} |
| 29 | 29 |
| 30 // ExtensionFunction: | 30 // ExtensionFunction: |
| 31 virtual bool RunImpl() OVERRIDE; | 31 virtual bool RunImpl() OVERRIDE; |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 class RemoveContextMenuFunction : public SyncExtensionFunction { | 34 class ContextMenusRemoveFunction : public SyncExtensionFunction { |
| 35 public: | 35 public: |
| 36 DECLARE_EXTENSION_FUNCTION_NAME("contextMenus.remove") | 36 DECLARE_EXTENSION_FUNCTION_NAME("contextMenus.remove") |
| 37 | 37 |
| 38 protected: | 38 protected: |
| 39 virtual ~RemoveContextMenuFunction() {} | 39 virtual ~ContextMenusRemoveFunction() {} |
| 40 | 40 |
| 41 // ExtensionFunction: | 41 // ExtensionFunction: |
| 42 virtual bool RunImpl() OVERRIDE; | 42 virtual bool RunImpl() OVERRIDE; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 class RemoveAllContextMenusFunction : public SyncExtensionFunction { | 45 class ContextMenusRemoveAllFunction : public SyncExtensionFunction { |
| 46 public: | 46 public: |
| 47 DECLARE_EXTENSION_FUNCTION_NAME("contextMenus.removeAll") | 47 DECLARE_EXTENSION_FUNCTION_NAME("contextMenus.removeAll") |
| 48 | 48 |
| 49 protected: | 49 protected: |
| 50 virtual ~RemoveAllContextMenusFunction() {} | 50 virtual ~ContextMenusRemoveAllFunction() {} |
| 51 | 51 |
| 52 // ExtensionFunction: | 52 // ExtensionFunction: |
| 53 virtual bool RunImpl() OVERRIDE; | 53 virtual bool RunImpl() OVERRIDE; |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace extensions | 56 } // namespace extensions |
| 57 | 57 |
| 58 #endif // CHROME_BROWSER_EXTENSIONS_API_CONTEXT_MENU_CONTEXT_MENU_API_H__ | 58 #endif // CHROME_BROWSER_EXTENSIONS_API_CONTEXT_MENUS_CONTEXT_MENUS_API_H_ |
| OLD | NEW |