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

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

Issue 149803005: Remove isolated world parameters from event listener attributes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 181 static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
182 { 182 {
183 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 183 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
184 TestInterfaceV8Internal::implementsNodeAttributeAttributeSetter(jsValue, inf o); 184 TestInterfaceV8Internal::implementsNodeAttributeAttributeSetter(jsValue, inf o);
185 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 185 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
186 } 186 }
187 187
188 static void implementsEventHandlerAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info) 188 static void implementsEventHandlerAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info)
189 { 189 {
190 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 190 TestInterface* imp = V8TestInterface::toNative(info.Holder());
191 EventListener* jsValue = TestImplements::implementsEventHandlerAttribute(imp , isolatedWorldForIsolate(info.GetIsolate())); 191 EventListener* jsValue = TestImplements::implementsEventHandlerAttribute(imp );
192 v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListen er::cast(jsValue)->getListenerObject(imp->executionContext())) : v8::Handle<v8:: Value>(v8::Null(info.GetIsolate()))); 192 v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListen er::cast(jsValue)->getListenerObject(imp->executionContext())) : v8::Handle<v8:: Value>(v8::Null(info.GetIsolate())));
193 } 193 }
194 194
195 static void implementsEventHandlerAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info) 195 static void implementsEventHandlerAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info)
196 { 196 {
197 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 197 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
198 TestInterfaceV8Internal::implementsEventHandlerAttributeAttributeGetter(info ); 198 TestInterfaceV8Internal::implementsEventHandlerAttributeAttributeGetter(info );
199 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 199 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
200 } 200 }
201 201
202 static void implementsEventHandlerAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 202 static void implementsEventHandlerAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
203 { 203 {
204 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 204 TestInterface* imp = V8TestInterface::toNative(info.Holder());
205 moveEventListenerToNewWrapper(info.Holder(), TestImplements::implementsEvent HandlerAttribute(imp, isolatedWorldForIsolate(info.GetIsolate())), jsValue, V8Te stInterface::eventListenerCacheIndex, info.GetIsolate()); 205 moveEventListenerToNewWrapper(info.Holder(), TestImplements::implementsEvent HandlerAttribute(imp), jsValue, V8TestInterface::eventListenerCacheIndex, info.G etIsolate());
206 TestImplements::setImplementsEventHandlerAttribute(imp, V8EventListenerList: :getEventListener(jsValue, true, ListenerFindOrCreate), isolatedWorldForIsolate( info.GetIsolate())); 206 TestImplements::setImplementsEventHandlerAttribute(imp, V8EventListenerList: :getEventListener(jsValue, true, ListenerFindOrCreate));
207 } 207 }
208 208
209 static void implementsEventHandlerAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo) 209 static void implementsEventHandlerAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo)
210 { 210 {
211 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 211 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
212 TestInterfaceV8Internal::implementsEventHandlerAttributeAttributeSetter(jsVa lue, info); 212 TestInterfaceV8Internal::implementsEventHandlerAttributeAttributeSetter(jsVa lue, info);
213 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 213 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
214 } 214 }
215 215
216 static void implementsRuntimeEnabledNodeAttributeAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info) 216 static void implementsRuntimeEnabledNodeAttributeAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info)
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 } 880 }
881 881
882 template<> 882 template<>
883 v8::Handle<v8::Value> toV8NoInline(TestInterface* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate) 883 v8::Handle<v8::Value> toV8NoInline(TestInterface* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate)
884 { 884 {
885 return toV8(impl, creationContext, isolate); 885 return toV8(impl, creationContext, isolate);
886 } 886 }
887 887
888 } // namespace WebCore 888 } // namespace WebCore
889 #endif // ENABLE(Condition1) || ENABLE(Condition2) 889 #endif // ENABLE(Condition1) || ENABLE(Condition2)
OLDNEW
« no previous file with comments | « Source/bindings/scripts/code_generator_v8.pm ('k') | Source/bindings/tests/results/V8TestInterfaceNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698