Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: chrome/renderer/extensions/automation_internal_custom_bindings.h

Issue 304293002: Add human readable programmatic enum name/values to chrome.automation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Last feedback. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/renderer/extensions/automation_internal_custom_bindings.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ 5 #ifndef CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_
6 #define CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ 6 #define CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "extensions/renderer/object_backed_native_handler.h" 9 #include "extensions/renderer/object_backed_native_handler.h"
10 #include "v8/include/v8.h" 10 #include "v8/include/v8.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 // The native component of custom bindings for the chrome.automationInternal 14 // The native component of custom bindings for the chrome.automationInternal
15 // API. 15 // API.
16 class AutomationInternalCustomBindings : public ObjectBackedNativeHandler { 16 class AutomationInternalCustomBindings : public ObjectBackedNativeHandler {
17 public: 17 public:
18 explicit AutomationInternalCustomBindings(ScriptContext* context); 18 explicit AutomationInternalCustomBindings(ScriptContext* context);
19 19
20 virtual ~AutomationInternalCustomBindings(); 20 virtual ~AutomationInternalCustomBindings();
21 21
22 private: 22 private:
23 // Returns whether this extension has the "interact" permission set (either
24 // explicitly or implicitly after manifest parsing).
23 void IsInteractPermitted(const v8::FunctionCallbackInfo<v8::Value>& args); 25 void IsInteractPermitted(const v8::FunctionCallbackInfo<v8::Value>& args);
24 26
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);
30
25 DISALLOW_COPY_AND_ASSIGN(AutomationInternalCustomBindings); 31 DISALLOW_COPY_AND_ASSIGN(AutomationInternalCustomBindings);
26 }; 32 };
27 33
28 } // namespace extensions 34 } // namespace extensions
29 35
30 #endif // CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ 36 #endif // CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/extensions/automation_internal_custom_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698