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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_CONTEXT_MENUS_CONTEXT_MENUS_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_CONTEXT_MENUS_CONTEXT_MENUS_API_H_
8 #include "chrome/browser/extensions/chrome_extension_function.h"
10 namespace extensions
{
12 class ContextMenusCreateFunction
: public ChromeSyncExtensionFunction
{
14 DECLARE_EXTENSION_FUNCTION("contextMenus.create", CONTEXTMENUS_CREATE
)
17 ~ContextMenusCreateFunction() override
{}
20 bool RunSync() override
;
23 class ContextMenusUpdateFunction
: public ChromeSyncExtensionFunction
{
25 DECLARE_EXTENSION_FUNCTION("contextMenus.update", CONTEXTMENUS_UPDATE
)
28 ~ContextMenusUpdateFunction() override
{}
31 bool RunSync() override
;
34 class ContextMenusRemoveFunction
: public ChromeSyncExtensionFunction
{
36 DECLARE_EXTENSION_FUNCTION("contextMenus.remove", CONTEXTMENUS_REMOVE
)
39 ~ContextMenusRemoveFunction() override
{}
42 bool RunSync() override
;
45 class ContextMenusRemoveAllFunction
: public ChromeSyncExtensionFunction
{
47 DECLARE_EXTENSION_FUNCTION("contextMenus.removeAll", CONTEXTMENUS_REMOVEALL
)
50 ~ContextMenusRemoveAllFunction() override
{}
53 bool RunSync() override
;
56 } // namespace extensions
58 #endif // CHROME_BROWSER_EXTENSIONS_API_CONTEXT_MENUS_CONTEXT_MENUS_API_H_