| 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 #include "V8TestInterface3.h" | 8 #include "V8TestInterface3.h" | 
| 9 | 9 | 
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" | 
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 87     } | 87     } | 
| 88     Document* document; | 88     Document* document; | 
| 89     double d; | 89     double d; | 
| 90     { | 90     { | 
| 91         document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); | 91         document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); | 
| 92         if (!document) { | 92         if (!document) { | 
| 93             exceptionState.throwTypeError("parameter 1 is not of type 'Document'
     ."); | 93             exceptionState.throwTypeError("parameter 1 is not of type 'Document'
     ."); | 
| 94             exceptionState.throwIfNeeded(); | 94             exceptionState.throwIfNeeded(); | 
| 95             return; | 95             return; | 
| 96         } | 96         } | 
| 97         TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(d, toRestrictedDouble(info[1], exc
     eptionState), exceptionState); | 97         TONATIVE_CONVERT(convertAndThrow(d = toRestrictedDouble(info[1], excepti
     onState), exceptionState), return); | 
| 98     } | 98     } | 
| 99     TestPartialInterface4::voidMethodDocument(document, d); | 99     TestPartialInterface4::voidMethodDocument(document, d); | 
| 100 } | 100 } | 
| 101 #endif // ENABLE(BAR) | 101 #endif // ENABLE(BAR) | 
| 102 | 102 | 
| 103 #if ENABLE(BAR) | 103 #if ENABLE(BAR) | 
| 104 static void voidMethodDocumentMethodCallback(const v8::FunctionCallbackInfo<v8::
     Value>& info) | 104 static void voidMethodDocumentMethodCallback(const v8::FunctionCallbackInfo<v8::
     Value>& info) | 
| 105 { | 105 { | 
| 106     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 106     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 
| 107     TestInterface3V8Internal::voidMethodDocumentMethod(info); | 107     TestInterface3V8Internal::voidMethodDocumentMethod(info); | 
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 156         setMinimumArityTypeError(exceptionState, 1, info.Length()); | 156         setMinimumArityTypeError(exceptionState, 1, info.Length()); | 
| 157         exceptionState.throwIfNeeded(); | 157         exceptionState.throwIfNeeded(); | 
| 158         return; | 158         return; | 
| 159     } | 159     } | 
| 160     TestInterface3* impl = V8TestInterface3::toImpl(info.Holder()); | 160     TestInterface3* impl = V8TestInterface3::toImpl(info.Holder()); | 
| 161     ScriptValue callback; | 161     ScriptValue callback; | 
| 162     ScriptValue thisArg; | 162     ScriptValue thisArg; | 
| 163     { | 163     { | 
| 164         if (!info[0]->IsFunction()) { | 164         if (!info[0]->IsFunction()) { | 
| 165             exceptionState.throwTypeError("The callback provided as parameter 1 
     is not a function."); | 165             exceptionState.throwTypeError("The callback provided as parameter 1 
     is not a function."); | 
| 166                 exceptionState.throwIfNeeded(); | 166             exceptionState.throwIfNeeded(); | 
| 167             return; | 167             return; | 
| 168         } | 168         } | 
| 169         callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0])
     ; | 169         callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0])
     ; | 
| 170         thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]); | 170         thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]); | 
| 171     } | 171     } | 
| 172     ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 172     ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 
| 173     impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.This()), 
     callback, thisArg, exceptionState); | 173     impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.This()), 
     callback, thisArg, exceptionState); | 
| 174     if (exceptionState.hadException()) { | 174     if (exceptionState.hadException()) { | 
| 175         exceptionState.throwIfNeeded(); | 175         exceptionState.throwIfNeeded(); | 
| 176         return; | 176         return; | 
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 350 { | 350 { | 
| 351     scriptWrappable->toImpl<TestInterface3>()->ref(); | 351     scriptWrappable->toImpl<TestInterface3>()->ref(); | 
| 352 } | 352 } | 
| 353 | 353 | 
| 354 void V8TestInterface3::derefObject(ScriptWrappable* scriptWrappable) | 354 void V8TestInterface3::derefObject(ScriptWrappable* scriptWrappable) | 
| 355 { | 355 { | 
| 356     scriptWrappable->toImpl<TestInterface3>()->deref(); | 356     scriptWrappable->toImpl<TestInterface3>()->deref(); | 
| 357 } | 357 } | 
| 358 | 358 | 
| 359 } // namespace blink | 359 } // namespace blink | 
| OLD | NEW | 
|---|