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 "V8TestInterface5.h" | 7 #include "V8TestInterface5.h" |
8 | 8 |
9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
10 #include "bindings/core/v8/ScriptState.h" | 10 #include "bindings/core/v8/ScriptState.h" |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 { | 587 { |
588 if (!info[0]->IsFunction()) { | 588 if (!info[0]->IsFunction()) { |
589 exceptionState.throwTypeError("The callback provided as parameter 1
is not a function."); | 589 exceptionState.throwTypeError("The callback provided as parameter 1
is not a function."); |
590 exceptionState.throwIfNeeded(); | 590 exceptionState.throwIfNeeded(); |
591 return; | 591 return; |
592 } | 592 } |
593 callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0])
; | 593 callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0])
; |
594 thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]); | 594 thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]); |
595 } | 595 } |
596 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 596 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
597 impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.This()),
callback, thisArg, exceptionState); | 597 impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.Holder())
, callback, thisArg, exceptionState); |
598 if (exceptionState.hadException()) { | 598 if (exceptionState.hadException()) { |
599 exceptionState.throwIfNeeded(); | 599 exceptionState.throwIfNeeded(); |
600 return; | 600 return; |
601 } | 601 } |
602 } | 602 } |
603 | 603 |
604 static void forEachMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf
o) | 604 static void forEachMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf
o) |
605 { | 605 { |
606 TestInterface5ImplementationV8Internal::forEachMethod(info); | 606 TestInterface5ImplementationV8Internal::forEachMethod(info); |
607 } | 607 } |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
922 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(
), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMet
hodMethodConfiguration); | 922 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(
), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMet
hodMethodConfiguration); |
923 } | 923 } |
924 } | 924 } |
925 | 925 |
926 ActiveScriptWrappable* V8TestInterface5::toActiveScriptWrappable(v8::Local<v8::O
bject> wrapper) | 926 ActiveScriptWrappable* V8TestInterface5::toActiveScriptWrappable(v8::Local<v8::O
bject> wrapper) |
927 { | 927 { |
928 return toImpl(wrapper); | 928 return toImpl(wrapper); |
929 } | 929 } |
930 | 930 |
931 } // namespace blink | 931 } // namespace blink |
OLD | NEW |