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

Side by Side Diff: Source/bindings/tests/results/V8TestException.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 "V8TestException.h" 8 #include "V8TestException.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 18 matching lines...) Expand all
29 29
30 void webCoreInitializeScriptWrappableForInterface(blink::TestException* object) 30 void webCoreInitializeScriptWrappableForInterface(blink::TestException* object)
31 { 31 {
32 blink::initializeScriptWrappableForInterface(object); 32 blink::initializeScriptWrappableForInterface(object);
33 } 33 }
34 34
35 namespace blink { 35 namespace blink {
36 36
37 const WrapperTypeInfo V8TestException::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestException::domTemplate, V8TestException::refObject, V8TestException::deref Object, V8TestException::createPersistentHandle, 0, 0, 0, V8TestException::insta llConditionallyEnabledMethods, V8TestException::installConditionallyEnabledPrope rties, 0, WrapperTypeExceptionPrototype, RefCountedObject }; 37 const WrapperTypeInfo V8TestException::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestException::domTemplate, V8TestException::refObject, V8TestException::deref Object, V8TestException::createPersistentHandle, 0, 0, 0, V8TestException::insta llConditionallyEnabledMethods, V8TestException::installConditionallyEnabledPrope rties, 0, WrapperTypeExceptionPrototype, RefCountedObject };
38 38
39 // The definition of TestException's WrapperTypeInfo. If TestException inherits
40 // from ScriptWrappable, you have to write DEFINE_WRAPPERTYPEINFO macro in the
41 // class definition. Otherwise, you have to write NotScriptWrappable in the IDL
42 // file as an extended attribute in order to let IDL compiler know that
43 // TestException doesn't inherit from ScriptWrappable. Note that
44 // NotScriptWrappable is inheritable.
45 const WrapperTypeInfo& TestException::s_wrapperTypeInfo = V8TestException::wrapp erTypeInfo;
46
39 namespace TestExceptionV8Internal { 47 namespace TestExceptionV8Internal {
40 48
41 template <typename T> void V8_USE(T) { } 49 template <typename T> void V8_USE(T) { }
42 50
43 static void readonlyUnsignedShortAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info) 51 static void readonlyUnsignedShortAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info)
44 { 52 {
45 v8::Handle<v8::Object> holder = info.Holder(); 53 v8::Handle<v8::Object> holder = info.Holder();
46 TestException* impl = V8TestException::toNative(holder); 54 TestException* impl = V8TestException::toNative(holder);
47 v8SetReturnValueUnsigned(info, impl->readonlyUnsignedShortAttribute()); 55 v8SetReturnValueUnsigned(info, impl->readonlyUnsignedShortAttribute());
48 } 56 }
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 return 0; 183 return 0;
176 } 184 }
177 185
178 template<> 186 template<>
179 v8::Handle<v8::Value> toV8NoInline(TestException* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate) 187 v8::Handle<v8::Value> toV8NoInline(TestException* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate)
180 { 188 {
181 return toV8(impl, creationContext, isolate); 189 return toV8(impl, creationContext, isolate);
182 } 190 }
183 191
184 } // namespace blink 192 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698