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

Side by Side Diff: Source/bindings/tests/results/V8TestInterface.h

Issue 14070022: add back TestPartialInterface bindings test (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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 /* 1 /*
2 This file is part of the WebKit open source project. 2 This file is part of the WebKit open source project.
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY! 3 This file has been generated by generate-bindings.pl. DO NOT MODIFY!
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details. 13 Library General Public License for more details.
14 14
15 You should have received a copy of the GNU Library General Public License 15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to 16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. 18 Boston, MA 02111-1307, USA.
19 */ 19 */
20 20
21 #ifndef V8TestInterface_h 21 #ifndef V8TestInterface_h
22 #define V8TestInterface_h 22 #define V8TestInterface_h
23 23
24 #if ENABLE(Condition11) || ENABLE(Condition12) 24 #if ENABLE(Condition1) || ENABLE(Condition2)
25 #include "TestInterface.h" 25 #include "TestInterface.h"
26 #include "V8Binding.h" 26 #include "V8Binding.h"
27 #include "V8DOMWrapper.h" 27 #include "V8DOMWrapper.h"
28 #include "WrapperTypeInfo.h" 28 #include "WrapperTypeInfo.h"
29 #include <v8.h> 29 #include <v8.h>
30 #include <wtf/HashMap.h> 30 #include <wtf/HashMap.h>
31 #include <wtf/text/StringHash.h> 31 #include <wtf/text/StringHash.h>
32 32
33 namespace WebCore { 33 namespace WebCore {
34 34
35 class V8TestInterface { 35 class V8TestInterface {
36 public: 36 public:
37 static const bool hasDependentLifetime = false; 37 static const bool hasDependentLifetime = true;
38 static bool HasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp e); 38 static bool HasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp e);
39 static bool HasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*); 39 static bool HasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*);
40 static v8::Persistent<v8::FunctionTemplate> GetTemplate(v8::Isolate*, Wrappe rWorldType); 40 static v8::Persistent<v8::FunctionTemplate> GetTemplate(v8::Isolate*, Wrappe rWorldType);
41 static TestInterface* toNative(v8::Handle<v8::Object> object) 41 static TestInterface* toNative(v8::Handle<v8::Object> object)
42 { 42 {
43 return reinterpret_cast<TestInterface*>(object->GetAlignedPointerFromInt ernalField(v8DOMWrapperObjectIndex)); 43 return reinterpret_cast<TestInterface*>(object->GetAlignedPointerFromInt ernalField(v8DOMWrapperObjectIndex));
44 } 44 }
45 static void derefObject(void*); 45 static void derefObject(void*);
46 static WrapperTypeInfo info; 46 static WrapperTypeInfo info;
47 static v8::Handle<v8::Value> supplementalMethod3MethodCustom(const v8::Argum ents&); 47 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>);
48 static v8::Handle<v8::Value> supplementalStr3AttrGetterCustom(v8::Local<v8:: String> name, const v8::AccessorInfo&); 48 static v8::Handle<v8::Value> constructorCallback(const v8::Arguments&);
49 static void supplementalStr3AttrSetterCustom(v8::Local<v8::String> name, v8: :Local<v8::Value>, const v8::AccessorInfo&); 49 static v8::Handle<v8::Value> namedPropertySetter(v8::Local<v8::String>, v8:: Local<v8::Value>, const v8::AccessorInfo&);
50 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ; 50 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ;
51 static void installPerContextProperties(v8::Handle<v8::Object>, TestInterfac e*, v8::Isolate*) { } 51 static void installPerContextProperties(v8::Handle<v8::Object>, TestInterfac e*, v8::Isolate*) { }
52 static void installPerContextPrototypeProperties(v8::Handle<v8::Object>, v8: :Isolate*) { } 52 static void installPerContextPrototypeProperties(v8::Handle<v8::Object>, v8: :Isolate*) { }
53 private: 53 private:
54 friend v8::Handle<v8::Object> wrap(TestInterface*, v8::Handle<v8::Object> cr eationContext, v8::Isolate*); 54 friend v8::Handle<v8::Object> wrap(TestInterface*, v8::Handle<v8::Object> cr eationContext, v8::Isolate*);
55 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestInterface>, v8::H andle<v8::Object> creationContext, v8::Isolate*); 55 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestInterface>, v8::H andle<v8::Object> creationContext, v8::Isolate*);
56 }; 56 };
57 57
58 template<> 58 template<>
59 class WrapperTypeTraits<TestInterface > { 59 class WrapperTypeTraits<TestInterface > {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 } 127 }
128 128
129 inline v8::Handle<v8::Value> toV8(PassRefPtr< TestInterface > impl, v8::Handle<v 8::Object> creationContext, v8::Isolate* isolate) 129 inline v8::Handle<v8::Value> toV8(PassRefPtr< TestInterface > impl, v8::Handle<v 8::Object> creationContext, v8::Isolate* isolate)
130 { 130 {
131 return toV8(impl.get(), creationContext, isolate); 131 return toV8(impl.get(), creationContext, isolate);
132 } 132 }
133 133
134 } 134 }
135 135
136 #endif // V8TestInterface_h 136 #endif // V8TestInterface_h
137 #endif // ENABLE(Condition11) || ENABLE(Condition12) 137 #endif // ENABLE(Condition1) || ENABLE(Condition2)
138 138
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/TestPartialInterface.idl ('k') | Source/bindings/tests/results/V8TestInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698