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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.h

Issue 2045453002: Refactor WrapperTypeInfo.traceWrappers to WrapperTypeInfo.getHeader (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use nicer name Created 4 years, 6 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
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 #ifndef V8TestInterface5_h 7 #ifndef V8TestInterface5_h
8 #define V8TestInterface5_h 8 #define V8TestInterface5_h
9 9
10 #include "bindings/core/v8/DoubleOrString.h" 10 #include "bindings/core/v8/DoubleOrString.h"
(...skipping 15 matching lines...) Expand all
26 public: 26 public:
27 MODULES_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*); 27 MODULES_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*);
28 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Valu e>, v8::Isolate*); 28 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Valu e>, v8::Isolate*);
29 MODULES_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolat e*, const DOMWrapperWorld&); 29 MODULES_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolat e*, const DOMWrapperWorld&);
30 static TestInterface5Implementation* toImpl(v8::Local<v8::Object> object) 30 static TestInterface5Implementation* toImpl(v8::Local<v8::Object> object)
31 { 31 {
32 return toScriptWrappable(object)->toImpl<TestInterface5Implementation>() ; 32 return toScriptWrappable(object)->toImpl<TestInterface5Implementation>() ;
33 } 33 }
34 MODULES_EXPORT static TestInterface5Implementation* toImplWithTypeCheck(v8:: Isolate*, v8::Local<v8::Value>); 34 MODULES_EXPORT static TestInterface5Implementation* toImplWithTypeCheck(v8:: Isolate*, v8::Local<v8::Value>);
35 MODULES_EXPORT static const WrapperTypeInfo wrapperTypeInfo; 35 MODULES_EXPORT static const WrapperTypeInfo wrapperTypeInfo;
36 static void traceWrappers(WrapperVisitor* visitor, ScriptWrappable* scriptWr appable) 36 static HeapObjectHeader* getHeapObjectHeader(ScriptWrappable* scriptWrappabl e)
37 { 37 {
38 visitor->traceWrappers(scriptWrappable->toImpl<TestInterface5Implementat ion>()); 38 return HeapObjectHeader::fromPayload(scriptWrappable->toImpl<TestInterfa ce5Implementation>());
39 } 39 }
40 template<typename VisitorDispatcher> 40 template<typename VisitorDispatcher>
41 static void trace(VisitorDispatcher visitor, ScriptWrappable* scriptWrappabl e) 41 static void trace(VisitorDispatcher visitor, ScriptWrappable* scriptWrappabl e)
42 { 42 {
43 visitor->trace(scriptWrappable->toImpl<TestInterface5Implementation>()); 43 visitor->trace(scriptWrappable->toImpl<TestInterface5Implementation>());
44 } 44 }
45 static void visitDOMWrapper(v8::Isolate*, ScriptWrappable*, const v8::Persis tent<v8::Object>&); 45 static void visitDOMWrapper(v8::Isolate*, ScriptWrappable*, const v8::Persis tent<v8::Object>&);
46 static ActiveScriptWrappable* toActiveScriptWrappable(v8::Local<v8::Object>) ; 46 static ActiveScriptWrappable* toActiveScriptWrappable(v8::Local<v8::Object>) ;
47 static void legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>&); 47 static void legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>&);
48 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ; 48 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ;
49 MODULES_EXPORT static void preparePrototypeAndInterfaceObject(v8::Local<v8:: Context>, const DOMWrapperWorld&, v8::Local<v8::Object> prototypeObject, v8::Loc al<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTempl ate); 49 MODULES_EXPORT static void preparePrototypeAndInterfaceObject(v8::Local<v8:: Context>, const DOMWrapperWorld&, v8::Local<v8::Object> prototypeObject, v8::Loc al<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTempl ate);
50 }; 50 };
51 51
52 template <> 52 template <>
53 struct V8TypeOf<TestInterface5Implementation> { 53 struct V8TypeOf<TestInterface5Implementation> {
54 typedef V8TestInterface5 Type; 54 typedef V8TestInterface5 Type;
55 }; 55 };
56 56
57 } // namespace blink 57 } // namespace blink
58 58
59 #endif // V8TestInterface5_h 59 #endif // V8TestInterface5_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698