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 SVGTestInterface* impl = V8SVGTestInterface::toImpl(holder); | 61 SVGTestInterface* impl = V8SVGTestInterface::toImpl(holder); |
62 | 62 |
63 V8SetReturnValueString(info, impl->FastGetAttribute(SVGNames::typeAttr), info.
GetIsolate()); | 63 V8SetReturnValueString(info, impl->FastGetAttribute(SVGNames::typeAttr), info.
GetIsolate()); |
64 } | 64 } |
65 | 65 |
66 static void typeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Function
CallbackInfo<v8::Value>& info) { | 66 static void typeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Function
CallbackInfo<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 SVGTestInterface* impl = V8SVGTestInterface::toImpl(holder); | 73 SVGTestInterface* impl = V8SVGTestInterface::toImpl(holder); |
72 | 74 |
73 // Skip on compact node DOMString getters. | 75 // Skip on compact node DOMString getters. |
74 V0CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 76 V0CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
75 | 77 |
76 // Prepare the value to be set. | 78 // Prepare the value to be set. |
77 V8StringResource<> cppValue = v8Value; | 79 V8StringResource<> cppValue = v8Value; |
78 if (!cppValue.Prepare()) | 80 if (!cppValue.Prepare()) |
79 return; | 81 return; |
80 | 82 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 SVGTestInterface* NativeValueTraits<SVGTestInterface>::NativeValue(v8::Isolate*
isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { | 135 SVGTestInterface* NativeValueTraits<SVGTestInterface>::NativeValue(v8::Isolate*
isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { |
134 SVGTestInterface* nativeValue = V8SVGTestInterface::toImplWithTypeCheck(isolat
e, value); | 136 SVGTestInterface* nativeValue = V8SVGTestInterface::toImplWithTypeCheck(isolat
e, value); |
135 if (!nativeValue) { | 137 if (!nativeValue) { |
136 exceptionState.ThrowTypeError(ExceptionMessages::FailedToConvertJSValue( | 138 exceptionState.ThrowTypeError(ExceptionMessages::FailedToConvertJSValue( |
137 "SVGTestInterface")); | 139 "SVGTestInterface")); |
138 } | 140 } |
139 return nativeValue; | 141 return nativeValue; |
140 } | 142 } |
141 | 143 |
142 } // namespace blink | 144 } // namespace blink |
OLD | NEW |