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

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

Issue 109943003: IDL compiler: [ConstructorCallWith] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add FIXME 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/idls/TestInterfaceConstructor.idl ('k') | Source/core/dom/Comment.idl » ('j') | 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 namespace WebCore { 70 namespace WebCore {
71 const WrapperTypeInfo V8TestInterfaceConstructor::wrapperTypeInfo = { gin::kEmbe dderBlink, V8TestInterfaceConstructor::GetTemplate, V8TestInterfaceConstructor:: derefObject, 0, 0, 0, V8TestInterfaceConstructor::installPerContextEnabledMethod s, 0, WrapperTypeObjectPrototype }; 71 const WrapperTypeInfo V8TestInterfaceConstructor::wrapperTypeInfo = { gin::kEmbe dderBlink, V8TestInterfaceConstructor::GetTemplate, V8TestInterfaceConstructor:: derefObject, 0, 0, 0, V8TestInterfaceConstructor::installPerContextEnabledMethod s, 0, WrapperTypeObjectPrototype };
72 72
73 namespace TestInterfaceConstructorV8Internal { 73 namespace TestInterfaceConstructorV8Internal {
74 74
75 template <typename T> void V8_USE(T) { } 75 template <typename T> void V8_USE(T) { }
76 76
77 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) 77 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
78 { 78 {
79 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); 79 ExceptionState exceptionState(info.Holder(), info.GetIsolate());
80 RefPtr<TestInterfaceConstructor> impl = TestInterfaceConstructor::create(exc eptionState); 80 ExecutionContext* context = getExecutionContext();
81 Document& document = *toDocument(getExecutionContext());
82 RefPtr<TestInterfaceConstructor> impl = TestInterfaceConstructor::create(con text, document, exceptionState);
81 v8::Handle<v8::Object> wrapper = info.Holder(); 83 v8::Handle<v8::Object> wrapper = info.Holder();
82 if (exceptionState.throwIfNeeded()) 84 if (exceptionState.throwIfNeeded())
83 return; 85 return;
84 86
85 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor>(impl.re lease(), &V8TestInterfaceConstructor::wrapperTypeInfo, wrapper, info.GetIsolate( ), WrapperConfiguration::Dependent); 87 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor>(impl.re lease(), &V8TestInterfaceConstructor::wrapperTypeInfo, wrapper, info.GetIsolate( ), WrapperConfiguration::Dependent);
86 v8SetReturnValue(info, wrapper); 88 v8SetReturnValue(info, wrapper);
87 } 89 }
88 90
89 } // namespace TestInterfaceConstructorV8Internal 91 } // namespace TestInterfaceConstructorV8Internal
90 92
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 fromInternalPointer(object)->deref(); 182 fromInternalPointer(object)->deref();
181 } 183 }
182 184
183 template<> 185 template<>
184 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8 ::Object> creationContext, v8::Isolate* isolate) 186 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8 ::Object> creationContext, v8::Isolate* isolate)
185 { 187 {
186 return toV8(impl, creationContext, isolate); 188 return toV8(impl, creationContext, isolate);
187 } 189 }
188 190
189 } // namespace WebCore 191 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/TestInterfaceConstructor.idl ('k') | Source/core/dom/Comment.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698