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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceConstructor2.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 "V8TestInterfaceConstructor2.h" 8 #include "V8TestInterfaceConstructor2.h"
9 9
10 #include "bindings/core/v8/Dictionary.h" 10 #include "bindings/core/v8/Dictionary.h"
(...skipping 21 matching lines...) Expand all
32 32
33 void webCoreInitializeScriptWrappableForInterface(blink::TestInterfaceConstructo r2* object) 33 void webCoreInitializeScriptWrappableForInterface(blink::TestInterfaceConstructo r2* object)
34 { 34 {
35 blink::initializeScriptWrappableForInterface(object); 35 blink::initializeScriptWrappableForInterface(object);
36 } 36 }
37 37
38 namespace blink { 38 namespace blink {
39 39
40 const WrapperTypeInfo V8TestInterfaceConstructor2::wrapperTypeInfo = { gin::kEmb edderBlink, V8TestInterfaceConstructor2::domTemplate, V8TestInterfaceConstructor 2::refObject, V8TestInterfaceConstructor2::derefObject, V8TestInterfaceConstruct or2::createPersistentHandle, 0, 0, 0, V8TestInterfaceConstructor2::installCondit ionallyEnabledMethods, V8TestInterfaceConstructor2::installConditionallyEnabledP roperties, 0, WrapperTypeObjectPrototype, RefCountedObject }; 40 const WrapperTypeInfo V8TestInterfaceConstructor2::wrapperTypeInfo = { gin::kEmb edderBlink, V8TestInterfaceConstructor2::domTemplate, V8TestInterfaceConstructor 2::refObject, V8TestInterfaceConstructor2::derefObject, V8TestInterfaceConstruct or2::createPersistentHandle, 0, 0, 0, V8TestInterfaceConstructor2::installCondit ionallyEnabledMethods, V8TestInterfaceConstructor2::installConditionallyEnabledP roperties, 0, WrapperTypeObjectPrototype, RefCountedObject };
41 41
42 // The definition of TestInterfaceConstructor2's WrapperTypeInfo. If TestInterfa ceConstructor2 inherits
43 // from ScriptWrappable, you have to write DEFINE_WRAPPERTYPEINFO macro in the
44 // class definition. Otherwise, you have to write NotScriptWrappable in the IDL
45 // file as an extended attribute in order to let IDL compiler know that
46 // TestInterfaceConstructor2 doesn't inherit from ScriptWrappable. Note that
47 // NotScriptWrappable is inheritable.
48 const WrapperTypeInfo& TestInterfaceConstructor2::s_wrapperTypeInfo = V8TestInte rfaceConstructor2::wrapperTypeInfo;
49
42 namespace TestInterfaceConstructor2V8Internal { 50 namespace TestInterfaceConstructor2V8Internal {
43 51
44 template <typename T> void V8_USE(T) { } 52 template <typename T> void V8_USE(T) { }
45 53
46 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info) 54 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info)
47 { 55 {
48 V8StringResource<> stringArg; 56 V8StringResource<> stringArg;
49 { 57 {
50 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 58 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
51 } 59 }
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 return 0; 274 return 0;
267 } 275 }
268 276
269 template<> 277 template<>
270 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor2* impl, v8::Handle<v 8::Object> creationContext, v8::Isolate* isolate) 278 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor2* impl, v8::Handle<v 8::Object> creationContext, v8::Isolate* isolate)
271 { 279 {
272 return toV8(impl, creationContext, isolate); 280 return toV8(impl, creationContext, isolate);
273 } 281 }
274 282
275 } // namespace blink 283 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698