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

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

Issue 832503002: [bindings] Eliminate remaining traces of Handle<> from the generated binding code. (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 "V8TestInterfaceNode.h" 8 #include "V8TestInterfaceNode.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 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 75 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
76 TestInterfaceNodeV8Internal::readonlyTestInterfaceEmptyAttributeAttributeGet ter(info); 76 TestInterfaceNodeV8Internal::readonlyTestInterfaceEmptyAttributeAttributeGet ter(info);
77 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 77 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
78 } 78 }
79 79
80 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 80 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
81 { 81 {
82 v8::Local<v8::Object> holder = info.Holder(); 82 v8::Local<v8::Object> holder = info.Holder();
83 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(holder); 83 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(holder);
84 EventListener* cppValue(impl->eventHandlerAttribute()); 84 EventListener* cppValue(impl->eventHandlerAttribute());
85 v8SetReturnValue(info, cppValue ? v8::Handle<v8::Value>(V8AbstractEventListe ner::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Handle<v 8::Value>(v8::Null(info.GetIsolate()))); 85 v8SetReturnValue(info, cppValue ? v8::Local<v8::Value>(V8AbstractEventListen er::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Local<v8: :Value>(v8::Null(info.GetIsolate())));
86 } 86 }
87 87
88 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 88 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
89 { 89 {
90 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 90 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
91 TestInterfaceNodeV8Internal::eventHandlerAttributeAttributeGetter(info); 91 TestInterfaceNodeV8Internal::eventHandlerAttributeAttributeGetter(info);
92 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 92 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
93 } 93 }
94 94
95 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 95 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 } 338 }
339 339
340 void V8TestInterfaceNode::derefObject(ScriptWrappable* scriptWrappable) 340 void V8TestInterfaceNode::derefObject(ScriptWrappable* scriptWrappable)
341 { 341 {
342 #if !ENABLE(OILPAN) 342 #if !ENABLE(OILPAN)
343 scriptWrappable->toImpl<TestInterfaceNode>()->deref(); 343 scriptWrappable->toImpl<TestInterfaceNode>()->deref();
344 #endif 344 #endif
345 } 345 }
346 346
347 } // namespace blink 347 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestInterface.cpp ('k') | Source/bindings/tests/results/core/V8TestObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698