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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(holder
); | 70 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(holder
); |
71 | 71 |
72 V8SetReturnValueInt(info, impl->longAttribute()); | 72 V8SetReturnValueInt(info, impl->longAttribute()); |
73 } | 73 } |
74 | 74 |
75 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:FunctionCallbackInfo<v8::Value>& info) { | 75 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:FunctionCallbackInfo<v8::Value>& info) { |
76 v8::Isolate* isolate = info.GetIsolate(); | 76 v8::Isolate* isolate = info.GetIsolate(); |
77 ALLOW_UNUSED_LOCAL(isolate); | 77 ALLOW_UNUSED_LOCAL(isolate); |
78 | 78 |
79 v8::Local<v8::Object> holder = info.Holder(); | 79 v8::Local<v8::Object> holder = info.Holder(); |
| 80 ALLOW_UNUSED_LOCAL(holder); |
| 81 |
80 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(holder
); | 82 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(holder
); |
81 | 83 |
82 ExceptionState exceptionState(isolate, ExceptionState::kSetterContext, "TestIn
terfaceCheckSecurity", "longAttribute"); | 84 ExceptionState exceptionState(isolate, ExceptionState::kSetterContext, "TestIn
terfaceCheckSecurity", "longAttribute"); |
83 | 85 |
84 // Prepare the value to be set. | 86 // Prepare the value to be set. |
85 int32_t cppValue = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(),
v8Value, exceptionState, kNormalConversion); | 87 int32_t cppValue = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(),
v8Value, exceptionState, kNormalConversion); |
86 if (exceptionState.HadException()) | 88 if (exceptionState.HadException()) |
87 return; | 89 return; |
88 | 90 |
89 impl->setLongAttribute(cppValue); | 91 impl->setLongAttribute(cppValue); |
90 } | 92 } |
91 | 93 |
92 static void doNotCheckSecurityLongAttributeAttributeGetter(const v8::PropertyCal
lbackInfo<v8::Value>& info) { | 94 static void doNotCheckSecurityLongAttributeAttributeGetter(const v8::PropertyCal
lbackInfo<v8::Value>& info) { |
93 v8::Local<v8::Object> holder = info.Holder(); | 95 v8::Local<v8::Object> holder = info.Holder(); |
94 | 96 |
95 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(holder
); | 97 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(holder
); |
96 | 98 |
97 V8SetReturnValueInt(info, impl->doNotCheckSecurityLongAttribute()); | 99 V8SetReturnValueInt(info, impl->doNotCheckSecurityLongAttribute()); |
98 } | 100 } |
99 | 101 |
100 static void doNotCheckSecurityLongAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) { | 102 static void doNotCheckSecurityLongAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) { |
101 v8::Isolate* isolate = info.GetIsolate(); | 103 v8::Isolate* isolate = info.GetIsolate(); |
102 ALLOW_UNUSED_LOCAL(isolate); | 104 ALLOW_UNUSED_LOCAL(isolate); |
103 | 105 |
104 v8::Local<v8::Object> holder = info.Holder(); | 106 v8::Local<v8::Object> holder = info.Holder(); |
| 107 ALLOW_UNUSED_LOCAL(holder); |
| 108 |
105 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(holder
); | 109 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(holder
); |
106 | 110 |
107 ExceptionState exceptionState(isolate, ExceptionState::kSetterContext, "TestIn
terfaceCheckSecurity", "doNotCheckSecurityLongAttribute"); | 111 ExceptionState exceptionState(isolate, ExceptionState::kSetterContext, "TestIn
terfaceCheckSecurity", "doNotCheckSecurityLongAttribute"); |
108 | 112 |
109 // Prepare the value to be set. | 113 // Prepare the value to be set. |
110 int32_t cppValue = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(),
v8Value, exceptionState, kNormalConversion); | 114 int32_t cppValue = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(),
v8Value, exceptionState, kNormalConversion); |
111 if (exceptionState.HadException()) | 115 if (exceptionState.HadException()) |
112 return; | 116 return; |
113 | 117 |
114 impl->setDoNotCheckSecurityLongAttribute(cppValue); | 118 impl->setDoNotCheckSecurityLongAttribute(cppValue); |
(...skipping 13 matching lines...) Expand all Loading... |
128 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(holder
); | 132 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(holder
); |
129 | 133 |
130 V8SetReturnValueInt(info, impl->doNotCheckSecurityOnSetterLongAttribute()); | 134 V8SetReturnValueInt(info, impl->doNotCheckSecurityOnSetterLongAttribute()); |
131 } | 135 } |
132 | 136 |
133 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetter(v8::Local<v8:
:Value> v8Value, const V8CrossOriginSetterInfo& info) { | 137 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetter(v8::Local<v8:
:Value> v8Value, const V8CrossOriginSetterInfo& info) { |
134 v8::Isolate* isolate = info.GetIsolate(); | 138 v8::Isolate* isolate = info.GetIsolate(); |
135 ALLOW_UNUSED_LOCAL(isolate); | 139 ALLOW_UNUSED_LOCAL(isolate); |
136 | 140 |
137 v8::Local<v8::Object> holder = info.Holder(); | 141 v8::Local<v8::Object> holder = info.Holder(); |
| 142 ALLOW_UNUSED_LOCAL(holder); |
| 143 |
138 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(holder
); | 144 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(holder
); |
139 | 145 |
140 ExceptionState exceptionState(isolate, ExceptionState::kSetterContext, "TestIn
terfaceCheckSecurity", "doNotCheckSecurityOnSetterLongAttribute"); | 146 ExceptionState exceptionState(isolate, ExceptionState::kSetterContext, "TestIn
terfaceCheckSecurity", "doNotCheckSecurityOnSetterLongAttribute"); |
141 | 147 |
142 // Prepare the value to be set. | 148 // Prepare the value to be set. |
143 int32_t cppValue = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(),
v8Value, exceptionState, kNormalConversion); | 149 int32_t cppValue = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(),
v8Value, exceptionState, kNormalConversion); |
144 if (exceptionState.HadException()) | 150 if (exceptionState.HadException()) |
145 return; | 151 return; |
146 | 152 |
147 impl->setDoNotCheckSecurityOnSetterLongAttribute(cppValue); | 153 impl->setDoNotCheckSecurityOnSetterLongAttribute(cppValue); |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 TestInterfaceCheckSecurity* NativeValueTraits<TestInterfaceCheckSecurity>::Nativ
eValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& excepti
onState) { | 563 TestInterfaceCheckSecurity* NativeValueTraits<TestInterfaceCheckSecurity>::Nativ
eValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& excepti
onState) { |
558 TestInterfaceCheckSecurity* nativeValue = V8TestInterfaceCheckSecurity::toImpl
WithTypeCheck(isolate, value); | 564 TestInterfaceCheckSecurity* nativeValue = V8TestInterfaceCheckSecurity::toImpl
WithTypeCheck(isolate, value); |
559 if (!nativeValue) { | 565 if (!nativeValue) { |
560 exceptionState.ThrowTypeError(ExceptionMessages::FailedToConvertJSValue( | 566 exceptionState.ThrowTypeError(ExceptionMessages::FailedToConvertJSValue( |
561 "TestInterfaceCheckSecurity")); | 567 "TestInterfaceCheckSecurity")); |
562 } | 568 } |
563 return nativeValue; | 569 return nativeValue; |
564 } | 570 } |
565 | 571 |
566 } // namespace blink | 572 } // namespace blink |
OLD | NEW |