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

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

Issue 23450039: Pass isolate to ScriptValue constructor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove useless member Created 7 years, 3 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 This file is part of the Blink open source project. 2 This file is part of the Blink open source project.
3 This file has been auto-generated by CodeGeneratorV8.pm. 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,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 template <typename T> void V8_USE(T) { } 62 template <typename T> void V8_USE(T) { }
63 63
64 static void methodMethod(const v8::FunctionCallbackInfo<v8::Value>& args) 64 static void methodMethod(const v8::FunctionCallbackInfo<v8::Value>& args)
65 { 65 {
66 if (UNLIKELY(args.Length() < 1)) { 66 if (UNLIKELY(args.Length() < 1)) {
67 throwNotEnoughArgumentsError(args.GetIsolate()); 67 throwNotEnoughArgumentsError(args.GetIsolate());
68 return; 68 return;
69 } 69 }
70 TestMediaQueryListListener* imp = V8TestMediaQueryListListener::toNative(arg s.Holder()); 70 TestMediaQueryListListener* imp = V8TestMediaQueryListListener::toNative(arg s.Holder());
71 V8TRYCATCH_VOID(RefPtr<MediaQueryListListener>, listener, MediaQueryListList ener::create(args[0])); 71 V8TRYCATCH_VOID(RefPtr<MediaQueryListListener>, listener, MediaQueryListList ener::create(ScriptValue(args[0], args.GetIsolate())));
72 imp->method(listener); 72 imp->method(listener);
73 73
74 return; 74 return;
75 } 75 }
76 76
77 static void methodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args ) 77 static void methodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args )
78 { 78 {
79 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 79 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
80 TestMediaQueryListListenerV8Internal::methodMethod(args); 80 TestMediaQueryListListenerV8Internal::methodMethod(args);
81 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 81 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 V8DOMWrapper::associateObjectWithWrapper<V8TestMediaQueryListListener>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent); 152 V8DOMWrapper::associateObjectWithWrapper<V8TestMediaQueryListListener>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent);
153 return wrapper; 153 return wrapper;
154 } 154 }
155 155
156 void V8TestMediaQueryListListener::derefObject(void* object) 156 void V8TestMediaQueryListListener::derefObject(void* object)
157 { 157 {
158 fromInternalPointer(object)->deref(); 158 fromInternalPointer(object)->deref();
159 } 159 }
160 160
161 } // namespace WebCore 161 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698