| 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 20 matching lines...) Expand all Loading... |
| 31 // bindings/core/v8/ScriptWrappable.h. | 31 // bindings/core/v8/ScriptWrappable.h. |
| 32 const WrapperTypeInfo& TestInterface3::s_wrapperTypeInfo = V8TestInterface3::wra
pperTypeInfo; | 32 const WrapperTypeInfo& TestInterface3::s_wrapperTypeInfo = V8TestInterface3::wra
pperTypeInfo; |
| 33 | 33 |
| 34 namespace TestInterface3V8Internal { | 34 namespace TestInterface3V8Internal { |
| 35 | 35 |
| 36 static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 36 static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 37 { | 37 { |
| 38 ExceptionState exceptionState(ExceptionState::ExecutionContext, "keys", "Tes
tInterface3", info.Holder(), info.GetIsolate()); | 38 ExceptionState exceptionState(ExceptionState::ExecutionContext, "keys", "Tes
tInterface3", info.Holder(), info.GetIsolate()); |
| 39 TestInterface3* impl = V8TestInterface3::toImpl(info.Holder()); | 39 TestInterface3* impl = V8TestInterface3::toImpl(info.Holder()); |
| 40 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 40 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
| 41 RawPtr<Iterator> result = impl->keys(scriptState, exceptionState); | 41 RawPtr<Iterator> result = impl->iterableKeys(scriptState, exceptionState); |
| 42 if (exceptionState.hadException()) { | 42 if (exceptionState.hadException()) { |
| 43 exceptionState.throwIfNeeded(); | 43 exceptionState.throwIfNeeded(); |
| 44 return; | 44 return; |
| 45 } | 45 } |
| 46 v8SetReturnValue(info, result.release()); | 46 v8SetReturnValue(info, result.release()); |
| 47 } | 47 } |
| 48 | 48 |
| 49 static void keysMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 49 static void keysMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 50 { | 50 { |
| 51 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 51 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 { | 278 { |
| 279 scriptWrappable->toImpl<TestInterface3>()->ref(); | 279 scriptWrappable->toImpl<TestInterface3>()->ref(); |
| 280 } | 280 } |
| 281 | 281 |
| 282 void V8TestInterface3::derefObject(ScriptWrappable* scriptWrappable) | 282 void V8TestInterface3::derefObject(ScriptWrappable* scriptWrappable) |
| 283 { | 283 { |
| 284 scriptWrappable->toImpl<TestInterface3>()->deref(); | 284 scriptWrappable->toImpl<TestInterface3>()->deref(); |
| 285 } | 285 } |
| 286 | 286 |
| 287 } // namespace blink | 287 } // namespace blink |
| OLD | NEW |