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

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

Issue 1309653002: bindings: Fixes build breakage of per-method [Exposed]. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 // 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 2614 matching lines...) Expand 10 before | Expand all | Expand 10 after
2625 } 2625 }
2626 if (context && (context->isDocument())) { 2626 if (context && (context->isDocument())) {
2627 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura tion = {"windowExposedAttribute", TestInterfaceImplementationV8Internal::windowE xposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::w indowExposedAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast< v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOM Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2627 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura tion = {"windowExposedAttribute", TestInterfaceImplementationV8Internal::windowE xposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::w indowExposedAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast< v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOM Configuration::OnPrototype, V8DOMConfiguration::CheckHolder};
2628 V8DOMConfiguration::installAccessor(isolate, v8::Local<v8::Object>(), pr ototypeObject, v8::Local<v8::Function>(), signature, accessorConfiguration); 2628 V8DOMConfiguration::installAccessor(isolate, v8::Local<v8::Object>(), pr ototypeObject, v8::Local<v8::Function>(), signature, accessorConfiguration);
2629 } 2629 }
2630 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT emplate(isolate)); 2630 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT emplate(isolate));
2631 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext()); 2631 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext());
2632 ASSERT(context); 2632 ASSERT(context);
2633 if (context && (context->isWorkerGlobalScope())) { 2633 if (context && (context->isWorkerGlobalScope())) {
2634 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate: :New(isolate, TestInterfaceImplementationV8Internal::workerExposedMethodMethodCa llback, v8Undefined(), defaultSignature, 0); 2634 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate: :New(isolate, TestInterfaceImplementationV8Internal::workerExposedMethodMethodCa llback, v8Undefined(), defaultSignature, 0);
2635 v8::Local<v8::Function> function = ->GetFunction(isolate->GetCurrentCont ext())).ToLocalChecked(); 2635 v8::Local<v8::Function> function = v8CallOrCrash(functionTemplate->GetFu nction(isolate->GetCurrentContext()));
2636 v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8Atomi cString(isolate, "workerExposedMethod"), function)); 2636 v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8Atomi cString(isolate, "workerExposedMethod"), function));
2637 } 2637 }
2638 if (context && (context->isDocument())) { 2638 if (context && (context->isDocument())) {
2639 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate: :New(isolate, TestInterfaceImplementationV8Internal::windowExposedMethodMethodCa llback, v8Undefined(), defaultSignature, 0); 2639 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate: :New(isolate, TestInterfaceImplementationV8Internal::windowExposedMethodMethodCa llback, v8Undefined(), defaultSignature, 0);
2640 v8::Local<v8::Function> function = ->GetFunction(isolate->GetCurrentCont ext())).ToLocalChecked(); 2640 v8::Local<v8::Function> function = v8CallOrCrash(functionTemplate->GetFu nction(isolate->GetCurrentContext()));
2641 v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8Atomi cString(isolate, "windowExposedMethod"), function)); 2641 v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8Atomi cString(isolate, "windowExposedMethod"), function));
2642 } 2642 }
2643 if (context && (context->isDocument())) { 2643 if (context && (context->isDocument())) {
2644 if (RuntimeEnabledFeatures::featureNameEnabled()) { 2644 if (RuntimeEnabledFeatures::featureNameEnabled()) {
2645 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTempl ate::New(isolate, TestInterfaceImplementationV8Internal::methodWithExposedAndRun timeEnabledFlagMethodCallback, v8Undefined(), defaultSignature, 0); 2645 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTempl ate::New(isolate, TestInterfaceImplementationV8Internal::methodWithExposedAndRun timeEnabledFlagMethodCallback, v8Undefined(), defaultSignature, 0);
2646 v8::Local<v8::Function> function = ->GetFunction(isolate->GetCurrent Context())).ToLocalChecked(); 2646 v8::Local<v8::Function> function = v8CallOrCrash(functionTemplate->G etFunction(isolate->GetCurrentContext()));
2647 v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8A tomicString(isolate, "methodWithExposedAndRuntimeEnabledFlag"), function)); 2647 v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8A tomicString(isolate, "methodWithExposedAndRuntimeEnabledFlag"), function));
2648 } 2648 }
2649 } 2649 }
2650 if (context && (context->isDocument())) { 2650 if (context && (context->isDocument())) {
2651 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate: :New(isolate, TestInterfaceImplementationV8Internal::overloadMethodWithExposedAn dRuntimeEnabledFlagMethodCallback, v8Undefined(), defaultSignature, 1); 2651 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate: :New(isolate, TestInterfaceImplementationV8Internal::overloadMethodWithExposedAn dRuntimeEnabledFlagMethodCallback, v8Undefined(), defaultSignature, 1);
2652 v8::Local<v8::Function> function = ->GetFunction(isolate->GetCurrentCont ext())).ToLocalChecked(); 2652 v8::Local<v8::Function> function = v8CallOrCrash(functionTemplate->GetFu nction(isolate->GetCurrentContext()));
2653 v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8Atomi cString(isolate, "overloadMethodWithExposedAndRuntimeEnabledFlag"), function)); 2653 v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8Atomi cString(isolate, "overloadMethodWithExposedAndRuntimeEnabledFlag"), function));
2654 } 2654 }
2655 if (context && ((context->isDocument() && RuntimeEnabledFeatures::featureNam eEnabled()) || (context->isWorkerGlobalScope() && RuntimeEnabledFeatures::featur eName2Enabled()))) { 2655 if (context && ((context->isDocument() && RuntimeEnabledFeatures::featureNam eEnabled()) || (context->isWorkerGlobalScope() && RuntimeEnabledFeatures::featur eName2Enabled()))) {
2656 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate: :New(isolate, TestInterfaceImplementationV8Internal::methodWithExposedHavingRunt imeEnabldFlagMethodCallback, v8Undefined(), defaultSignature, 0); 2656 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate: :New(isolate, TestInterfaceImplementationV8Internal::methodWithExposedHavingRunt imeEnabldFlagMethodCallback, v8Undefined(), defaultSignature, 0);
2657 v8::Local<v8::Function> function = ->GetFunction(isolate->GetCurrentCont ext())).ToLocalChecked(); 2657 v8::Local<v8::Function> function = v8CallOrCrash(functionTemplate->GetFu nction(isolate->GetCurrentContext()));
2658 v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8Atomi cString(isolate, "methodWithExposedHavingRuntimeEnabldFlag"), function)); 2658 v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8Atomi cString(isolate, "methodWithExposedHavingRuntimeEnabldFlag"), function));
2659 } 2659 }
2660 if (context && (context->isDocument() || context->isServiceWorkerGlobalScope ())) { 2660 if (context && (context->isDocument() || context->isServiceWorkerGlobalScope ())) {
2661 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate: :New(isolate, TestInterfaceImplementationV8Internal::windowAndServiceWorkerExpos edMethodMethodCallback, v8Undefined(), defaultSignature, 0); 2661 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate: :New(isolate, TestInterfaceImplementationV8Internal::windowAndServiceWorkerExpos edMethodMethodCallback, v8Undefined(), defaultSignature, 0);
2662 v8::Local<v8::Function> function = ->GetFunction(isolate->GetCurrentCont ext())).ToLocalChecked(); 2662 v8::Local<v8::Function> function = v8CallOrCrash(functionTemplate->GetFu nction(isolate->GetCurrentContext()));
2663 v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8Atomi cString(isolate, "windowAndServiceWorkerExposedMethod"), function)); 2663 v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8Atomi cString(isolate, "windowAndServiceWorkerExposedMethod"), function));
2664 } 2664 }
2665 } 2665 }
2666 2666
2667 ActiveDOMObject* V8TestInterface::toActiveDOMObject(v8::Local<v8::Object> wrappe r) 2667 ActiveDOMObject* V8TestInterface::toActiveDOMObject(v8::Local<v8::Object> wrappe r)
2668 { 2668 {
2669 return toImpl(wrapper); 2669 return toImpl(wrapper);
2670 } 2670 }
2671 2671
2672 void V8TestInterface::refObject(ScriptWrappable* scriptWrappable) 2672 void V8TestInterface::refObject(ScriptWrappable* scriptWrappable)
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
2791 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2791 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&))
2792 { 2792 {
2793 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method; 2793 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method;
2794 } 2794 }
2795 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2795 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&))
2796 { 2796 {
2797 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method; 2797 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method;
2798 } 2798 }
2799 } // namespace blink 2799 } // namespace blink
2800 #endif // ENABLE(CONDITION) 2800 #endif // ENABLE(CONDITION)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698