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

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

Issue 594213002: Inline exception handling code into PrivateScriptRunner helpers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | Source/bindings/core/v8/PrivateScriptRunner.cpp » ('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 "wtf/text/WTFString.h" 9 #include "wtf/text/WTFString.h"
10 #include <v8.h> 10 #include <v8.h>
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class LocalFrame; 14 class LocalFrame;
15 class ScriptState; 15 class ScriptState;
16 16
17 class PrivateScriptRunner { 17 class PrivateScriptRunner {
18 public: 18 public:
19 static v8::Handle<v8::Value> installClassIfNeeded(LocalFrame*, String classN ame); 19 static v8::Handle<v8::Value> installClassIfNeeded(LocalFrame*, String classN ame);
20 static v8::Handle<v8::Value> runDOMAttributeGetter(ScriptState*, String clas sName, String attributeName, v8::Handle<v8::Value> holder); 20 static v8::Handle<v8::Value> runDOMAttributeGetter(ScriptState*, ScriptState * scriptStateInUserScript, const char* className, const char* attributeName, v8: :Handle<v8::Value> holder);
21 static void runDOMAttributeSetter(ScriptState*, String className, String att ributeName, v8::Handle<v8::Value> holder, v8::Handle<v8::Value> v8Value); 21 static bool runDOMAttributeSetter(ScriptState*, ScriptState* scriptStateInUs erScript, const char* className, const char* attributeName, v8::Handle<v8::Value > holder, v8::Handle<v8::Value> v8Value);
22 static v8::Handle<v8::Value> runDOMMethod(ScriptState*, String className, St ring methodName, v8::Handle<v8::Value> holder, int argc, v8::Handle<v8::Value> a rgv[]); 22 static v8::Handle<v8::Value> runDOMMethod(ScriptState*, ScriptState* scriptS tateInUserScript, const char* className, const char* methodName, v8::Handle<v8:: Value> holder, int argc, v8::Handle<v8::Value> argv[]);
23
24 static void rethrowExceptionInPrivateScript(v8::Isolate*, v8::TryCatch&, Scr iptState*, ExceptionState::Context, const char* propertyName, const char* interf aceName);
25 }; 23 };
26 24
27 } // namespace blink 25 } // namespace blink
28 26
29 #endif // V8PrivateScriptRunner_h 27 #endif // V8PrivateScriptRunner_h
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/core/v8/PrivateScriptRunner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698