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

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

Issue 1278983003: Adding allocator annotations to blink classes and structs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed patch conflict Created 5 years, 4 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
« no previous file with comments | « Source/bindings/core/v8/NativeValueTraits.h ('k') | Source/bindings/core/v8/RejectedPromises.h » ('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 PrivateScriptRunner_h 5 #ifndef PrivateScriptRunner_h
6 #define PrivateScriptRunner_h 6 #define PrivateScriptRunner_h
7 7
8 #include "bindings/core/v8/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "wtf/text/WTFString.h" 10 #include "wtf/text/WTFString.h"
11 #include <v8.h> 11 #include <v8.h>
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class Document; 15 class Document;
16 class ScriptState; 16 class ScriptState;
17 17
18 class CORE_EXPORT PrivateScriptRunner { 18 class CORE_EXPORT PrivateScriptRunner {
19 STATIC_ONLY(PrivateScriptRunner);
19 public: 20 public:
20 static v8::Local<v8::Value> installClassIfNeeded(Document*, String className ); 21 static v8::Local<v8::Value> installClassIfNeeded(Document*, String className );
21 static v8::Local<v8::Value> runDOMAttributeGetter(ScriptState*, ScriptState* scriptStateInUserScript, const char* className, const char* attributeName, v8:: Local<v8::Value> holder); 22 static v8::Local<v8::Value> runDOMAttributeGetter(ScriptState*, ScriptState* scriptStateInUserScript, const char* className, const char* attributeName, v8:: Local<v8::Value> holder);
22 static bool runDOMAttributeSetter(ScriptState*, ScriptState* scriptStateInUs erScript, const char* className, const char* attributeName, v8::Local<v8::Value> holder, v8::Local<v8::Value> v8Value); 23 static bool runDOMAttributeSetter(ScriptState*, ScriptState* scriptStateInUs erScript, const char* className, const char* attributeName, v8::Local<v8::Value> holder, v8::Local<v8::Value> v8Value);
23 static v8::Local<v8::Value> runDOMMethod(ScriptState*, ScriptState* scriptSt ateInUserScript, const char* className, const char* methodName, v8::Local<v8::Va lue> holder, int argc, v8::Local<v8::Value> argv[]); 24 static v8::Local<v8::Value> runDOMMethod(ScriptState*, ScriptState* scriptSt ateInUserScript, const char* className, const char* methodName, v8::Local<v8::Va lue> holder, int argc, v8::Local<v8::Value> argv[]);
24 }; 25 };
25 26
26 } // namespace blink 27 } // namespace blink
27 28
28 #endif // V8PrivateScriptRunner_h 29 #endif // V8PrivateScriptRunner_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/NativeValueTraits.h ('k') | Source/bindings/core/v8/RejectedPromises.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698