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

Side by Side Diff: Source/bindings/tests/results/core/V8TestInterfaceConstructor3.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 "V8TestInterfaceConstructor3.h" 8 #include "V8TestInterfaceConstructor3.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 23 matching lines...) Expand all
34 { 34 {
35 if (UNLIKELY(info.Length() < 1)) { 35 if (UNLIKELY(info.Length() < 1)) {
36 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or(info.GetIsolate(), "TestInterfaceConstructor3", 1, info.Length()), info.GetIs olate()); 36 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or(info.GetIsolate(), "TestInterfaceConstructor3", 1, info.Length()), info.GetIs olate());
37 return; 37 return;
38 } 38 }
39 V8StringResource<> stringArg; 39 V8StringResource<> stringArg;
40 { 40 {
41 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 41 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
42 } 42 }
43 RefPtr<TestInterfaceConstructor3> impl = TestInterfaceConstructor3::create(s tringArg); 43 RefPtr<TestInterfaceConstructor3> impl = TestInterfaceConstructor3::create(s tringArg);
44 v8::Handle<v8::Object> wrapper = info.Holder(); 44 v8::Local<v8::Object> wrapper = info.Holder();
45 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceConstructor3:: wrapperTypeInfo, wrapper); 45 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceConstructor3:: wrapperTypeInfo, wrapper);
46 v8SetReturnValue(info, wrapper); 46 v8SetReturnValue(info, wrapper);
47 } 47 }
48 48
49 } // namespace TestInterfaceConstructor3V8Internal 49 } // namespace TestInterfaceConstructor3V8Internal
50 50
51 void V8TestInterfaceConstructor3::constructorCallback(const v8::FunctionCallback Info<v8::Value>& info) 51 void V8TestInterfaceConstructor3::constructorCallback(const v8::FunctionCallback Info<v8::Value>& info)
52 { 52 {
53 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); 53 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor");
54 if (!info.IsConstructCall()) { 54 if (!info.IsConstructCall()) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 { 108 {
109 scriptWrappable->toImpl<TestInterfaceConstructor3>()->ref(); 109 scriptWrappable->toImpl<TestInterfaceConstructor3>()->ref();
110 } 110 }
111 111
112 void V8TestInterfaceConstructor3::derefObject(ScriptWrappable* scriptWrappable) 112 void V8TestInterfaceConstructor3::derefObject(ScriptWrappable* scriptWrappable)
113 { 113 {
114 scriptWrappable->toImpl<TestInterfaceConstructor3>()->deref(); 114 scriptWrappable->toImpl<TestInterfaceConstructor3>()->deref();
115 } 115 }
116 116
117 } // namespace blink 117 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698