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

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

Issue 14882009: Remove DOM prefix from several IDL interfaces (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 7 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,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details. 13 Library General Public License for more details.
14 14
15 You should have received a copy of the GNU Library General Public License 15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to 16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. 18 Boston, MA 02111-1307, USA.
19 */ 19 */
20 20
21 #include "config.h" 21 #include "config.h"
22 #include "V8TestCallback.h" 22 #include "V8TestCallback.h"
23 23
24 #include "V8DOMStringList.h" 24 #include "V8DOMStringList.h"
25 #include "V8TestObj.h" 25 #include "V8TestObject.h"
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/RefCounted.h" 31 #include "wtf/RefCounted.h"
32 #include "wtf/RefPtr.h" 32 #include "wtf/RefPtr.h"
33 namespace WebCore { 33 namespace WebCore {
34 34
35 V8TestCallback::V8TestCallback(v8::Handle<v8::Object> callback, ScriptExecutionC ontext* context) 35 V8TestCallback::V8TestCallback(v8::Handle<v8::Object> callback, ScriptExecutionC ontext* context)
(...skipping 22 matching lines...) Expand all
58 58
59 v8::Context::Scope scope(v8Context); 59 v8::Context::Scope scope(v8Context);
60 60
61 61
62 v8::Handle<v8::Value> *argv = 0; 62 v8::Handle<v8::Value> *argv = 0;
63 63
64 bool callbackReturnValue = false; 64 bool callbackReturnValue = false;
65 return !invokeCallback(m_callback.get(), 0, argv, callbackReturnValue, scrip tExecutionContext()); 65 return !invokeCallback(m_callback.get(), 0, argv, callbackReturnValue, scrip tExecutionContext());
66 } 66 }
67 67
68 bool V8TestCallback::callbackWithTestObjParam(TestObj* class1Param) 68 bool V8TestCallback::callbackWithTestObjectParam(TestObj* class1Param)
69 { 69 {
70 if (!canInvokeCallback()) 70 if (!canInvokeCallback())
71 return true; 71 return true;
72 72
73 v8::HandleScope handleScope; 73 v8::HandleScope handleScope;
74 74
75 v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_ world.get()); 75 v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_ world.get());
76 if (v8Context.IsEmpty()) 76 if (v8Context.IsEmpty())
77 return true; 77 return true;
78 78
79 v8::Context::Scope scope(v8Context); 79 v8::Context::Scope scope(v8Context);
80 80
81 v8::Handle<v8::Value> class1ParamHandle = toV8(class1Param, v8::Handle<v8::O bject>(), v8Context->GetIsolate()); 81 v8::Handle<v8::Value> class1ParamHandle = toV8(class1Param, v8::Handle<v8::O bject>(), v8Context->GetIsolate());
82 if (class1ParamHandle.IsEmpty()) { 82 if (class1ParamHandle.IsEmpty()) {
83 if (!isScriptControllerTerminating()) 83 if (!isScriptControllerTerminating())
84 CRASH(); 84 CRASH();
85 return true; 85 return true;
86 } 86 }
87 87
88 v8::Handle<v8::Value> argv[] = { 88 v8::Handle<v8::Value> argv[] = {
89 class1ParamHandle 89 class1ParamHandle
90 }; 90 };
91 91
92 bool callbackReturnValue = false; 92 bool callbackReturnValue = false;
93 return !invokeCallback(m_callback.get(), 1, argv, callbackReturnValue, scrip tExecutionContext()); 93 return !invokeCallback(m_callback.get(), 1, argv, callbackReturnValue, scrip tExecutionContext());
94 } 94 }
95 95
96 bool V8TestCallback::callbackWithTestObjParam(TestObj* class2Param, const String & strArg) 96 bool V8TestCallback::callbackWithTestObjectParam(TestObj* class2Param, const Str ing& strArg)
97 { 97 {
98 if (!canInvokeCallback()) 98 if (!canInvokeCallback())
99 return true; 99 return true;
100 100
101 v8::HandleScope handleScope; 101 v8::HandleScope handleScope;
102 102
103 v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_ world.get()); 103 v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_ world.get());
104 if (v8Context.IsEmpty()) 104 if (v8Context.IsEmpty())
105 return true; 105 return true;
106 106
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 v8::Handle<v8::Value> argv[] = { 179 v8::Handle<v8::Value> argv[] = {
180 boolParamHandle 180 boolParamHandle
181 }; 181 };
182 182
183 bool callbackReturnValue = false; 183 bool callbackReturnValue = false;
184 return !invokeCallback(m_callback.get(), 1, argv, callbackReturnValue, scrip tExecutionContext()); 184 return !invokeCallback(m_callback.get(), 1, argv, callbackReturnValue, scrip tExecutionContext());
185 } 185 }
186 186
187 } // namespace WebCore 187 } // namespace WebCore
188 188
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestCallback.h ('k') | Source/bindings/tests/results/V8TestInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698