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

Side by Side Diff: Source/bindings/tests/results/core/V8ArrayBufferView.cpp

Issue 813513004: [bindings] Remove all the usages of Handle<> from binding templates. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 // 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 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8ArrayBufferView.h" 8 #include "V8ArrayBufferView.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 20 matching lines...) Expand all
31 31
32 namespace blink { 32 namespace blink {
33 33
34 const WrapperTypeInfo V8ArrayBufferView::wrapperTypeInfo = { gin::kEmbedderBlink , 0, V8ArrayBufferView::refObject, V8ArrayBufferView::derefObject, V8ArrayBuffer View::trace, 0, 0, V8ArrayBufferView::installConditionallyEnabledMethods, V8Arra yBufferView::installConditionallyEnabledProperties, 0, WrapperTypeInfo::WrapperT ypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritF romEventTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject }; 34 const WrapperTypeInfo V8ArrayBufferView::wrapperTypeInfo = { gin::kEmbedderBlink , 0, V8ArrayBufferView::refObject, V8ArrayBufferView::derefObject, V8ArrayBuffer View::trace, 0, 0, V8ArrayBufferView::installConditionallyEnabledMethods, V8Arra yBufferView::installConditionallyEnabledProperties, 0, WrapperTypeInfo::WrapperT ypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInheritF romEventTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject };
35 35
36 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestArrayBuf ferView.h. 36 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestArrayBuf ferView.h.
37 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in 37 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in
38 // bindings/core/v8/ScriptWrappable.h. 38 // bindings/core/v8/ScriptWrappable.h.
39 const WrapperTypeInfo& TestArrayBufferView::s_wrapperTypeInfo = V8ArrayBufferVie w::wrapperTypeInfo; 39 const WrapperTypeInfo& TestArrayBufferView::s_wrapperTypeInfo = V8ArrayBufferVie w::wrapperTypeInfo;
40 40
41 bool V8ArrayBufferView::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) 41 bool V8ArrayBufferView::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* i solate)
42 { 42 {
43 return v8Value->IsArrayBufferView(); 43 return v8Value->IsArrayBufferView();
44 } 44 }
45 45
46 TestArrayBufferView* V8ArrayBufferView::toImpl(v8::Handle<v8::Object> object) 46 TestArrayBufferView* V8ArrayBufferView::toImpl(v8::Local<v8::Object> object)
47 { 47 {
48 ASSERT(object->IsArrayBufferView()); 48 ASSERT(object->IsArrayBufferView());
49 ScriptWrappable* scriptWrappable = toScriptWrappable(object); 49 ScriptWrappable* scriptWrappable = toScriptWrappable(object);
50 if (scriptWrappable) 50 if (scriptWrappable)
51 return scriptWrappable->toImpl<TestArrayBufferView>(); 51 return scriptWrappable->toImpl<TestArrayBufferView>();
52 52
53 if (object->IsInt8Array()) 53 if (object->IsInt8Array())
54 return V8Int8Array::toImpl(object); 54 return V8Int8Array::toImpl(object);
55 if (object->IsInt16Array()) 55 if (object->IsInt16Array())
56 return V8Int16Array::toImpl(object); 56 return V8Int16Array::toImpl(object);
(...skipping 11 matching lines...) Expand all
68 return V8Float32Array::toImpl(object); 68 return V8Float32Array::toImpl(object);
69 if (object->IsFloat64Array()) 69 if (object->IsFloat64Array())
70 return V8Float64Array::toImpl(object); 70 return V8Float64Array::toImpl(object);
71 if (object->IsDataView()) 71 if (object->IsDataView())
72 return V8DataView::toImpl(object); 72 return V8DataView::toImpl(object);
73 73
74 ASSERT_NOT_REACHED(); 74 ASSERT_NOT_REACHED();
75 return 0; 75 return 0;
76 } 76 }
77 77
78 TestArrayBufferView* V8ArrayBufferView::toImplWithTypeCheck(v8::Isolate* isolate , v8::Handle<v8::Value> value) 78 TestArrayBufferView* V8ArrayBufferView::toImplWithTypeCheck(v8::Isolate* isolate , v8::Local<v8::Value> value)
79 { 79 {
80 return hasInstance(value, isolate) ? toImpl(v8::Handle<v8::Object>::Cast(val ue)) : 0; 80 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : 0;
81 } 81 }
82 82
83 void V8ArrayBufferView::refObject(ScriptWrappable* scriptWrappable) 83 void V8ArrayBufferView::refObject(ScriptWrappable* scriptWrappable)
84 { 84 {
85 scriptWrappable->toImpl<TestArrayBufferView>()->ref(); 85 scriptWrappable->toImpl<TestArrayBufferView>()->ref();
86 } 86 }
87 87
88 void V8ArrayBufferView::derefObject(ScriptWrappable* scriptWrappable) 88 void V8ArrayBufferView::derefObject(ScriptWrappable* scriptWrappable)
89 { 89 {
90 scriptWrappable->toImpl<TestArrayBufferView>()->deref(); 90 scriptWrappable->toImpl<TestArrayBufferView>()->deref();
91 } 91 }
92 92
93 } // namespace blink 93 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8ArrayBufferView.h ('k') | Source/bindings/tests/results/core/V8DataView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698