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

Side by Side Diff: Source/bindings/tests/results/V8TestNamedConstructor.cpp

Issue 14384004: Get rid of [Callback] extended attribute for parameters in IDL files (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix whitespace issue in generated bindings Created 7 years, 7 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 Blink open source project.
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY! 3 This file has been auto-generated by CodeGeneratorV8.pm. 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 #include "config.h" 21 #include "config.h"
22 #include "V8TestNamedConstructor.h" 22 #include "V8TestNamedConstructor.h"
23 23
24 #include "RuntimeEnabledFeatures.h"
24 #include "V8Document.h" 25 #include "V8Document.h"
26 #include "V8TestNamedConstructor.h"
25 #include "bindings/v8/BindingState.h" 27 #include "bindings/v8/BindingState.h"
26 #include "bindings/v8/ScriptController.h" 28 #include "bindings/v8/ScriptController.h"
27 #include "bindings/v8/V8Binding.h" 29 #include "bindings/v8/V8Binding.h"
28 #include "bindings/v8/V8DOMWrapper.h" 30 #include "bindings/v8/V8DOMWrapper.h"
29 #include "core/dom/ContextFeatures.h" 31 #include "core/dom/ContextFeatures.h"
30 #include "core/dom/ExceptionCode.h" 32 #include "core/dom/ExceptionCode.h"
31 #include "core/page/Frame.h" 33 #include "core/page/Frame.h"
32 #include "RuntimeEnabledFeatures.h"
33 #include <wtf/UnusedParam.h> 34 #include <wtf/UnusedParam.h>
34 35
35 #if ENABLE(BINDING_INTEGRITY) 36 #if ENABLE(BINDING_INTEGRITY)
36 #if defined(OS_WIN) 37 #if defined(OS_WIN)
37 #pragma warning(disable: 4483) 38 #pragma warning(disable: 4483)
38 extern "C" { extern void (*const __identifier("??_7TestNamedConstructor@WebCore@ @6B@")[])(); } 39 extern "C" { extern void (*const __identifier("??_7TestNamedConstructor@WebCore@ @6B@")[])(); }
39 #else 40 #else
40 extern "C" { extern void* _ZTVN7WebCore20TestNamedConstructorE[]; } 41 extern "C" { extern void* _ZTVN7WebCore20TestNamedConstructorE[]; }
41 #endif 42 #endif
42 #endif // ENABLE(BINDING_INTEGRITY) 43 #endif // ENABLE(BINDING_INTEGRITY)
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 namespace TestNamedConstructorV8Internal { 88 namespace TestNamedConstructorV8Internal {
88 89
89 template <typename T> void V8_USE(T) { } 90 template <typename T> void V8_USE(T) { }
90 91
91 } // namespace TestNamedConstructorV8Internal 92 } // namespace TestNamedConstructorV8Internal
92 93
93 WrapperTypeInfo V8TestNamedConstructorConstructor::info = { V8TestNamedConstruct orConstructor::GetTemplate, V8TestNamedConstructor::derefObject, V8TestNamedCons tructor::toActiveDOMObject, 0, 0, V8TestNamedConstructor::installPerContextProto typeProperties, 0, WrapperTypeObjectPrototype }; 94 WrapperTypeInfo V8TestNamedConstructorConstructor::info = { V8TestNamedConstruct orConstructor::GetTemplate, V8TestNamedConstructor::derefObject, V8TestNamedCons tructor::toActiveDOMObject, 0, 0, V8TestNamedConstructor::installPerContextProto typeProperties, 0, WrapperTypeObjectPrototype };
94 95
95 static v8::Handle<v8::Value> V8TestNamedConstructorConstructorCallback(const v8: :Arguments& args) 96 static v8::Handle<v8::Value> V8TestNamedConstructorConstructorCallback(const v8: :Arguments& args)
96 { 97 {
97
98
99 if (!args.IsConstructCall()) 98 if (!args.IsConstructCall())
100 return throwTypeError("DOM object constructor cannot be called as a func tion.", args.GetIsolate()); 99 return throwTypeError("DOM object constructor cannot be called as a func tion.", args.GetIsolate());
101 100
102 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) 101 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject)
103 return args.Holder(); 102 return args.Holder();
104 103
105 Document* document = currentDocument(BindingState::instance()); 104 Document* document = currentDocument(BindingState::instance());
106 105
107 // Make sure the document is added to the DOM Node map. Otherwise, the TestN amedConstructor instance 106 // Make sure the document is added to the DOM Node map. Otherwise, the TestN amedConstructor instance
108 // may end up being the only node in the map and get garbage-collected prema turely. 107 // may end up being the only node in the map and get garbage-collected prema turely.
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 installPerContextProperties(wrapper, impl.get(), isolate); 207 installPerContextProperties(wrapper, impl.get(), isolate);
209 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep endent); 208 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep endent);
210 return wrapper; 209 return wrapper;
211 } 210 }
212 void V8TestNamedConstructor::derefObject(void* object) 211 void V8TestNamedConstructor::derefObject(void* object)
213 { 212 {
214 static_cast<TestNamedConstructor*>(object)->deref(); 213 static_cast<TestNamedConstructor*>(object)->deref();
215 } 214 }
216 215
217 } // namespace WebCore 216 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestNamedConstructor.h ('k') | Source/bindings/tests/results/V8TestNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698