context_menus_custom_bindings.h 743 B

123456789101112131415161718192021222324
  1. // Copyright 2014 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.
  4. #ifndef EXTENSIONS_RENDERER_CONTEXT_MENUS_CUSTOM_BINDINGS_H_
  5. #define EXTENSIONS_RENDERER_CONTEXT_MENUS_CUSTOM_BINDINGS_H_
  6. #include "extensions/renderer/object_backed_native_handler.h"
  7. namespace extensions {
  8. class ScriptContext;
  9. // Implements custom bindings for the contextMenus API.
  10. class ContextMenusCustomBindings : public ObjectBackedNativeHandler {
  11. public:
  12. explicit ContextMenusCustomBindings(ScriptContext* context);
  13. // ObjectBackedNativeHandler:
  14. void AddRoutes() override;
  15. };
  16. } // extensions
  17. #endif // EXTENSIONS_RENDERER_CONTEXT_MENUS_CUSTOM_BINDINGS_H_