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

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

Issue 537403002: bindings: Renames from/toInternalPointer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 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 // 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 "V8TestInterfaceDocument.h" 8 #include "V8TestInterfaceDocument.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 bool V8TestInterfaceDocument::hasInstance(v8::Handle<v8::Value> v8Value, v8::Iso late* isolate) 75 bool V8TestInterfaceDocument::hasInstance(v8::Handle<v8::Value> v8Value, v8::Iso late* isolate)
76 { 76 {
77 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu e); 77 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu e);
78 } 78 }
79 79
80 v8::Handle<v8::Object> V8TestInterfaceDocument::findInstanceInPrototypeChain(v8: :Handle<v8::Value> v8Value, v8::Isolate* isolate) 80 v8::Handle<v8::Object> V8TestInterfaceDocument::findInstanceInPrototypeChain(v8: :Handle<v8::Value> v8Value, v8::Isolate* isolate)
81 { 81 {
82 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value); 82 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value);
83 } 83 }
84 84
85 TestInterfaceDocument* V8TestInterfaceDocument::toNativeWithTypeCheck(v8::Isolat e* isolate, v8::Handle<v8::Value> value) 85 TestInterfaceDocument* V8TestInterfaceDocument::toImplWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value)
86 { 86 {
87 return hasInstance(value, isolate) ? fromInternalPointer(blink::toInternalPo inter(v8::Handle<v8::Object>::Cast(value))) : 0; 87 return hasInstance(value, isolate) ? blink::toScriptWrappableBase(v8::Handle <v8::Object>::Cast(value))->toImpl<TestInterfaceDocument>() : 0;
88 } 88 }
89 89
90 EventTarget* V8TestInterfaceDocument::toEventTarget(v8::Handle<v8::Object> objec t) 90 EventTarget* V8TestInterfaceDocument::toEventTarget(v8::Handle<v8::Object> objec t)
91 { 91 {
92 return toNative(object); 92 return toImpl(object);
93 } 93 }
94 94
95 95
96 void V8TestInterfaceDocument::refObject(ScriptWrappableBase* internalPointer) 96 void V8TestInterfaceDocument::refObject(ScriptWrappableBase* internalPointer)
97 { 97 {
98 #if !ENABLE(OILPAN) 98 #if !ENABLE(OILPAN)
99 fromInternalPointer(internalPointer)->ref(); 99 internalPointer->toImpl<TestInterfaceDocument>()->ref();
100 #endif 100 #endif
101 } 101 }
102 102
103 void V8TestInterfaceDocument::derefObject(ScriptWrappableBase* internalPointer) 103 void V8TestInterfaceDocument::derefObject(ScriptWrappableBase* internalPointer)
104 { 104 {
105 #if !ENABLE(OILPAN) 105 #if !ENABLE(OILPAN)
106 fromInternalPointer(internalPointer)->deref(); 106 internalPointer->toImpl<TestInterfaceDocument>()->deref();
107 #endif 107 #endif
108 } 108 }
109 109
110 WrapperPersistentNode* V8TestInterfaceDocument::createPersistentHandle(ScriptWra ppableBase* internalPointer) 110 WrapperPersistentNode* V8TestInterfaceDocument::createPersistentHandle(ScriptWra ppableBase* internalPointer)
111 { 111 {
112 #if ENABLE(OILPAN) 112 #if ENABLE(OILPAN)
113 return new WrapperPersistent<TestInterfaceDocument>(fromInternalPointer(inte rnalPointer)); 113 return new WrapperPersistent<TestInterfaceDocument>(internalPointer->toImpl< TestInterfaceDocument>());
114 #else 114 #else
115 ASSERT_NOT_REACHED(); 115 ASSERT_NOT_REACHED();
116 return 0; 116 return 0;
117 #endif 117 #endif
118 } 118 }
119 119
120 template<> 120 template<>
121 v8::Handle<v8::Value> toV8NoInline(TestInterfaceDocument* impl, v8::Handle<v8::O bject> creationContext, v8::Isolate* isolate) 121 v8::Handle<v8::Value> toV8NoInline(TestInterfaceDocument* impl, v8::Handle<v8::O bject> creationContext, v8::Isolate* isolate)
122 { 122 {
123 return toV8(impl, creationContext, isolate); 123 return toV8(impl, creationContext, isolate);
124 } 124 }
125 125
126 } // namespace blink 126 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterfaceDocument.h ('k') | Source/bindings/tests/results/V8TestInterfaceEmpty.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698