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. | 5 // This file has been auto-generated by code_generator_v8.py. |
6 // DO NOT MODIFY! | 6 // DO NOT MODIFY! |
7 | 7 |
8 // This file has been generated from the Jinja2 template in | 8 // This file has been generated from the Jinja2 template in |
9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl | 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl |
10 | 10 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 TestIntegerIndexed* impl = V8TestIntegerIndexed::toImpl(holder); | 61 TestIntegerIndexed* impl = V8TestIntegerIndexed::toImpl(holder); |
62 | 62 |
63 V8SetReturnValueInt(info, impl->length()); | 63 V8SetReturnValueInt(info, impl->length()); |
64 } | 64 } |
65 | 65 |
66 static void lengthAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Functi
onCallbackInfo<v8::Value>& info) { | 66 static void lengthAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Functi
onCallbackInfo<v8::Value>& info) { |
67 v8::Isolate* isolate = info.GetIsolate(); | 67 v8::Isolate* isolate = info.GetIsolate(); |
68 ALLOW_UNUSED_LOCAL(isolate); | 68 ALLOW_UNUSED_LOCAL(isolate); |
69 | 69 |
70 v8::Local<v8::Object> holder = info.Holder(); | 70 v8::Local<v8::Object> holder = info.Holder(); |
| 71 ALLOW_UNUSED_LOCAL(holder); |
| 72 |
71 TestIntegerIndexed* impl = V8TestIntegerIndexed::toImpl(holder); | 73 TestIntegerIndexed* impl = V8TestIntegerIndexed::toImpl(holder); |
72 | 74 |
73 ExceptionState exceptionState(isolate, ExceptionState::kSetterContext, "TestIn
tegerIndexed", "length"); | 75 ExceptionState exceptionState(isolate, ExceptionState::kSetterContext, "TestIn
tegerIndexed", "length"); |
74 | 76 |
75 // Prepare the value to be set. | 77 // Prepare the value to be set. |
76 int16_t cppValue = NativeValueTraits<IDLShort>::NativeValue(info.GetIsolate(),
v8Value, exceptionState, kNormalConversion); | 78 int16_t cppValue = NativeValueTraits<IDLShort>::NativeValue(info.GetIsolate(),
v8Value, exceptionState, kNormalConversion); |
77 if (exceptionState.HadException()) | 79 if (exceptionState.HadException()) |
78 return; | 80 return; |
79 | 81 |
80 impl->setLength(cppValue); | 82 impl->setLength(cppValue); |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 TestIntegerIndexed* NativeValueTraits<TestIntegerIndexed>::NativeValue(v8::Isola
te* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { | 218 TestIntegerIndexed* NativeValueTraits<TestIntegerIndexed>::NativeValue(v8::Isola
te* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { |
217 TestIntegerIndexed* nativeValue = V8TestIntegerIndexed::toImplWithTypeCheck(is
olate, value); | 219 TestIntegerIndexed* nativeValue = V8TestIntegerIndexed::toImplWithTypeCheck(is
olate, value); |
218 if (!nativeValue) { | 220 if (!nativeValue) { |
219 exceptionState.ThrowTypeError(ExceptionMessages::FailedToConvertJSValue( | 221 exceptionState.ThrowTypeError(ExceptionMessages::FailedToConvertJSValue( |
220 "TestIntegerIndexed")); | 222 "TestIntegerIndexed")); |
221 } | 223 } |
222 return nativeValue; | 224 return nativeValue; |
223 } | 225 } |
224 | 226 |
225 } // namespace blink | 227 } // namespace blink |
OLD | NEW |