Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "V8SVGTestInterface.h" | 8 #include "V8SVGTestInterface.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 31 | 31 |
| 32 void webCoreInitializeScriptWrappableForInterface(blink::SVGTestInterface* objec t) | 32 void webCoreInitializeScriptWrappableForInterface(blink::SVGTestInterface* objec t) |
| 33 { | 33 { |
| 34 blink::initializeScriptWrappableForInterface(object); | 34 blink::initializeScriptWrappableForInterface(object); |
| 35 } | 35 } |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 const WrapperTypeInfo V8SVGTestInterface::wrapperTypeInfo = { gin::kEmbedderBlin k, V8SVGTestInterface::domTemplate, V8SVGTestInterface::refObject, V8SVGTestInte rface::derefObject, V8SVGTestInterface::createPersistentHandle, 0, 0, 0, V8SVGTe stInterface::installConditionallyEnabledMethods, V8SVGTestInterface::installCond itionallyEnabledProperties, 0, WrapperTypeObjectPrototype, RefCountedObject }; | 39 const WrapperTypeInfo V8SVGTestInterface::wrapperTypeInfo = { gin::kEmbedderBlin k, V8SVGTestInterface::domTemplate, V8SVGTestInterface::refObject, V8SVGTestInte rface::derefObject, V8SVGTestInterface::createPersistentHandle, 0, 0, 0, V8SVGTe stInterface::installConditionallyEnabledMethods, V8SVGTestInterface::installCond itionallyEnabledProperties, 0, WrapperTypeObjectPrototype, RefCountedObject }; |
| 40 | 40 |
| 41 // The definition of SVGTestInterface's WrapperTypeInfo. If SVGTestInterface inh erits | |
| 42 // from ScriptWrappable, you have to write DEFINE_WRAPPERTYPEINFO macro in the | |
| 43 // class definition. Otherwise, you have to write NotScriptWrappable in the IDL | |
| 44 // file as an extended attribute in order to let IDL compiler know that | |
| 45 // SVGTestInterface doesn't inherit from ScriptWrappable. Note that | |
| 46 // NotScriptWrappable is inheritable. | |
|
haraken
2014/08/29 05:24:04
It's a bit redundant to generate this comment in a
Yuki
2014/09/01 06:06:39
Done.
| |
| 47 const WrapperTypeInfo& SVGTestInterface::s_wrapperTypeInfo = V8SVGTestInterface: :wrapperTypeInfo; | |
| 48 | |
| 41 namespace SVGTestInterfaceV8Internal { | 49 namespace SVGTestInterfaceV8Internal { |
| 42 | 50 |
| 43 template <typename T> void V8_USE(T) { } | 51 template <typename T> void V8_USE(T) { } |
| 44 | 52 |
| 45 static void typeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 53 static void typeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 46 { | 54 { |
| 47 v8::Handle<v8::Object> holder = info.Holder(); | 55 v8::Handle<v8::Object> holder = info.Holder(); |
| 48 SVGTestInterface* impl = V8SVGTestInterface::toNative(holder); | 56 SVGTestInterface* impl = V8SVGTestInterface::toNative(holder); |
| 49 v8SetReturnValueString(info, impl->fastGetAttribute(SVGNames::typeAttr), inf o.GetIsolate()); | 57 v8SetReturnValueString(info, impl->fastGetAttribute(SVGNames::typeAttr), inf o.GetIsolate()); |
| 50 } | 58 } |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 158 return 0; | 166 return 0; |
| 159 } | 167 } |
| 160 | 168 |
| 161 template<> | 169 template<> |
| 162 v8::Handle<v8::Value> toV8NoInline(SVGTestInterface* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate) | 170 v8::Handle<v8::Value> toV8NoInline(SVGTestInterface* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate) |
| 163 { | 171 { |
| 164 return toV8(impl, creationContext, isolate); | 172 return toV8(impl, creationContext, isolate); |
| 165 } | 173 } |
| 166 | 174 |
| 167 } // namespace blink | 175 } // namespace blink |
| OLD | NEW |