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

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

Issue 14244017: Make length property return useful values for DOM bindings functions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Replace [Optional] by optional Created 7 years, 8 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
OLDNEW
1 /* 1 /*
2 This file is part of the WebKit open source project. 2 This file is part of the WebKit open source project.
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY! 3 This file has been generated by generate-bindings.pl. 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 20 matching lines...) Expand all
31 #include <wtf/RefCounted.h> 31 #include <wtf/RefCounted.h>
32 #include <wtf/RefPtr.h> 32 #include <wtf/RefPtr.h>
33 33
34 #include <wtf/Assertions.h> 34 #include <wtf/Assertions.h>
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 V8TestCallback::V8TestCallback(v8::Handle<v8::Object> callback, ScriptExecutionC ontext* context) 38 V8TestCallback::V8TestCallback(v8::Handle<v8::Object> callback, ScriptExecutionC ontext* context)
39 : ActiveDOMCallback(context) 39 : ActiveDOMCallback(context)
40 , m_callback(callback) 40 , m_callback(callback)
41 , m_world(context->isDocument() ? DOMWrapperWorld::isolatedWorld(v8::Context ::GetCurrent()) : 0) 41 , m_world(DOMWrapperWorld::current(context))
42 { 42 {
43 } 43 }
44 44
45 V8TestCallback::~V8TestCallback() 45 V8TestCallback::~V8TestCallback()
46 { 46 {
47 } 47 }
48 48
49 // Functions 49 // Functions
50 50
51 bool V8TestCallback::callbackWithNoParam() 51 bool V8TestCallback::callbackWithNoParam()
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 v8::Handle<v8::Value> argv[] = { 182 v8::Handle<v8::Value> argv[] = {
183 boolParamHandle 183 boolParamHandle
184 }; 184 };
185 185
186 bool callbackReturnValue = false; 186 bool callbackReturnValue = false;
187 return !invokeCallback(m_callback.get(), 1, argv, callbackReturnValue, scrip tExecutionContext()); 187 return !invokeCallback(m_callback.get(), 1, argv, callbackReturnValue, scrip tExecutionContext());
188 } 188 }
189 189
190 } // namespace WebCore 190 } // namespace WebCore
191 191
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestActiveDOMObject.cpp ('k') | Source/bindings/tests/results/V8TestCustomNamedGetter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698