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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/PrivateScriptRunner.h

Issue 2571063002: Remove Blink-in-JS (Closed)
Patch Set: Created 4 years 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
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698