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

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

Issue 819853002: [bindings] Translate all assignments in bindings/templates to use Local<> in place of Handle<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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 "V8TestSpecialOperations.h" 8 #include "V8TestSpecialOperations.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 } 125 }
126 126
127 static void namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& i nfo) 127 static void namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& i nfo)
128 { 128 {
129 TestSpecialOperations* impl = V8TestSpecialOperations::toImpl(info.Holder()) ; 129 TestSpecialOperations* impl = V8TestSpecialOperations::toImpl(info.Holder()) ;
130 Vector<String> names; 130 Vector<String> names;
131 ExceptionState exceptionState(ExceptionState::EnumerationContext, "TestSpeci alOperations", info.Holder(), info.GetIsolate()); 131 ExceptionState exceptionState(ExceptionState::EnumerationContext, "TestSpeci alOperations", info.Holder(), info.GetIsolate());
132 impl->namedPropertyEnumerator(names, exceptionState); 132 impl->namedPropertyEnumerator(names, exceptionState);
133 if (exceptionState.throwIfNeeded()) 133 if (exceptionState.throwIfNeeded())
134 return; 134 return;
135 v8::Handle<v8::Array> v8names = v8::Array::New(info.GetIsolate(), names.size ()); 135 v8::Local<v8::Array> v8names = v8::Array::New(info.GetIsolate(), names.size( ));
136 for (size_t i = 0; i < names.size(); ++i) 136 for (size_t i = 0; i < names.size(); ++i)
137 v8names->Set(v8::Integer::New(info.GetIsolate(), i), v8String(info.GetIs olate(), names[i])); 137 v8names->Set(v8::Integer::New(info.GetIsolate(), i), v8String(info.GetIs olate(), names[i]));
138 v8SetReturnValue(info, v8names); 138 v8SetReturnValue(info, v8names);
139 } 139 }
140 140
141 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A rray>& info) 141 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A rray>& info)
142 { 142 {
143 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); 143 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty");
144 TestSpecialOperationsV8Internal::namedPropertyEnumerator(info); 144 TestSpecialOperationsV8Internal::namedPropertyEnumerator(info);
145 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 145 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 { 194 {
195 scriptWrappable->toImpl<TestSpecialOperations>()->ref(); 195 scriptWrappable->toImpl<TestSpecialOperations>()->ref();
196 } 196 }
197 197
198 void V8TestSpecialOperations::derefObject(ScriptWrappable* scriptWrappable) 198 void V8TestSpecialOperations::derefObject(ScriptWrappable* scriptWrappable)
199 { 199 {
200 scriptWrappable->toImpl<TestSpecialOperations>()->deref(); 200 scriptWrappable->toImpl<TestSpecialOperations>()->deref();
201 } 201 }
202 202
203 } // namespace blink 203 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestObject.cpp ('k') | Source/bindings/tests/results/core/V8TestTypedefs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698