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

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

Issue 789473002: Introduce [Exposed(Arguments)] in IDL code generator. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « Source/bindings/tests/idls/core/TestInterface2.idl ('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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #if ENABLE(CONDITION) 8 #if ENABLE(CONDITION)
9 #include "V8TestInterface.h" 9 #include "V8TestInterface.h"
10 10
(...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1198 exceptionState.throwIfNeeded(); 1198 exceptionState.throwIfNeeded();
1199 } 1199 }
1200 1200
1201 static void overloadMethodWithExposedAndRuntimeEnabledFlagMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) 1201 static void overloadMethodWithExposedAndRuntimeEnabledFlagMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info)
1202 { 1202 {
1203 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1203 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1204 TestInterfaceImplementationV8Internal::overloadMethodWithExposedAndRuntimeEn abledFlagMethod(info); 1204 TestInterfaceImplementationV8Internal::overloadMethodWithExposedAndRuntimeEn abledFlagMethod(info);
1205 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1205 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1206 } 1206 }
1207 1207
1208 static void methodWithExposedHavingRuntimeEnabldFlagMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
1209 {
1210 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1211 impl->methodWithExposedHavingRuntimeEnabldFlag();
1212 }
1213
1214 static void methodWithExposedHavingRuntimeEnabldFlagMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
1215 {
1216 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1217 TestInterfaceImplementationV8Internal::methodWithExposedHavingRuntimeEnabldF lagMethod(info);
1218 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1219 }
1220
1208 static void windowAndServiceWorkerExposedMethodMethod(const v8::FunctionCallback Info<v8::Value>& info) 1221 static void windowAndServiceWorkerExposedMethodMethod(const v8::FunctionCallback Info<v8::Value>& info)
1209 { 1222 {
1210 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1223 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1211 impl->windowAndServiceWorkerExposedMethod(); 1224 impl->windowAndServiceWorkerExposedMethod();
1212 } 1225 }
1213 1226
1214 static void windowAndServiceWorkerExposedMethodMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) 1227 static void windowAndServiceWorkerExposedMethodMethodCallback(const v8::Function CallbackInfo<v8::Value>& info)
1215 { 1228 {
1216 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1229 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1217 TestInterfaceImplementationV8Internal::windowAndServiceWorkerExposedMethodMe thod(info); 1230 TestInterfaceImplementationV8Internal::windowAndServiceWorkerExposedMethodMe thod(info);
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
2150 prototypeObject->Set(v8AtomicString(isolate, "windowExposedStaticMethod" ), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::win dowExposedStaticMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFu nction()); 2163 prototypeObject->Set(v8AtomicString(isolate, "windowExposedStaticMethod" ), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::win dowExposedStaticMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFu nction());
2151 } 2164 }
2152 if (context && (context->isDocument())) { 2165 if (context && (context->isDocument())) {
2153 if (RuntimeEnabledFeatures::featureNameEnabled()) { 2166 if (RuntimeEnabledFeatures::featureNameEnabled()) {
2154 prototypeObject->Set(v8AtomicString(isolate, "methodWithExposedAndRu ntimeEnabledFlag"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementati onV8Internal::methodWithExposedAndRuntimeEnabledFlagMethodCallback, v8Undefined( ), defaultSignature, 0)->GetFunction()); 2167 prototypeObject->Set(v8AtomicString(isolate, "methodWithExposedAndRu ntimeEnabledFlag"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementati onV8Internal::methodWithExposedAndRuntimeEnabledFlagMethodCallback, v8Undefined( ), defaultSignature, 0)->GetFunction());
2155 } 2168 }
2156 } 2169 }
2157 if (context && (context->isDocument())) { 2170 if (context && (context->isDocument())) {
2158 prototypeObject->Set(v8AtomicString(isolate, "overloadMethodWithExposedA ndRuntimeEnabledFlag"), v8::FunctionTemplate::New(isolate, TestInterfaceImplemen tationV8Internal::overloadMethodWithExposedAndRuntimeEnabledFlagMethodCallback, v8Undefined(), defaultSignature, 1)->GetFunction()); 2171 prototypeObject->Set(v8AtomicString(isolate, "overloadMethodWithExposedA ndRuntimeEnabledFlag"), v8::FunctionTemplate::New(isolate, TestInterfaceImplemen tationV8Internal::overloadMethodWithExposedAndRuntimeEnabledFlagMethodCallback, v8Undefined(), defaultSignature, 1)->GetFunction());
2159 } 2172 }
2173 if (context && ((context->isDocument() && RuntimeEnabledFeatures::featureNam eEnabled()) || (context->isWorkerGlobalScope() && RuntimeEnabledFeatures::featur eName2Enabled()))) {
2174 prototypeObject->Set(v8AtomicString(isolate, "methodWithExposedHavingRun timeEnabldFlag"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementation V8Internal::methodWithExposedHavingRuntimeEnabldFlagMethodCallback, v8Undefined( ), defaultSignature, 0)->GetFunction());
2175 }
2160 if (context && (context->isDocument() || context->isServiceWorkerGlobalScope ())) { 2176 if (context && (context->isDocument() || context->isServiceWorkerGlobalScope ())) {
2161 prototypeObject->Set(v8AtomicString(isolate, "windowAndServiceWorkerExpo sedMethod"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Int ernal::windowAndServiceWorkerExposedMethodMethodCallback, v8Undefined(), default Signature, 0)->GetFunction()); 2177 prototypeObject->Set(v8AtomicString(isolate, "windowAndServiceWorkerExpo sedMethod"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Int ernal::windowAndServiceWorkerExposedMethodMethodCallback, v8Undefined(), default Signature, 0)->GetFunction());
2162 } 2178 }
2163 } 2179 }
2164 2180
2165 ActiveDOMObject* V8TestInterface::toActiveDOMObject(v8::Handle<v8::Object> wrapp er) 2181 ActiveDOMObject* V8TestInterface::toActiveDOMObject(v8::Handle<v8::Object> wrapp er)
2166 { 2182 {
2167 return toImpl(wrapper); 2183 return toImpl(wrapper);
2168 } 2184 }
2169 2185
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
2282 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2298 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&))
2283 { 2299 {
2284 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method; 2300 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method;
2285 } 2301 }
2286 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2302 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&))
2287 { 2303 {
2288 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method; 2304 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method;
2289 } 2305 }
2290 } // namespace blink 2306 } // namespace blink
2291 #endif // ENABLE(CONDITION) 2307 #endif // ENABLE(CONDITION)
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/core/TestInterface2.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698