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

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

Issue 116153002: IDL compiler: [NamedConstructor] (basic) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revised Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/tests/results/V8TestInterfaceNamedConstructor.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 16 matching lines...) Expand all
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 // This file has been auto-generated by code_generator_v8.pm. DO NOT MODIFY! 31 // This file has been auto-generated by code_generator_v8.pm. DO NOT MODIFY!
32 32
33 #include "config.h" 33 #include "config.h"
34 #include "V8TestNamedConstructor.h" 34 #include "V8TestNamedConstructor.h"
35 35
36 #include "RuntimeEnabledFeatures.h" 36 #include "RuntimeEnabledFeatures.h"
37 #include "V8Document.h"
38 #include "bindings/v8/ExceptionState.h" 37 #include "bindings/v8/ExceptionState.h"
39 #include "bindings/v8/V8DOMConfiguration.h" 38 #include "bindings/v8/V8DOMConfiguration.h"
40 #include "bindings/v8/V8ObjectConstructor.h" 39 #include "bindings/v8/V8ObjectConstructor.h"
41 #include "core/dom/ContextFeatures.h" 40 #include "core/dom/ContextFeatures.h"
42 #include "core/dom/Document.h" 41 #include "core/dom/Document.h"
43 #include "platform/TraceEvent.h" 42 #include "platform/TraceEvent.h"
44 43
45 namespace WebCore { 44 namespace WebCore {
46 45
47 static void initializeScriptWrappableForInterface(TestNamedConstructor* object) 46 static void initializeScriptWrappableForInterface(TestNamedConstructor* object)
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 94
96 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestName dConstructor", info.Holder(), info.GetIsolate()); 95 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestName dConstructor", info.Holder(), info.GetIsolate());
97 if (UNLIKELY(info.Length() < 1)) { 96 if (UNLIKELY(info.Length() < 1)) {
98 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 97 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
99 exceptionState.throwIfNeeded(); 98 exceptionState.throwIfNeeded();
100 return; 99 return;
101 } 100 }
102 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str1, info[0]); 101 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str1, info[0]);
103 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str2, info[1]); 102 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str2, info[1]);
104 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str3, argumentOrNul l(info, 2)); 103 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str3, argumentOrNul l(info, 2));
105
106 RefPtr<TestNamedConstructor> impl = TestNamedConstructor::createForJSConstru ctor(*document, str1, str2, str3, exceptionState); 104 RefPtr<TestNamedConstructor> impl = TestNamedConstructor::createForJSConstru ctor(*document, str1, str2, str3, exceptionState);
107 v8::Handle<v8::Object> wrapper = info.Holder(); 105 v8::Handle<v8::Object> wrapper = info.Holder();
108 if (exceptionState.throwIfNeeded()) 106 if (exceptionState.throwIfNeeded())
109 return; 107 return;
110 108
111 V8DOMWrapper::associateObjectWithWrapper<V8TestNamedConstructor>(impl.releas e(), &V8TestNamedConstructorConstructor::wrapperTypeInfo, wrapper, info.GetIsola te(), WrapperConfiguration::Dependent); 109 V8DOMWrapper::associateObjectWithWrapper<V8TestNamedConstructor>(impl.releas e(), &V8TestNamedConstructorConstructor::wrapperTypeInfo, wrapper, info.GetIsola te(), WrapperConfiguration::Dependent);
112 v8SetReturnValue(info, wrapper); 110 v8SetReturnValue(info, wrapper);
113 } 111 }
114 112
115 v8::Handle<v8::FunctionTemplate> V8TestNamedConstructorConstructor::domTemplate( v8::Isolate* isolate, WrapperWorldType currentWorldType) 113 v8::Handle<v8::FunctionTemplate> V8TestNamedConstructorConstructor::domTemplate( v8::Isolate* isolate, WrapperWorldType currentWorldType)
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 fromInternalPointer(object)->deref(); 207 fromInternalPointer(object)->deref();
210 } 208 }
211 209
212 template<> 210 template<>
213 v8::Handle<v8::Value> toV8NoInline(TestNamedConstructor* impl, v8::Handle<v8::Ob ject> creationContext, v8::Isolate* isolate) 211 v8::Handle<v8::Value> toV8NoInline(TestNamedConstructor* impl, v8::Handle<v8::Ob ject> creationContext, v8::Isolate* isolate)
214 { 212 {
215 return toV8(impl, creationContext, isolate); 213 return toV8(impl, creationContext, isolate);
216 } 214 }
217 215
218 } // namespace WebCore 216 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterfaceNamedConstructor.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698