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

Side by Side Diff: Source/bindings/tests/results/V8TestInterface.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 #if ENABLE(CONDITION) 8 #if ENABLE(CONDITION)
9 #include "V8TestInterface.h" 9 #include "V8TestInterface.h"
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 void webCoreInitializeScriptWrappableForInterface(blink::TestInterfaceImplementa tion* object) 44 void webCoreInitializeScriptWrappableForInterface(blink::TestInterfaceImplementa tion* object)
45 { 45 {
46 blink::initializeScriptWrappableForInterface(object); 46 blink::initializeScriptWrappableForInterface(object);
47 } 47 }
48 48
49 namespace blink { 49 namespace blink {
50 50
51 const WrapperTypeInfo V8TestInterface::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterface::domTemplate, V8TestInterface::refObject, V8TestInterface::deref Object, V8TestInterface::createPersistentHandle, V8TestInterface::toActiveDOMObj ect, 0, V8TestInterface::visitDOMWrapper, V8TestInterface::installConditionallyE nabledMethods, V8TestInterface::installConditionallyEnabledProperties, &V8TestIn terfaceEmpty::wrapperTypeInfo, WrapperTypeObjectPrototype, RefCountedObject }; 51 const WrapperTypeInfo V8TestInterface::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterface::domTemplate, V8TestInterface::refObject, V8TestInterface::deref Object, V8TestInterface::createPersistentHandle, V8TestInterface::toActiveDOMObj ect, 0, V8TestInterface::visitDOMWrapper, V8TestInterface::installConditionallyE nabledMethods, V8TestInterface::installConditionallyEnabledProperties, &V8TestIn terfaceEmpty::wrapperTypeInfo, WrapperTypeObjectPrototype, RefCountedObject };
52 52
53 // The definition of TestInterfaceImplementation's WrapperTypeInfo. If TestInter faceImplementation inherits
54 // from ScriptWrappable, you have to write DEFINE_WRAPPERTYPEINFO macro in the
55 // class definition. Otherwise, you have to write NotScriptWrappable in the IDL
56 // file as an extended attribute in order to let IDL compiler know that
57 // TestInterfaceImplementation doesn't inherit from ScriptWrappable. Note that
58 // NotScriptWrappable is inheritable.
59 const WrapperTypeInfo& TestInterfaceImplementation::s_wrapperTypeInfo = V8TestIn terface::wrapperTypeInfo;
60
53 namespace TestInterfaceImplementationV8Internal { 61 namespace TestInterfaceImplementationV8Internal {
54 62
55 template <typename T> void V8_USE(T) { } 63 template <typename T> void V8_USE(T) { }
56 64
57 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 65 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
58 { 66 {
59 v8::Handle<v8::Object> holder = info.Holder(); 67 v8::Handle<v8::Object> holder = info.Holder();
60 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 68 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder);
61 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl ); 69 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl );
62 } 70 }
(...skipping 1898 matching lines...) Expand 10 before | Expand all | Expand 10 after
1961 RELEASE_ASSERT_NOT_REACHED(); 1969 RELEASE_ASSERT_NOT_REACHED();
1962 } 1970 }
1963 block.ReThrow(); 1971 block.ReThrow();
1964 return false; 1972 return false;
1965 } 1973 }
1966 return true; 1974 return true;
1967 } 1975 }
1968 1976
1969 } // namespace blink 1977 } // namespace blink
1970 #endif // ENABLE(CONDITION) 1978 #endif // ENABLE(CONDITION)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698