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

Side by Side Diff: Source/bindings/tests/results/V8TestObject.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 "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 void webCoreInitializeScriptWrappableForInterface(blink::TestObject* object) 80 void webCoreInitializeScriptWrappableForInterface(blink::TestObject* object)
81 { 81 {
82 blink::initializeScriptWrappableForInterface(object); 82 blink::initializeScriptWrappableForInterface(object);
83 } 83 }
84 84
85 namespace blink { 85 namespace blink {
86 86
87 const WrapperTypeInfo V8TestObject::wrapperTypeInfo = { gin::kEmbedderBlink, V8T estObject::domTemplate, V8TestObject::refObject, V8TestObject::derefObject, V8Te stObject::createPersistentHandle, 0, 0, 0, V8TestObject::installConditionallyEna bledMethods, V8TestObject::installConditionallyEnabledProperties, 0, WrapperType ObjectPrototype, RefCountedObject }; 87 const WrapperTypeInfo V8TestObject::wrapperTypeInfo = { gin::kEmbedderBlink, V8T estObject::domTemplate, V8TestObject::refObject, V8TestObject::derefObject, V8Te stObject::createPersistentHandle, 0, 0, 0, V8TestObject::installConditionallyEna bledMethods, V8TestObject::installConditionallyEnabledProperties, 0, WrapperType ObjectPrototype, RefCountedObject };
88 88
89 // The definition of TestObject's WrapperTypeInfo. If TestObject inherits
90 // from ScriptWrappable, you have to write DEFINE_WRAPPERTYPEINFO macro in the
91 // class definition. Otherwise, you have to write NotScriptWrappable in the IDL
92 // file as an extended attribute in order to let IDL compiler know that
93 // TestObject doesn't inherit from ScriptWrappable. Note that
94 // NotScriptWrappable is inheritable.
95 const WrapperTypeInfo& TestObject::s_wrapperTypeInfo = V8TestObject::wrapperType Info;
96
89 namespace TestObjectV8Internal { 97 namespace TestObjectV8Internal {
90 98
91 template <typename T> void V8_USE(T) { } 99 template <typename T> void V8_USE(T) { }
92 100
93 static void stringifierAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 101 static void stringifierAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
94 { 102 {
95 v8::Handle<v8::Object> holder = info.Holder(); 103 v8::Handle<v8::Object> holder = info.Holder();
96 TestObject* impl = V8TestObject::toNative(holder); 104 TestObject* impl = V8TestObject::toNative(holder);
97 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate() ); 105 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate() );
98 } 106 }
(...skipping 11229 matching lines...) Expand 10 before | Expand all | Expand 10 after
11328 // FIXME: We should support more exceptions. 11336 // FIXME: We should support more exceptions.
11329 RELEASE_ASSERT_NOT_REACHED(); 11337 RELEASE_ASSERT_NOT_REACHED();
11330 } 11338 }
11331 block.ReThrow(); 11339 block.ReThrow();
11332 return false; 11340 return false;
11333 } 11341 }
11334 return true; 11342 return true;
11335 } 11343 }
11336 11344
11337 } // namespace blink 11345 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698