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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced and sent out to the code review. 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 "V8TestTypedefs.h" 8 #include "V8TestTypedefs.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 22 matching lines...) Expand all
33 33
34 void webCoreInitializeScriptWrappableForInterface(blink::TestTypedefs* object) 34 void webCoreInitializeScriptWrappableForInterface(blink::TestTypedefs* object)
35 { 35 {
36 blink::initializeScriptWrappableForInterface(object); 36 blink::initializeScriptWrappableForInterface(object);
37 } 37 }
38 38
39 namespace blink { 39 namespace blink {
40 40
41 const WrapperTypeInfo V8TestTypedefs::wrapperTypeInfo = { gin::kEmbedderBlink, V 8TestTypedefs::domTemplate, V8TestTypedefs::refObject, V8TestTypedefs::derefObje ct, V8TestTypedefs::createPersistentHandle, 0, 0, 0, V8TestTypedefs::installCond itionallyEnabledMethods, V8TestTypedefs::installConditionallyEnabledProperties, 0, WrapperTypeObjectPrototype, RefCountedObject }; 41 const WrapperTypeInfo V8TestTypedefs::wrapperTypeInfo = { gin::kEmbedderBlink, V 8TestTypedefs::domTemplate, V8TestTypedefs::refObject, V8TestTypedefs::derefObje ct, V8TestTypedefs::createPersistentHandle, 0, 0, 0, V8TestTypedefs::installCond itionallyEnabledMethods, V8TestTypedefs::installConditionallyEnabledProperties, 0, WrapperTypeObjectPrototype, RefCountedObject };
42 42
43 // The definition of TestTypedefs's WrapperTypeInfo. If TestTypedefs inherits
44 // from ScriptWrappable, you have to write DEFINE_WRAPPERTYPEINFO macro in the
45 // class definition. Otherwise, you have to write NotScriptWrappable in the IDL
46 // file as an extended attribute in order to let IDL compiler know that
47 // TestTypedefs doesn't inherit from ScriptWrappable. Note that
48 // NotScriptWrappable is inheritable.
49 const WrapperTypeInfo& TestTypedefs::s_wrapperTypeInfo = V8TestTypedefs::wrapper TypeInfo;
50
43 namespace TestTypedefsV8Internal { 51 namespace TestTypedefsV8Internal {
44 52
45 template <typename T> void V8_USE(T) { } 53 template <typename T> void V8_USE(T) { }
46 54
47 static void uLongLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info) 55 static void uLongLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info)
48 { 56 {
49 v8::Handle<v8::Object> holder = info.Holder(); 57 v8::Handle<v8::Object> holder = info.Holder();
50 TestTypedefs* impl = V8TestTypedefs::toNative(holder); 58 TestTypedefs* impl = V8TestTypedefs::toNative(holder);
51 v8SetReturnValue(info, static_cast<double>(impl->uLongLongAttribute())); 59 v8SetReturnValue(info, static_cast<double>(impl->uLongLongAttribute()));
52 } 60 }
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 return 0; 424 return 0;
417 } 425 }
418 426
419 template<> 427 template<>
420 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr eationContext, v8::Isolate* isolate) 428 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr eationContext, v8::Isolate* isolate)
421 { 429 {
422 return toV8(impl, creationContext, isolate); 430 return toV8(impl, creationContext, isolate);
423 } 431 }
424 432
425 } // namespace blink 433 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698