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

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

Issue 19230002: Use V8 implementation of TypedArrays and DataView in Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased for relanding Created 7 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/tests/results/V8TestObject.cpp ('k') | Source/bindings/v8/Dictionary.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 /* 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 "V8TestOverloadedConstructors.h" 22 #include "V8TestOverloadedConstructors.h"
23 23
24 #include "RuntimeEnabledFeatures.h" 24 #include "RuntimeEnabledFeatures.h"
25 #include "V8ArrayBufferView.h"
26 #include "V8Blob.h" 25 #include "V8Blob.h"
27 #include "bindings/v8/ExceptionState.h" 26 #include "bindings/v8/ExceptionState.h"
28 #include "bindings/v8/ScriptController.h" 27 #include "bindings/v8/ScriptController.h"
29 #include "bindings/v8/V8Binding.h" 28 #include "bindings/v8/V8Binding.h"
30 #include "bindings/v8/V8DOMConfiguration.h" 29 #include "bindings/v8/V8DOMConfiguration.h"
31 #include "bindings/v8/V8DOMWrapper.h" 30 #include "bindings/v8/V8DOMWrapper.h"
32 #include "bindings/v8/V8ObjectConstructor.h" 31 #include "bindings/v8/V8ObjectConstructor.h"
33 #include "bindings/v8/custom/V8ArrayBufferCustom.h" 32 #include "bindings/v8/custom/V8ArrayBufferCustom.h"
33 #include "bindings/v8/custom/V8ArrayBufferViewCustom.h"
34 #include "core/dom/ContextFeatures.h" 34 #include "core/dom/ContextFeatures.h"
35 #include "core/dom/Document.h" 35 #include "core/dom/Document.h"
36 #include "core/page/Frame.h" 36 #include "core/page/Frame.h"
37 #include "core/platform/chromium/TraceEvent.h" 37 #include "core/platform/chromium/TraceEvent.h"
38 #include "wtf/UnusedParam.h" 38 #include "wtf/UnusedParam.h"
39 39
40 namespace WebCore { 40 namespace WebCore {
41 41
42 static void initializeScriptWrappableForInterface(TestOverloadedConstructors* ob ject) 42 static void initializeScriptWrappableForInterface(TestOverloadedConstructors* ob ject)
43 { 43 {
(...skipping 27 matching lines...) Expand all
71 71
72 RefPtr<TestOverloadedConstructors> impl = TestOverloadedConstructors::create (arrayBuffer); 72 RefPtr<TestOverloadedConstructors> impl = TestOverloadedConstructors::create (arrayBuffer);
73 v8::Handle<v8::Object> wrapper = args.Holder(); 73 v8::Handle<v8::Object> wrapper = args.Holder();
74 74
75 V8DOMWrapper::associateObjectWithWrapper<V8TestOverloadedConstructors>(impl. release(), &V8TestOverloadedConstructors::info, wrapper, args.GetIsolate(), Wrap perConfiguration::Dependent); 75 V8DOMWrapper::associateObjectWithWrapper<V8TestOverloadedConstructors>(impl. release(), &V8TestOverloadedConstructors::info, wrapper, args.GetIsolate(), Wrap perConfiguration::Dependent);
76 args.GetReturnValue().Set(wrapper); 76 args.GetReturnValue().Set(wrapper);
77 } 77 }
78 78
79 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& args) 79 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& args)
80 { 80 {
81 V8TRYCATCH_VOID(ArrayBufferView*, arrayBufferView, V8ArrayBufferView::HasIns tance(args[0], args.GetIsolate(), worldType(args.GetIsolate())) ? V8ArrayBufferV iew::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0); 81 V8TRYCATCH_VOID(ArrayBufferView*, arrayBufferView, args[0]->IsArrayBufferVie w() ? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(args[0]) ) : 0);
82 82
83 RefPtr<TestOverloadedConstructors> impl = TestOverloadedConstructors::create (arrayBufferView); 83 RefPtr<TestOverloadedConstructors> impl = TestOverloadedConstructors::create (arrayBufferView);
84 v8::Handle<v8::Object> wrapper = args.Holder(); 84 v8::Handle<v8::Object> wrapper = args.Holder();
85 85
86 V8DOMWrapper::associateObjectWithWrapper<V8TestOverloadedConstructors>(impl. release(), &V8TestOverloadedConstructors::info, wrapper, args.GetIsolate(), Wrap perConfiguration::Dependent); 86 V8DOMWrapper::associateObjectWithWrapper<V8TestOverloadedConstructors>(impl. release(), &V8TestOverloadedConstructors::info, wrapper, args.GetIsolate(), Wrap perConfiguration::Dependent);
87 args.GetReturnValue().Set(wrapper); 87 args.GetReturnValue().Set(wrapper);
88 } 88 }
89 89
90 static void constructor3(const v8::FunctionCallbackInfo<v8::Value>& args) 90 static void constructor3(const v8::FunctionCallbackInfo<v8::Value>& args)
91 { 91 {
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 installPerContextProperties(wrapper, impl.get(), isolate); 216 installPerContextProperties(wrapper, impl.get(), isolate);
217 V8DOMWrapper::associateObjectWithWrapper<V8TestOverloadedConstructors>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent); 217 V8DOMWrapper::associateObjectWithWrapper<V8TestOverloadedConstructors>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent);
218 return wrapper; 218 return wrapper;
219 } 219 }
220 void V8TestOverloadedConstructors::derefObject(void* object) 220 void V8TestOverloadedConstructors::derefObject(void* object)
221 { 221 {
222 fromInternalPointer(object)->deref(); 222 fromInternalPointer(object)->deref();
223 } 223 }
224 224
225 } // namespace WebCore 225 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestObject.cpp ('k') | Source/bindings/v8/Dictionary.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698