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

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

Issue 2647643002: Fix V8 bindings for named constructors to set prototype object correctly (Closed)
Patch Set: Rebase Created 3 years, 9 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. 5 // This file has been auto-generated by code_generator_v8.py.
6 // DO NOT MODIFY! 6 // DO NOT MODIFY!
7 7
8 // This file has been generated from the Jinja2 template in 8 // This file has been generated from the Jinja2 template in
9 // third_party/WebKit/Source/bindings/templates/interface.h.tmpl 9 // third_party/WebKit/Source/bindings/templates/interface.h.tmpl
10 10
(...skipping 12 matching lines...) Expand all
23 #include "bindings/tests/idls/core/TestInterfaceConstructor.h" 23 #include "bindings/tests/idls/core/TestInterfaceConstructor.h"
24 #include "core/CoreExport.h" 24 #include "core/CoreExport.h"
25 #include "platform/heap/Handle.h" 25 #include "platform/heap/Handle.h"
26 26
27 namespace blink { 27 namespace blink {
28 28
29 class V8TestInterfaceConstructorConstructor { 29 class V8TestInterfaceConstructorConstructor {
30 STATIC_ONLY(V8TestInterfaceConstructorConstructor); 30 STATIC_ONLY(V8TestInterfaceConstructorConstructor);
31 public: 31 public:
32 static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*, const DOMWrap perWorld&); 32 static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*, const DOMWrap perWorld&);
33 static void NamedConstructorAttributeGetter(v8::Local<v8::Name> propertyName, const v8::PropertyCallbackInfo<v8::Value>& info);
33 CORE_EXPORT static const WrapperTypeInfo wrapperTypeInfo; 34 CORE_EXPORT static const WrapperTypeInfo wrapperTypeInfo;
34 }; 35 };
35 36
36 class V8TestInterfaceConstructor { 37 class V8TestInterfaceConstructor {
37 STATIC_ONLY(V8TestInterfaceConstructor); 38 STATIC_ONLY(V8TestInterfaceConstructor);
38 public: 39 public:
39 CORE_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*); 40 CORE_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*);
40 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Value> , v8::Isolate*); 41 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Value> , v8::Isolate*);
41 CORE_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*, c onst DOMWrapperWorld&); 42 CORE_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*, c onst DOMWrapperWorld&);
42 static TestInterfaceConstructor* toImpl(v8::Local<v8::Object> object) { 43 static TestInterfaceConstructor* toImpl(v8::Local<v8::Object> object) {
(...skipping 19 matching lines...) Expand all
62 }; 63 };
63 64
64 template <> 65 template <>
65 struct V8TypeOf<TestInterfaceConstructor> { 66 struct V8TypeOf<TestInterfaceConstructor> {
66 typedef V8TestInterfaceConstructor Type; 67 typedef V8TestInterfaceConstructor Type;
67 }; 68 };
68 69
69 } // namespace blink 70 } // namespace blink
70 71
71 #endif // V8TestInterfaceConstructor_h 72 #endif // V8TestInterfaceConstructor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698