| 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. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
| 6 | 6 |
| 7 #include "config.h" | 7 #include "config.h" |
| 8 #include "V8TestNode.h" | 8 #include "V8TestNode.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 141 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 142 TestNodeV8Internal::hrefByteStringAttributeGetter(info); | 142 TestNodeV8Internal::hrefByteStringAttributeGetter(info); |
| 143 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 143 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 144 } | 144 } |
| 145 | 145 |
| 146 static void hrefByteStringAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::FunctionCallbackInfo<v8::Value>& info) | 146 static void hrefByteStringAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::FunctionCallbackInfo<v8::Value>& info) |
| 147 { | 147 { |
| 148 v8::Local<v8::Object> holder = info.Holder(); | 148 v8::Local<v8::Object> holder = info.Holder(); |
| 149 ExceptionState exceptionState(ExceptionState::SetterContext, "hrefByteString
", "TestNode", holder, info.GetIsolate()); | 149 ExceptionState exceptionState(ExceptionState::SetterContext, "hrefByteString
", "TestNode", holder, info.GetIsolate()); |
| 150 TestNode* impl = V8TestNode::toImpl(holder); | 150 TestNode* impl = V8TestNode::toImpl(holder); |
| 151 V8StringResource<> cppValue = toByteString(v8Value, exceptionState); | 151 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep
tionState); |
| 152 if (exceptionState.throwIfNeeded()) | 152 if (exceptionState.throwIfNeeded()) |
| 153 return; | 153 return; |
| 154 impl->setHrefByteString(cppValue); | 154 impl->setHrefByteString(cppValue); |
| 155 } | 155 } |
| 156 | 156 |
| 157 static void hrefByteStringAttributeSetterCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 157 static void hrefByteStringAttributeSetterCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 158 { | 158 { |
| 159 v8::Local<v8::Value> v8Value = info[0]; | 159 v8::Local<v8::Value> v8Value = info[0]; |
| 160 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 160 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 161 TestNodeV8Internal::hrefByteStringAttributeSetter(v8Value, info); | 161 TestNodeV8Internal::hrefByteStringAttributeSetter(v8Value, info); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 } | 243 } |
| 244 | 244 |
| 245 void V8TestNode::derefObject(ScriptWrappable* scriptWrappable) | 245 void V8TestNode::derefObject(ScriptWrappable* scriptWrappable) |
| 246 { | 246 { |
| 247 #if !ENABLE(OILPAN) | 247 #if !ENABLE(OILPAN) |
| 248 scriptWrappable->toImpl<TestNode>()->deref(); | 248 scriptWrappable->toImpl<TestNode>()->deref(); |
| 249 #endif | 249 #endif |
| 250 } | 250 } |
| 251 | 251 |
| 252 } // namespace blink | 252 } // namespace blink |
| OLD | NEW |