| 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 TestIntegerIndexedGlobal* impl = V8TestIntegerIndexedGlobal::toImpl(holder); | 61 TestIntegerIndexedGlobal* impl = V8TestIntegerIndexedGlobal::toImpl(holder); |
| 62 | 62 |
| 63 V8SetReturnValue(info, static_cast<double>(impl->length())); | 63 V8SetReturnValue(info, static_cast<double>(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 TestIntegerIndexedGlobal* impl = V8TestIntegerIndexedGlobal::toImpl(holder); | 73 TestIntegerIndexedGlobal* impl = V8TestIntegerIndexedGlobal::toImpl(holder); |
| 72 | 74 |
| 73 ExceptionState exceptionState(isolate, ExceptionState::kSetterContext, "TestIn
tegerIndexedGlobal", "length"); | 75 ExceptionState exceptionState(isolate, ExceptionState::kSetterContext, "TestIn
tegerIndexedGlobal", "length"); |
| 74 | 76 |
| 75 // Prepare the value to be set. | 77 // Prepare the value to be set. |
| 76 uint64_t cppValue = NativeValueTraits<IDLUnsignedLongLong>::NativeValue(info.G
etIsolate(), v8Value, exceptionState, kNormalConversion); | 78 uint64_t cppValue = NativeValueTraits<IDLUnsignedLongLong>::NativeValue(info.G
etIsolate(), 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 TestIntegerIndexedGlobal* NativeValueTraits<TestIntegerIndexedGlobal>::NativeVal
ue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionSt
ate) { | 239 TestIntegerIndexedGlobal* NativeValueTraits<TestIntegerIndexedGlobal>::NativeVal
ue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionSt
ate) { |
| 238 TestIntegerIndexedGlobal* nativeValue = V8TestIntegerIndexedGlobal::toImplWith
TypeCheck(isolate, value); | 240 TestIntegerIndexedGlobal* nativeValue = V8TestIntegerIndexedGlobal::toImplWith
TypeCheck(isolate, value); |
| 239 if (!nativeValue) { | 241 if (!nativeValue) { |
| 240 exceptionState.ThrowTypeError(ExceptionMessages::FailedToConvertJSValue( | 242 exceptionState.ThrowTypeError(ExceptionMessages::FailedToConvertJSValue( |
| 241 "TestIntegerIndexedGlobal")); | 243 "TestIntegerIndexedGlobal")); |
| 242 } | 244 } |
| 243 return nativeValue; | 245 return nativeValue; |
| 244 } | 246 } |
| 245 | 247 |
| 246 } // namespace blink | 248 } // namespace blink |
| OLD | NEW |