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

Side by Side Diff: Source/bindings/tests/results/V8TestCallback.cpp

Issue 23601032: Pass isolate to ScopedPersistent constructor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update deprecated generator as well Created 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 This file is part of the Blink open source project. 2 This file is part of the Blink open source project.
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY!
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
(...skipping 15 matching lines...) Expand all
26 #include "bindings/v8/V8Binding.h" 26 #include "bindings/v8/V8Binding.h"
27 #include "bindings/v8/V8Callback.h" 27 #include "bindings/v8/V8Callback.h"
28 #include "core/dom/ScriptExecutionContext.h" 28 #include "core/dom/ScriptExecutionContext.h"
29 #include "wtf/Assertions.h" 29 #include "wtf/Assertions.h"
30 #include "wtf/GetPtr.h" 30 #include "wtf/GetPtr.h"
31 #include "wtf/RefPtr.h" 31 #include "wtf/RefPtr.h"
32 namespace WebCore { 32 namespace WebCore {
33 33
34 V8TestCallback::V8TestCallback(v8::Handle<v8::Object> callback, ScriptExecutionC ontext* context) 34 V8TestCallback::V8TestCallback(v8::Handle<v8::Object> callback, ScriptExecutionC ontext* context)
35 : ActiveDOMCallback(context) 35 : ActiveDOMCallback(context)
36 , m_callback(callback) 36 , m_callback(isolateForScriptExecutionContext(context), callback)
37 , m_world(DOMWrapperWorld::current()) 37 , m_world(DOMWrapperWorld::current())
38 { 38 {
39 } 39 }
40 40
41 V8TestCallback::~V8TestCallback() 41 V8TestCallback::~V8TestCallback()
42 { 42 {
43 } 43 }
44 44
45 // Functions 45 // Functions
46 46
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 v8::Handle<v8::Value> argv[] = { 277 v8::Handle<v8::Value> argv[] = {
278 paramHandle 278 paramHandle
279 }; 279 };
280 280
281 bool callbackReturnValue = false; 281 bool callbackReturnValue = false;
282 return !invokeCallback(m_callback.newLocal(isolate), v8::Handle<v8::Object>: :Cast(thisHandle), 1, argv, callbackReturnValue, scriptExecutionContext(), isola te); 282 return !invokeCallback(m_callback.newLocal(isolate), v8::Handle<v8::Object>: :Cast(thisHandle), 1, argv, callbackReturnValue, scriptExecutionContext(), isola te);
283 } 283 }
284 284
285 } // namespace WebCore 285 } // namespace WebCore
286 286
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698