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 TestIntegerIndexedPrimaryGlobal* impl = V8TestIntegerIndexedPrimaryGlobal::toI
mpl(holder); | 61 TestIntegerIndexedPrimaryGlobal* impl = V8TestIntegerIndexedPrimaryGlobal::toI
mpl(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 TestIntegerIndexedPrimaryGlobal* impl = V8TestIntegerIndexedPrimaryGlobal::toI
mpl(holder); | 73 TestIntegerIndexedPrimaryGlobal* impl = V8TestIntegerIndexedPrimaryGlobal::toI
mpl(holder); |
72 | 74 |
73 ExceptionState exceptionState(isolate, ExceptionState::kSetterContext, "TestIn
tegerIndexedPrimaryGlobal", "length"); | 75 ExceptionState exceptionState(isolate, ExceptionState::kSetterContext, "TestIn
tegerIndexedPrimaryGlobal", "length"); |
74 | 76 |
75 // Prepare the value to be set. | 77 // Prepare the value to be set. |
76 int8_t cppValue = NativeValueTraits<IDLByte>::NativeValue(info.GetIsolate(), v
8Value, exceptionState, kNormalConversion); | 78 int8_t cppValue = NativeValueTraits<IDLByte>::NativeValue(info.GetIsolate(), v
8Value, 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 TestIntegerIndexedPrimaryGlobal* NativeValueTraits<TestIntegerIndexedPrimaryGlob
al>::NativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionStat
e& exceptionState) { | 239 TestIntegerIndexedPrimaryGlobal* NativeValueTraits<TestIntegerIndexedPrimaryGlob
al>::NativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionStat
e& exceptionState) { |
238 TestIntegerIndexedPrimaryGlobal* nativeValue = V8TestIntegerIndexedPrimaryGlob
al::toImplWithTypeCheck(isolate, value); | 240 TestIntegerIndexedPrimaryGlobal* nativeValue = V8TestIntegerIndexedPrimaryGlob
al::toImplWithTypeCheck(isolate, value); |
239 if (!nativeValue) { | 241 if (!nativeValue) { |
240 exceptionState.ThrowTypeError(ExceptionMessages::FailedToConvertJSValue( | 242 exceptionState.ThrowTypeError(ExceptionMessages::FailedToConvertJSValue( |
241 "TestIntegerIndexedPrimaryGlobal")); | 243 "TestIntegerIndexedPrimaryGlobal")); |
242 } | 244 } |
243 return nativeValue; | 245 return nativeValue; |
244 } | 246 } |
245 | 247 |
246 } // namespace blink | 248 } // namespace blink |
OLD | NEW |