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

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

Issue 48003002: IDL compiler: remove blank line for void methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 1 month 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 return; 95 return;
96 } 96 }
97 TestActiveDOMObject* imp = V8TestActiveDOMObject::toNative(args.Holder()); 97 TestActiveDOMObject* imp = V8TestActiveDOMObject::toNative(args.Holder());
98 ExceptionState es(args.GetIsolate()); 98 ExceptionState es(args.GetIsolate());
99 if (!BindingSecurity::shouldAllowAccessToFrame(imp->frame(), es)) { 99 if (!BindingSecurity::shouldAllowAccessToFrame(imp->frame(), es)) {
100 es.throwIfNeeded(); 100 es.throwIfNeeded();
101 return; 101 return;
102 } 102 }
103 V8TRYCATCH_VOID(Node*, nextChild, V8Node::HasInstance(args[0], args.GetIsola te(), worldType(args.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::C ast(args[0])) : 0); 103 V8TRYCATCH_VOID(Node*, nextChild, V8Node::HasInstance(args[0], args.GetIsola te(), worldType(args.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::C ast(args[0])) : 0);
104 imp->excitingFunction(nextChild); 104 imp->excitingFunction(nextChild);
105
106 return; 105 return;
107 } 106 }
108 107
109 static void excitingFunctionMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& args) 108 static void excitingFunctionMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& args)
110 { 109 {
111 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 110 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
112 TestActiveDOMObjectV8Internal::excitingFunctionMethod(args); 111 TestActiveDOMObjectV8Internal::excitingFunctionMethod(args);
113 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 112 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
114 } 113 }
115 114
116 static void postMessageMethod(const v8::FunctionCallbackInfo<v8::Value>& args) 115 static void postMessageMethod(const v8::FunctionCallbackInfo<v8::Value>& args)
117 { 116 {
118 if (UNLIKELY(args.Length() < 1)) { 117 if (UNLIKELY(args.Length() < 1)) {
119 throwTypeError(ExceptionMessages::failedToExecute("postMessage", "TestAc tiveDOMObject", ExceptionMessages::notEnoughArguments(1, args.Length())), args.G etIsolate()); 118 throwTypeError(ExceptionMessages::failedToExecute("postMessage", "TestAc tiveDOMObject", ExceptionMessages::notEnoughArguments(1, args.Length())), args.G etIsolate());
120 return; 119 return;
121 } 120 }
122 TestActiveDOMObject* imp = V8TestActiveDOMObject::toNative(args.Holder()); 121 TestActiveDOMObject* imp = V8TestActiveDOMObject::toNative(args.Holder());
123 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, message, args[0]); 122 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, message, args[0]);
124 imp->postMessage(message); 123 imp->postMessage(message);
125
126 return; 124 return;
127 } 125 }
128 126
129 static void postMessageMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args) 127 static void postMessageMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args)
130 { 128 {
131 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 129 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
132 TestActiveDOMObjectV8Internal::postMessageMethod(args); 130 TestActiveDOMObjectV8Internal::postMessageMethod(args);
133 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 131 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
134 } 132 }
135 133
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 V8DOMWrapper::associateObjectWithWrapper<V8TestActiveDOMObject>(impl, &wrapp erTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); 266 V8DOMWrapper::associateObjectWithWrapper<V8TestActiveDOMObject>(impl, &wrapp erTypeInfo, wrapper, isolate, WrapperConfiguration::Independent);
269 return wrapper; 267 return wrapper;
270 } 268 }
271 269
272 void V8TestActiveDOMObject::derefObject(void* object) 270 void V8TestActiveDOMObject::derefObject(void* object)
273 { 271 {
274 fromInternalPointer(object)->deref(); 272 fromInternalPointer(object)->deref();
275 } 273 }
276 274
277 } // namespace WebCore 275 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8SupportTestInterface.cpp ('k') | Source/bindings/tests/results/V8TestCustomAccessors.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698