Use multiline attribute to check for IA2_STATE_MULTILINE.
[chromium-blink-merge.git] / chrome / renderer / extensions / automation_internal_custom_bindings.h
blobffa7085e3eac934f0b2a9264afce51a55b121286
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.
5 #ifndef CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_
6 #define CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_
8 #include "base/compiler_specific.h"
9 #include "extensions/renderer/object_backed_native_handler.h"
10 #include "v8/include/v8.h"
12 namespace extensions {
14 // The native component of custom bindings for the chrome.automationInternal
15 // API.
16 class AutomationInternalCustomBindings : public ObjectBackedNativeHandler {
17 public:
18 explicit AutomationInternalCustomBindings(ScriptContext* context);
20 ~AutomationInternalCustomBindings() override;
22 private:
23 // Returns whether this extension has the "interact" permission set (either
24 // explicitly or implicitly after manifest parsing).
25 void IsInteractPermitted(const v8::FunctionCallbackInfo<v8::Value>& args);
27 // Returns an object with bindings that will be added to the
28 // chrome.automation namespace.
29 void GetSchemaAdditions(const v8::FunctionCallbackInfo<v8::Value>& args);
31 DISALLOW_COPY_AND_ASSIGN(AutomationInternalCustomBindings);
34 } // namespace extensions
36 #endif // CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_