OLD | NEW |
| (Empty) |
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 | |
5 #ifndef PrivateScriptRunner_h | |
6 #define PrivateScriptRunner_h | |
7 | |
8 #include "bindings/core/v8/ExceptionState.h" | |
9 #include "core/CoreExport.h" | |
10 #include "wtf/text/WTFString.h" | |
11 #include <v8.h> | |
12 | |
13 namespace blink { | |
14 | |
15 class Document; | |
16 class ScriptState; | |
17 | |
18 class CORE_EXPORT PrivateScriptRunner { | |
19 STATIC_ONLY(PrivateScriptRunner); | |
20 | |
21 public: | |
22 static v8::Local<v8::Value> installClassIfNeeded(Document*, String className); | |
23 static v8::Local<v8::Value> runDOMAttributeGetter( | |
24 ScriptState*, | |
25 ScriptState* scriptStateInUserScript, | |
26 const char* className, | |
27 const char* attributeName, | |
28 v8::Local<v8::Value> holder); | |
29 static bool runDOMAttributeSetter(ScriptState*, | |
30 ScriptState* scriptStateInUserScript, | |
31 const char* className, | |
32 const char* attributeName, | |
33 v8::Local<v8::Value> holder, | |
34 v8::Local<v8::Value> v8Value); | |
35 static v8::Local<v8::Value> runDOMMethod(ScriptState*, | |
36 ScriptState* scriptStateInUserScript, | |
37 const char* className, | |
38 const char* methodName, | |
39 v8::Local<v8::Value> holder, | |
40 int argc, | |
41 v8::Local<v8::Value> argv[]); | |
42 }; | |
43 | |
44 } // namespace blink | |
45 | |
46 #endif // V8PrivateScriptRunner_h | |
OLD | NEW |