| OLD | NEW | 
|     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  | 
|    11 #include "bindings/core/v8/ExceptionState.h" |    11 #include "bindings/core/v8/ExceptionState.h" | 
|    12 #include "bindings/core/v8/PrivateScriptRunner.h" |    12 #include "bindings/core/v8/PrivateScriptRunner.h" | 
 |    13 #include "bindings/core/v8/ScriptPromise.h" | 
|    13 #include "bindings/core/v8/ScriptState.h" |    14 #include "bindings/core/v8/ScriptState.h" | 
|    14 #include "bindings/core/v8/ScriptValue.h" |    15 #include "bindings/core/v8/ScriptValue.h" | 
|    15 #include "bindings/core/v8/V8AbstractEventListener.h" |    16 #include "bindings/core/v8/V8AbstractEventListener.h" | 
|    16 #include "bindings/core/v8/V8DOMConfiguration.h" |    17 #include "bindings/core/v8/V8DOMConfiguration.h" | 
 |    18 #include "bindings/core/v8/V8Document.h" | 
|    17 #include "bindings/core/v8/V8EventListenerList.h" |    19 #include "bindings/core/v8/V8EventListenerList.h" | 
|    18 #include "bindings/core/v8/V8HiddenValue.h" |    20 #include "bindings/core/v8/V8HiddenValue.h" | 
|    19 #include "bindings/core/v8/V8Iterator.h" |    21 #include "bindings/core/v8/V8Iterator.h" | 
|    20 #include "bindings/core/v8/V8Node.h" |    22 #include "bindings/core/v8/V8Node.h" | 
|    21 #include "bindings/core/v8/V8ObjectConstructor.h" |    23 #include "bindings/core/v8/V8ObjectConstructor.h" | 
|    22 #include "bindings/core/v8/V8TestInterface.h" |    24 #include "bindings/core/v8/V8TestInterface.h" | 
|    23 #include "bindings/core/v8/V8TestInterfaceEmpty.h" |    25 #include "bindings/core/v8/V8TestInterfaceEmpty.h" | 
 |    26 #include "bindings/core/v8/V8Window.h" | 
|    24 #include "bindings/tests/idls/core/TestImplements2.h" |    27 #include "bindings/tests/idls/core/TestImplements2.h" | 
|    25 #include "bindings/tests/idls/core/TestImplements3Implementation.h" |    28 #include "bindings/tests/idls/core/TestImplements3Implementation.h" | 
|    26 #include "bindings/tests/idls/core/TestPartialInterface.h" |    29 #include "bindings/tests/idls/core/TestPartialInterface.h" | 
|    27 #include "bindings/tests/idls/core/TestPartialInterfaceImplementation.h" |    30 #include "bindings/tests/idls/core/TestPartialInterfaceImplementation.h" | 
|    28 #include "core/dom/ContextFeatures.h" |    31 #include "core/dom/ContextFeatures.h" | 
|    29 #include "core/dom/Document.h" |    32 #include "core/dom/Document.h" | 
|    30 #include "core/frame/LocalFrame.h" |    33 #include "core/frame/LocalFrame.h" | 
|    31 #include "platform/RuntimeEnabledFeatures.h" |    34 #include "platform/RuntimeEnabledFeatures.h" | 
|    32 #include "platform/ScriptForbiddenScope.h" |    35 #include "platform/ScriptForbiddenScope.h" | 
|    33 #include "platform/TraceEvent.h" |    36 #include "platform/TraceEvent.h" | 
|    34 #include "wtf/GetPtr.h" |    37 #include "wtf/GetPtr.h" | 
|    35 #include "wtf/RefPtr.h" |    38 #include "wtf/RefPtr.h" | 
|    36  |    39  | 
|    37 namespace blink { |    40 namespace blink { | 
|    38  |    41  | 
|    39 WrapperTypeInfo V8TestInterface::wrapperTypeInfo = { gin::kEmbedderBlink, V8Test
      Interface::domTemplate, V8TestInterface::refObject, V8TestInterface::derefObject
      , V8TestInterface::trace, V8TestInterface::toActiveDOMObject, 0, V8TestInterface
      ::visitDOMWrapper, V8TestInterface::installConditionallyEnabledMethods, V8TestIn
      terface::installConditionallyEnabledProperties, &V8TestInterfaceEmpty::wrapperTy
      peInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClas
      sId, WrapperTypeInfo::Dependent, WrapperTypeInfo::RefCountedObject }; |    42 WrapperTypeInfo V8TestInterface::wrapperTypeInfo = { gin::kEmbedderBlink, V8Test
      Interface::domTemplate, V8TestInterface::refObject, V8TestInterface::derefObject
      , V8TestInterface::trace, V8TestInterface::toActiveDOMObject, 0, V8TestInterface
      ::visitDOMWrapper, V8TestInterface::installConditionallyEnabledMethods, V8TestIn
      terface::installConditionallyEnabledProperties, &V8TestInterfaceEmpty::wrapperTy
      peInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClas
      sId, WrapperTypeInfo::Dependent, WrapperTypeInfo::RefCountedObject }; | 
|    40  |    43  | 
|    41 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
      eImplementation.h. |    44 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
      eImplementation.h. | 
|    42 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |    45 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 
|    43 // bindings/core/v8/ScriptWrappable.h. |    46 // bindings/core/v8/ScriptWrappable.h. | 
|    44 const WrapperTypeInfo& TestInterfaceImplementation::s_wrapperTypeInfo = V8TestIn
      terface::wrapperTypeInfo; |    47 const WrapperTypeInfo& TestInterfaceImplementation::s_wrapperTypeInfo = V8TestIn
      terface::wrapperTypeInfo; | 
|    45  |    48  | 
|    46 namespace TestInterfaceImplementationV8Internal { |    49 namespace TestInterfaceImplementationV8Internal { | 
|    47 static void (*voidMethodPartialOverloadMethodForPartialInterface)(const v8::Func
      tionCallbackInfo<v8::Value>&) = 0; |    50 static void (*voidMethodPartialOverloadMethodForPartialInterface)(const v8::Func
      tionCallbackInfo<v8::Value>&) = 0; | 
|    48 static void (*staticVoidMethodPartialOverloadMethodForPartialInterface)(const v8
      ::FunctionCallbackInfo<v8::Value>&) = 0; |    51 static void (*staticVoidMethodPartialOverloadMethodForPartialInterface)(const v8
      ::FunctionCallbackInfo<v8::Value>&) = 0; | 
 |    52 static void (*promiseMethodPartialOverloadMethodForPartialInterface)(const v8::F
      unctionCallbackInfo<v8::Value>&) = 0; | 
 |    53 static void (*staticPromiseMethodPartialOverloadMethodForPartialInterface)(const
       v8::FunctionCallbackInfo<v8::Value>&) = 0; | 
|    49 static void (*partial2VoidMethodMethodForPartialInterface)(const v8::FunctionCal
      lbackInfo<v8::Value>&) = 0; |    54 static void (*partial2VoidMethodMethodForPartialInterface)(const v8::FunctionCal
      lbackInfo<v8::Value>&) = 0; | 
|    50 static void (*partial2StaticVoidMethodMethodForPartialInterface)(const v8::Funct
      ionCallbackInfo<v8::Value>&) = 0; |    55 static void (*partial2StaticVoidMethodMethodForPartialInterface)(const v8::Funct
      ionCallbackInfo<v8::Value>&) = 0; | 
|    51  |    56  | 
|    52 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo
      <v8::Value>& info) |    57 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo
      <v8::Value>& info) | 
|    53 { |    58 { | 
|    54     v8::Handle<v8::Object> holder = info.Holder(); |    59     v8::Handle<v8::Object> holder = info.Holder(); | 
|    55     TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |    60     TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 
|    56     v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl
      ); |    61     v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl
      ); | 
|    57 } |    62 } | 
|    58  |    63  | 
| (...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1140         } |  1145         } | 
|  1141     } |  1146     } | 
|  1142     impl->voidMethodPartialOverload(doubleArg); |  1147     impl->voidMethodPartialOverload(doubleArg); | 
|  1143 } |  1148 } | 
|  1144  |  1149  | 
|  1145 static void staticVoidMethodPartialOverload1Method(const v8::FunctionCallbackInf
      o<v8::Value>& info) |  1150 static void staticVoidMethodPartialOverload1Method(const v8::FunctionCallbackInf
      o<v8::Value>& info) | 
|  1146 { |  1151 { | 
|  1147     TestInterfaceImplementation::staticVoidMethodPartialOverload(); |  1152     TestInterfaceImplementation::staticVoidMethodPartialOverload(); | 
|  1148 } |  1153 } | 
|  1149  |  1154  | 
 |  1155 static void promiseMethodPartialOverload1Method(const v8::FunctionCallbackInfo<v
      8::Value>& info) | 
 |  1156 { | 
 |  1157     TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 
 |  1158     v8SetReturnValue(info, impl->promiseMethodPartialOverload().v8Value()); | 
 |  1159 } | 
 |  1160  | 
 |  1161 static void promiseMethodPartialOverload2Method(const v8::FunctionCallbackInfo<v
      8::Value>& info) | 
 |  1162 { | 
 |  1163     TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 
 |  1164     LocalDOMWindow* window; | 
 |  1165     { | 
 |  1166         if (info.Length() > 0 && !V8Window::hasInstance(info[0], info.GetIsolate
      ())) { | 
 |  1167             v8SetReturnValue(info, ScriptPromise::rejectRaw(info.GetIsolate(), V
      8ThrowException::createTypeError(ExceptionMessages::failedToExecute("promiseMeth
      odPartialOverload", "TestInterface", "parameter 1 is not of type 'Window'."), in
      fo.GetIsolate()))); | 
 |  1168             return; | 
 |  1169         } | 
 |  1170         window = toDOMWindow(info[0], info.GetIsolate()); | 
 |  1171     } | 
 |  1172     v8SetReturnValue(info, impl->promiseMethodPartialOverload(window).v8Value())
      ; | 
 |  1173 } | 
 |  1174  | 
 |  1175 static void staticPromiseMethodPartialOverload1Method(const v8::FunctionCallback
      Info<v8::Value>& info) | 
 |  1176 { | 
 |  1177     v8SetReturnValue(info, TestInterfaceImplementation::staticPromiseMethodParti
      alOverload().v8Value()); | 
 |  1178 } | 
 |  1179  | 
|  1150 static void implementsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
      & info) |  1180 static void implementsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
      & info) | 
|  1151 { |  1181 { | 
|  1152     TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |  1182     TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 
|  1153     impl->implementsVoidMethod(); |  1183     impl->implementsVoidMethod(); | 
|  1154 } |  1184 } | 
|  1155  |  1185  | 
|  1156 static void implementsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8
      ::Value>& info) |  1186 static void implementsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8
      ::Value>& info) | 
|  1157 { |  1187 { | 
|  1158     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |  1188     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 
|  1159     TestInterfaceImplementationV8Internal::implementsVoidMethodMethod(info); |  1189     TestInterfaceImplementationV8Internal::implementsVoidMethodMethod(info); | 
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1451     (staticVoidMethodPartialOverloadMethodForPartialInterface)(info); |  1481     (staticVoidMethodPartialOverloadMethodForPartialInterface)(info); | 
|  1452 } |  1482 } | 
|  1453  |  1483  | 
|  1454 static void staticVoidMethodPartialOverloadMethodCallback(const v8::FunctionCall
      backInfo<v8::Value>& info) |  1484 static void staticVoidMethodPartialOverloadMethodCallback(const v8::FunctionCall
      backInfo<v8::Value>& info) | 
|  1455 { |  1485 { | 
|  1456     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |  1486     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 
|  1457     TestInterfaceImplementationV8Internal::staticVoidMethodPartialOverloadMethod
      (info); |  1487     TestInterfaceImplementationV8Internal::staticVoidMethodPartialOverloadMethod
      (info); | 
|  1458     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |  1488     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|  1459 } |  1489 } | 
|  1460  |  1490  | 
 |  1491 static void promiseMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8
      ::Value>& info) | 
 |  1492 { | 
 |  1493     ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMeth
      odPartialOverload", "TestInterface", info.Holder(), info.GetIsolate()); | 
 |  1494     switch (std::min(1, info.Length())) { | 
 |  1495     case 0: | 
 |  1496         if (true) { | 
 |  1497             promiseMethodPartialOverload1Method(info); | 
 |  1498             return; | 
 |  1499         } | 
 |  1500         break; | 
 |  1501     case 1: | 
 |  1502         if (V8Window::hasInstance(info[0], info.GetIsolate())) { | 
 |  1503             promiseMethodPartialOverload2Method(info); | 
 |  1504             return; | 
 |  1505         } | 
 |  1506         break; | 
 |  1507     } | 
 |  1508     ASSERT(promiseMethodPartialOverloadMethodForPartialInterface); | 
 |  1509     (promiseMethodPartialOverloadMethodForPartialInterface)(info); | 
 |  1510 } | 
 |  1511  | 
 |  1512 static void promiseMethodPartialOverloadMethodCallback(const v8::FunctionCallbac
      kInfo<v8::Value>& info) | 
 |  1513 { | 
 |  1514     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 
 |  1515     TestInterfaceImplementationV8Internal::promiseMethodPartialOverloadMethod(in
      fo); | 
 |  1516     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
 |  1517 } | 
 |  1518  | 
 |  1519 static void staticPromiseMethodPartialOverloadMethod(const v8::FunctionCallbackI
      nfo<v8::Value>& info) | 
 |  1520 { | 
 |  1521     ExceptionState exceptionState(ExceptionState::ExecutionContext, "staticPromi
      seMethodPartialOverload", "TestInterface", info.Holder(), info.GetIsolate()); | 
 |  1522     switch (std::min(1, info.Length())) { | 
 |  1523     case 0: | 
 |  1524         if (true) { | 
 |  1525             staticPromiseMethodPartialOverload1Method(info); | 
 |  1526             return; | 
 |  1527         } | 
 |  1528         break; | 
 |  1529     case 1: | 
 |  1530         break; | 
 |  1531     } | 
 |  1532     ASSERT(staticPromiseMethodPartialOverloadMethodForPartialInterface); | 
 |  1533     (staticPromiseMethodPartialOverloadMethodForPartialInterface)(info); | 
 |  1534 } | 
 |  1535  | 
 |  1536 static void staticPromiseMethodPartialOverloadMethodCallback(const v8::FunctionC
      allbackInfo<v8::Value>& info) | 
 |  1537 { | 
 |  1538     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 
 |  1539     TestInterfaceImplementationV8Internal::staticPromiseMethodPartialOverloadMet
      hod(info); | 
 |  1540     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
 |  1541 } | 
 |  1542  | 
|  1461 static void partial2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& 
      info) |  1543 static void partial2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& 
      info) | 
|  1462 { |  1544 { | 
|  1463     ExceptionState exceptionState(ExceptionState::ExecutionContext, "partial2Voi
      dMethod", "TestInterface", info.Holder(), info.GetIsolate()); |  1545     ExceptionState exceptionState(ExceptionState::ExecutionContext, "partial2Voi
      dMethod", "TestInterface", info.Holder(), info.GetIsolate()); | 
|  1464     switch (std::min(1, info.Length())) { |  1546     switch (std::min(1, info.Length())) { | 
|  1465     case 0: |  1547     case 0: | 
|  1466         if (true) { |  1548         if (true) { | 
|  1467             partial2VoidMethod1Method(info); |  1549             partial2VoidMethod1Method(info); | 
|  1468             return; |  1550             return; | 
|  1469         } |  1551         } | 
|  1470         break; |  1552         break; | 
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1725     {"voidMethodTestInterfaceEmptyArg", TestInterfaceImplementationV8Internal::v
      oidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedT
      oAllScripts}, |  1807     {"voidMethodTestInterfaceEmptyArg", TestInterfaceImplementationV8Internal::v
      oidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedT
      oAllScripts}, | 
|  1726     {"voidMethodDoubleArgFloatArg", TestInterfaceImplementationV8Internal::voidM
      ethodDoubleArgFloatArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScri
      pts}, |  1808     {"voidMethodDoubleArgFloatArg", TestInterfaceImplementationV8Internal::voidM
      ethodDoubleArgFloatArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScri
      pts}, | 
|  1727     {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", TestInterfaceImpleme
      ntationV8Internal::voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCall
      back, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, |  1809     {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", TestInterfaceImpleme
      ntationV8Internal::voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCall
      back, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, | 
|  1728     {"voidMethod", TestInterfaceImplementationV8Internal::voidMethodMethodCallba
      ck, TestInterfaceImplementationV8Internal::voidMethodMethodCallbackForMainWorld,
       0, V8DOMConfiguration::ExposedToAllScripts}, |  1810     {"voidMethod", TestInterfaceImplementationV8Internal::voidMethodMethodCallba
      ck, TestInterfaceImplementationV8Internal::voidMethodMethodCallbackForMainWorld,
       0, V8DOMConfiguration::ExposedToAllScripts}, | 
|  1729     {"alwaysExposedMethod", TestInterfaceImplementationV8Internal::alwaysExposed
      MethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |  1811     {"alwaysExposedMethod", TestInterfaceImplementationV8Internal::alwaysExposed
      MethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 
|  1730     {"implementsVoidMethod", TestInterfaceImplementationV8Internal::implementsVo
      idMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |  1812     {"implementsVoidMethod", TestInterfaceImplementationV8Internal::implementsVo
      idMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 
|  1731     {"implementsComplexMethod", TestInterfaceImplementationV8Internal::implement
      sComplexMethodMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, |  1813     {"implementsComplexMethod", TestInterfaceImplementationV8Internal::implement
      sComplexMethodMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, | 
|  1732     {"implementsCustomVoidMethod", TestInterfaceImplementationV8Internal::implem
      entsCustomVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScript
      s}, |  1814     {"implementsCustomVoidMethod", TestInterfaceImplementationV8Internal::implem
      entsCustomVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScript
      s}, | 
|  1733     {"implements3VoidMethod", TestInterfaceImplementationV8Internal::implements3
      VoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |  1815     {"implements3VoidMethod", TestInterfaceImplementationV8Internal::implements3
      VoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 
|  1734     {"voidMethodPartialOverload", TestInterfaceImplementationV8Internal::voidMet
      hodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}
      , |  1816     {"voidMethodPartialOverload", TestInterfaceImplementationV8Internal::voidMet
      hodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}
      , | 
 |  1817     {"promiseMethodPartialOverload", TestInterfaceImplementationV8Internal::prom
      iseMethodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllSc
      ripts}, | 
|  1735     {"partial2VoidMethod", TestInterfaceImplementationV8Internal::partial2VoidMe
      thodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |  1818     {"partial2VoidMethod", TestInterfaceImplementationV8Internal::partial2VoidMe
      thodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 
|  1736 }; |  1819 }; | 
|  1737  |  1820  | 
|  1738 void V8TestInterface::installV8TestInterfaceTemplate(v8::Handle<v8::FunctionTemp
      late> functionTemplate, v8::Isolate* isolate) |  1821 void V8TestInterface::installV8TestInterfaceTemplate(v8::Handle<v8::FunctionTemp
      late> functionTemplate, v8::Isolate* isolate) | 
|  1739 { |  1822 { | 
|  1740     functionTemplate->ReadOnlyPrototype(); |  1823     functionTemplate->ReadOnlyPrototype(); | 
|  1741  |  1824  | 
|  1742     v8::Local<v8::Signature> defaultSignature; |  1825     v8::Local<v8::Signature> defaultSignature; | 
|  1743     if (!RuntimeEnabledFeatures::featureNameEnabled()) |  1826     if (!RuntimeEnabledFeatures::featureNameEnabled()) | 
|  1744         defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionT
      emplate, "", V8TestInterfaceEmpty::domTemplate(isolate), V8TestInterface::intern
      alFieldCount, 0, 0, 0, 0, 0, 0, isolate); |  1827         defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionT
      emplate, "", V8TestInterfaceEmpty::domTemplate(isolate), V8TestInterface::intern
      alFieldCount, 0, 0, 0, 0, 0, 0, isolate); | 
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1870         static const V8DOMConfiguration::MethodConfiguration shortMethodWithShor
      tArgumentImplementedInPrivateScriptMethodConfiguration = { |  1953         static const V8DOMConfiguration::MethodConfiguration shortMethodWithShor
      tArgumentImplementedInPrivateScriptMethodConfiguration = { | 
|  1871             "shortMethodWithShortArgumentImplementedInPrivateScript", TestInterf
      aceImplementationV8Internal::shortMethodWithShortArgumentImplementedInPrivateScr
      iptMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts, |  1954             "shortMethodWithShortArgumentImplementedInPrivateScript", TestInterf
      aceImplementationV8Internal::shortMethodWithShortArgumentImplementedInPrivateScr
      iptMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts, | 
|  1872         }; |  1955         }; | 
|  1873         V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v
      8::None, shortMethodWithShortArgumentImplementedInPrivateScriptMethodConfigurati
      on, isolate); |  1956         V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v
      8::None, shortMethodWithShortArgumentImplementedInPrivateScriptMethodConfigurati
      on, isolate); | 
|  1874     } |  1957     } | 
|  1875 #endif // ENABLE(PARTIAL_CONDITION) |  1958 #endif // ENABLE(PARTIAL_CONDITION) | 
|  1876     static const V8DOMConfiguration::MethodConfiguration staticVoidMethodPartial
      OverloadMethodConfiguration = { |  1959     static const V8DOMConfiguration::MethodConfiguration staticVoidMethodPartial
      OverloadMethodConfiguration = { | 
|  1877         "staticVoidMethodPartialOverload", TestInterfaceImplementationV8Internal
      ::staticVoidMethodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration::Expos
      edToAllScripts, |  1960         "staticVoidMethodPartialOverload", TestInterfaceImplementationV8Internal
      ::staticVoidMethodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration::Expos
      edToAllScripts, | 
|  1878     }; |  1961     }; | 
|  1879     V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
      (), v8::None, staticVoidMethodPartialOverloadMethodConfiguration, isolate); |  1962     V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
      (), v8::None, staticVoidMethodPartialOverloadMethodConfiguration, isolate); | 
 |  1963     static const V8DOMConfiguration::MethodConfiguration staticPromiseMethodPart
      ialOverloadMethodConfiguration = { | 
 |  1964         "staticPromiseMethodPartialOverload", TestInterfaceImplementationV8Inter
      nal::staticPromiseMethodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration:
      :ExposedToAllScripts, | 
 |  1965     }; | 
 |  1966     V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
      (), v8::None, staticPromiseMethodPartialOverloadMethodConfiguration, isolate); | 
|  1880     static const V8DOMConfiguration::MethodConfiguration partial2StaticVoidMetho
      dMethodConfiguration = { |  1967     static const V8DOMConfiguration::MethodConfiguration partial2StaticVoidMetho
      dMethodConfiguration = { | 
|  1881         "partial2StaticVoidMethod", TestInterfaceImplementationV8Internal::parti
      al2StaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts
      , |  1968         "partial2StaticVoidMethod", TestInterfaceImplementationV8Internal::parti
      al2StaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts
      , | 
|  1882     }; |  1969     }; | 
|  1883     V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
      (), v8::None, partial2StaticVoidMethodMethodConfiguration, isolate); |  1970     V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature>
      (), v8::None, partial2StaticVoidMethodMethodConfiguration, isolate); | 
|  1884     static const V8DOMConfiguration::MethodConfiguration toStringMethodConfigura
      tion = { |  1971     static const V8DOMConfiguration::MethodConfiguration toStringMethodConfigura
      tion = { | 
|  1885         "toString", TestInterfaceImplementationV8Internal::toStringMethodCallbac
      k, 0, 0, V8DOMConfiguration::ExposedToAllScripts, |  1972         "toString", TestInterfaceImplementationV8Internal::toStringMethodCallbac
      k, 0, 0, V8DOMConfiguration::ExposedToAllScripts, | 
|  1886     }; |  1973     }; | 
|  1887     V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, stati
      c_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum), toStringMethodConf
      iguration, isolate); |  1974     V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, stati
      c_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum), toStringMethodConf
      iguration, isolate); | 
|  1888     functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin
      gAttribute"), TestInterfaceImplementationV8Internal::staticStringAttributeAttrib
      uteGetterCallback, TestInterfaceImplementationV8Internal::staticStringAttributeA
      ttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyA
      ttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::Access
      Control>(v8::DEFAULT)); |  1975     functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin
      gAttribute"), TestInterfaceImplementationV8Internal::staticStringAttributeAttrib
      uteGetterCallback, TestInterfaceImplementationV8Internal::staticStringAttributeA
      ttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyA
      ttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::Access
      Control>(v8::DEFAULT)); | 
|  1889     functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS
      taticReadOnlyLongAttribute"), TestInterfaceImplementationV8Internal::implementsS
      taticReadOnlyLongAttributeAttributeGetterCallback, 0, v8::External::New(isolate,
       0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignat
      ure>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |  1976     functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS
      taticReadOnlyLongAttribute"), TestInterfaceImplementationV8Internal::implementsS
      taticReadOnlyLongAttributeAttributeGetterCallback, 0, v8::External::New(isolate,
       0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignat
      ure>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2083 } |  2170 } | 
|  2084  |  2171  | 
|  2085 void V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface
      (void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |  2172 void V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface
      (void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 
|  2086 { |  2173 { | 
|  2087     TestInterfaceImplementationV8Internal::voidMethodPartialOverloadMethodForPar
      tialInterface = method; |  2174     TestInterfaceImplementationV8Internal::voidMethodPartialOverloadMethodForPar
      tialInterface = method; | 
|  2088 } |  2175 } | 
|  2089 void V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInt
      erface(void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |  2176 void V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInt
      erface(void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 
|  2090 { |  2177 { | 
|  2091     TestInterfaceImplementationV8Internal::staticVoidMethodPartialOverloadMethod
      ForPartialInterface = method; |  2178     TestInterfaceImplementationV8Internal::staticVoidMethodPartialOverloadMethod
      ForPartialInterface = method; | 
|  2092 } |  2179 } | 
 |  2180 void V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterf
      ace(void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 
 |  2181 { | 
 |  2182     TestInterfaceImplementationV8Internal::promiseMethodPartialOverloadMethodFor
      PartialInterface = method; | 
 |  2183 } | 
 |  2184 void V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartial
      Interface(void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 
 |  2185 { | 
 |  2186     TestInterfaceImplementationV8Internal::staticPromiseMethodPartialOverloadMet
      hodForPartialInterface = method; | 
 |  2187 } | 
|  2093 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
      *method)(const v8::FunctionCallbackInfo<v8::Value>&)) |  2188 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
      *method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 
|  2094 { |  2189 { | 
|  2095     TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
      erface = method; |  2190     TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
      erface = method; | 
|  2096 } |  2191 } | 
|  2097 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
      void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |  2192 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
      void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 
|  2098 { |  2193 { | 
|  2099     TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
      ialInterface = method; |  2194     TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
      ialInterface = method; | 
|  2100 } |  2195 } | 
|  2101 } // namespace blink |  2196 } // namespace blink | 
|  2102 #endif // ENABLE(CONDITION) |  2197 #endif // ENABLE(CONDITION) | 
| OLD | NEW |