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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.h

Issue 1873323002: Have bindings layer assume and insist that all interface types are GCed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 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 V8TestObject_h 7 #ifndef V8TestObject_h
8 #define V8TestObject_h 8 #define V8TestObject_h
9 9
10 #include "bindings/core/v8/ScriptWrappable.h" 10 #include "bindings/core/v8/ScriptWrappable.h"
(...skipping 10 matching lines...) Expand all
21 class V8TestObject { 21 class V8TestObject {
22 STATIC_ONLY(V8TestObject); 22 STATIC_ONLY(V8TestObject);
23 public: 23 public:
24 class PrivateScript { 24 class PrivateScript {
25 STATIC_ONLY(PrivateScript); 25 STATIC_ONLY(PrivateScript);
26 public: 26 public:
27 static bool voidMethodImplementedInPrivateScriptMethod(LocalFrame* frame , TestObject* holderImpl); 27 static bool voidMethodImplementedInPrivateScriptMethod(LocalFrame* frame , TestObject* holderImpl);
28 static bool shortMethodImplementedInPrivateScriptMethod(LocalFrame* fram e, TestObject* holderImpl, int* result); 28 static bool shortMethodImplementedInPrivateScriptMethod(LocalFrame* fram e, TestObject* holderImpl, int* result);
29 static bool shortMethodWithShortArgumentImplementedInPrivateScriptMethod (LocalFrame* frame, TestObject* holderImpl, int value, int* result); 29 static bool shortMethodWithShortArgumentImplementedInPrivateScriptMethod (LocalFrame* frame, TestObject* holderImpl, int value, int* result);
30 static bool stringMethodWithStringArgumentImplementedInPrivateScriptMeth od(LocalFrame* frame, TestObject* holderImpl, String value, String* result); 30 static bool stringMethodWithStringArgumentImplementedInPrivateScriptMeth od(LocalFrame* frame, TestObject* holderImpl, String value, String* result);
31 static bool nodeMethodWithNodeArgumentImplementedInPrivateScriptMethod(L ocalFrame* frame, TestObject* holderImpl, Node* value, RawPtr<Node>* result); 31 static bool nodeMethodWithNodeArgumentImplementedInPrivateScriptMethod(L ocalFrame* frame, TestObject* holderImpl, Node* value, Node** result);
32 static bool nodeMethodWithVariousArgumentsImplementedInPrivateScriptMeth od(LocalFrame* frame, TestObject* holderImpl, Document* document, Node* node, in t value1, double value2, String string, RawPtr<Node>* result); 32 static bool nodeMethodWithVariousArgumentsImplementedInPrivateScriptMeth od(LocalFrame* frame, TestObject* holderImpl, Document* document, Node* node, in t value1, double value2, String string, Node** result);
33 static bool methodForPrivateScriptOnlyMethod(LocalFrame* frame, TestObje ct* holderImpl, int value1, int value2, int* result); 33 static bool methodForPrivateScriptOnlyMethod(LocalFrame* frame, TestObje ct* holderImpl, int value1, int value2, int* result);
34 static bool readonlyShortAttributeAttributeGetter(LocalFrame* frame, Tes tObject* holderImpl, int* result); 34 static bool readonlyShortAttributeAttributeGetter(LocalFrame* frame, Tes tObject* holderImpl, int* result);
35 static bool shortAttributeAttributeGetter(LocalFrame* frame, TestObject* holderImpl, int* result); 35 static bool shortAttributeAttributeGetter(LocalFrame* frame, TestObject* holderImpl, int* result);
36 static bool shortAttributeAttributeSetter(LocalFrame* frame, TestObject* holderImpl, int cppValue); 36 static bool shortAttributeAttributeSetter(LocalFrame* frame, TestObject* holderImpl, int cppValue);
37 static bool stringAttributeAttributeGetter(LocalFrame* frame, TestObject * holderImpl, String* result); 37 static bool stringAttributeAttributeGetter(LocalFrame* frame, TestObject * holderImpl, String* result);
38 static bool stringAttributeAttributeSetter(LocalFrame* frame, TestObject * holderImpl, String cppValue); 38 static bool stringAttributeAttributeSetter(LocalFrame* frame, TestObject * holderImpl, String cppValue);
39 static bool nodeAttributeAttributeGetter(LocalFrame* frame, TestObject* holderImpl, RawPtr<Node>* result); 39 static bool nodeAttributeAttributeGetter(LocalFrame* frame, TestObject* holderImpl, Node** result);
40 static bool nodeAttributeAttributeSetter(LocalFrame* frame, TestObject* holderImpl, Node* cppValue); 40 static bool nodeAttributeAttributeSetter(LocalFrame* frame, TestObject* holderImpl, Node* cppValue);
41 static bool attributeForPrivateScriptOnlyAttributeGetter(LocalFrame* fra me, TestObject* holderImpl, String* result); 41 static bool attributeForPrivateScriptOnlyAttributeGetter(LocalFrame* fra me, TestObject* holderImpl, String* result);
42 static bool attributeForPrivateScriptOnlyAttributeSetter(LocalFrame* fra me, TestObject* holderImpl, String cppValue); 42 static bool attributeForPrivateScriptOnlyAttributeSetter(LocalFrame* fra me, TestObject* holderImpl, String cppValue);
43 static bool enumForPrivateScriptAttributeGetter(LocalFrame* frame, TestO bject* holderImpl, String* result); 43 static bool enumForPrivateScriptAttributeGetter(LocalFrame* frame, TestO bject* holderImpl, String* result);
44 static bool enumForPrivateScriptAttributeSetter(LocalFrame* frame, TestO bject* holderImpl, String cppValue); 44 static bool enumForPrivateScriptAttributeSetter(LocalFrame* frame, TestO bject* holderImpl, String cppValue);
45 }; 45 };
46 46
47 CORE_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*); 47 CORE_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*);
48 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Valu e>, v8::Isolate*); 48 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Valu e>, v8::Isolate*);
49 CORE_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*) ; 49 CORE_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*) ;
50 static TestObject* toImpl(v8::Local<v8::Object> object) 50 static TestObject* toImpl(v8::Local<v8::Object> object)
51 { 51 {
52 return toScriptWrappable(object)->toImpl<TestObject>(); 52 return toScriptWrappable(object)->toImpl<TestObject>();
53 } 53 }
54 CORE_EXPORT static TestObject* toImplWithTypeCheck(v8::Isolate*, v8::Local<v 8::Value>); 54 CORE_EXPORT static TestObject* toImplWithTypeCheck(v8::Isolate*, v8::Local<v 8::Value>);
55 CORE_EXPORT static const WrapperTypeInfo wrapperTypeInfo; 55 CORE_EXPORT static const WrapperTypeInfo wrapperTypeInfo;
56 static void refObject(ScriptWrappable*);
57 static void derefObject(ScriptWrappable*);
58 template<typename VisitorDispatcher> 56 template<typename VisitorDispatcher>
59 static void trace(VisitorDispatcher visitor, ScriptWrappable* scriptWrappabl e) 57 static void trace(VisitorDispatcher visitor, ScriptWrappable* scriptWrappabl e)
60 { 58 {
59 visitor->trace(scriptWrappable->toImpl<TestObject>());
61 } 60 }
62 static void customVoidMethodMethodCustom(const v8::FunctionCallbackInfo<v8:: Value>&); 61 static void customVoidMethodMethodCustom(const v8::FunctionCallbackInfo<v8:: Value>&);
63 static void customCallPrologueVoidMethodMethodPrologueCustom(const v8::Funct ionCallbackInfo<v8::Value>&, TestObject*); 62 static void customCallPrologueVoidMethodMethodPrologueCustom(const v8::Funct ionCallbackInfo<v8::Value>&, TestObject*);
64 static void customCallEpilogueVoidMethodMethodEpilogueCustom(const v8::Funct ionCallbackInfo<v8::Value>&, TestObject*); 63 static void customCallEpilogueVoidMethodMethodEpilogueCustom(const v8::Funct ionCallbackInfo<v8::Value>&, TestObject*);
65 static void customObjectAttributeAttributeGetterCustom(const v8::FunctionCal lbackInfo<v8::Value>&); 64 static void customObjectAttributeAttributeGetterCustom(const v8::FunctionCal lbackInfo<v8::Value>&);
66 static void customObjectAttributeAttributeSetterCustom(v8::Local<v8::Value>, const v8::FunctionCallbackInfo<v8::Value>&); 65 static void customObjectAttributeAttributeSetterCustom(v8::Local<v8::Value>, const v8::FunctionCallbackInfo<v8::Value>&);
67 static void customGetterLongAttributeAttributeGetterCustom(const v8::Functio nCallbackInfo<v8::Value>&); 66 static void customGetterLongAttributeAttributeGetterCustom(const v8::Functio nCallbackInfo<v8::Value>&);
68 static void customGetterReadonlyObjectAttributeAttributeGetterCustom(const v 8::FunctionCallbackInfo<v8::Value>&); 67 static void customGetterReadonlyObjectAttributeAttributeGetterCustom(const v 8::FunctionCallbackInfo<v8::Value>&);
69 static void customSetterLongAttributeAttributeSetterCustom(v8::Local<v8::Val ue>, const v8::FunctionCallbackInfo<v8::Value>&); 68 static void customSetterLongAttributeAttributeSetterCustom(v8::Local<v8::Val ue>, const v8::FunctionCallbackInfo<v8::Value>&);
70 static void customImplementedAsLongAttributeAttributeGetterCustom(const v8:: FunctionCallbackInfo<v8::Value>&); 69 static void customImplementedAsLongAttributeAttributeGetterCustom(const v8:: FunctionCallbackInfo<v8::Value>&);
71 static void customImplementedAsLongAttributeAttributeSetterCustom(v8::Local< v8::Value>, const v8::FunctionCallbackInfo<v8::Value>&); 70 static void customImplementedAsLongAttributeAttributeSetterCustom(v8::Local< v8::Value>, const v8::FunctionCallbackInfo<v8::Value>&);
72 static void customGetterImplementedAsLongAttributeAttributeGetterCustom(cons t v8::FunctionCallbackInfo<v8::Value>&); 71 static void customGetterImplementedAsLongAttributeAttributeGetterCustom(cons t v8::FunctionCallbackInfo<v8::Value>&);
73 static void customSetterImplementedAsLongAttributeAttributeSetterCustom(v8:: Local<v8::Value>, const v8::FunctionCallbackInfo<v8::Value>&); 72 static void customSetterImplementedAsLongAttributeAttributeSetterCustom(v8:: Local<v8::Value>, const v8::FunctionCallbackInfo<v8::Value>&);
74 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ; 73 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ;
75 static void installConditionallyEnabledProperties(v8::Local<v8::Object>, v8: :Isolate*) { } 74 static void installConditionallyEnabledProperties(v8::Local<v8::Object>, v8: :Isolate*) { }
76 static void preparePrototypeAndInterfaceObject(v8::Local<v8::Context>, v8::L ocal<v8::Object> prototypeObject, v8::Local<v8::Function> interfaceObject, v8::L ocal<v8::FunctionTemplate> interfaceTemplate); 75 static void preparePrototypeAndInterfaceObject(v8::Local<v8::Context>, v8::L ocal<v8::Object> prototypeObject, v8::Local<v8::Function> interfaceObject, v8::L ocal<v8::FunctionTemplate> interfaceTemplate);
77 }; 76 };
78 77
79 template <> 78 template <>
80 struct V8TypeOf<TestObject> { 79 struct V8TypeOf<TestObject> {
81 typedef V8TestObject Type; 80 typedef V8TestObject Type;
82 }; 81 };
83 82
84 } // namespace blink 83 } // namespace blink
85 84
86 #endif // V8TestObject_h 85 #endif // V8TestObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698