| 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 "V8TestInterface2.h" | 8 #include "V8TestInterface2.h" |
| 9 | 9 |
| 10 #include "bindings/tests/v8/V8TestInterface.h" | 10 #include "bindings/tests/v8/V8TestInterface.h" |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 v8SetReturnValueBool(info, result); | 212 v8SetReturnValueBool(info, result); |
| 213 } | 213 } |
| 214 | 214 |
| 215 static void deleteNamedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 215 static void deleteNamedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 216 { | 216 { |
| 217 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 217 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 218 TestInterface2V8Internal::deleteNamedItemMethod(info); | 218 TestInterface2V8Internal::deleteNamedItemMethod(info); |
| 219 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 219 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 220 } | 220 } |
| 221 | 221 |
| 222 static void stringifierMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 223 { |
| 224 TestInterface2* impl = V8TestInterface2::toNative(info.Holder()); |
| 225 v8SetReturnValueString(info, impl->stringifierMethod(), info.GetIsolate()); |
| 226 } |
| 227 |
| 228 static void stringifierMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 229 { |
| 230 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 231 TestInterface2V8Internal::stringifierMethodMethod(info); |
| 232 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 233 } |
| 234 |
| 235 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 236 { |
| 237 TestInterface2* impl = V8TestInterface2::toNative(info.Holder()); |
| 238 v8SetReturnValueString(info, impl->stringifierMethod(), info.GetIsolate()); |
| 239 } |
| 240 |
| 241 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 242 { |
| 243 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 244 TestInterface2V8Internal::toStringMethod(info); |
| 245 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 246 } |
| 247 |
| 222 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) | 248 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 223 { | 249 { |
| 224 v8::Isolate* isolate = info.GetIsolate(); | 250 v8::Isolate* isolate = info.GetIsolate(); |
| 225 RefPtr<TestInterface2> impl = TestInterface2::create(); | 251 RefPtr<TestInterface2> impl = TestInterface2::create(); |
| 226 | 252 |
| 227 v8::Handle<v8::Object> wrapper = wrap(impl.get(), info.Holder(), isolate); | 253 v8::Handle<v8::Object> wrapper = wrap(impl.get(), info.Holder(), isolate); |
| 228 v8SetReturnValue(info, wrapper); | 254 v8SetReturnValue(info, wrapper); |
| 229 } | 255 } |
| 230 | 256 |
| 231 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo
<v8::Value>& info) | 257 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo
<v8::Value>& info) |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 setObjectGroup(object, wrapper, isolate); | 441 setObjectGroup(object, wrapper, isolate); |
| 416 } | 442 } |
| 417 | 443 |
| 418 static const V8DOMConfiguration::MethodConfiguration V8TestInterface2Methods[] =
{ | 444 static const V8DOMConfiguration::MethodConfiguration V8TestInterface2Methods[] =
{ |
| 419 {"item", TestInterface2V8Internal::itemMethodCallback, 0, 1}, | 445 {"item", TestInterface2V8Internal::itemMethodCallback, 0, 1}, |
| 420 {"setItem", TestInterface2V8Internal::setItemMethodCallback, 0, 2}, | 446 {"setItem", TestInterface2V8Internal::setItemMethodCallback, 0, 2}, |
| 421 {"deleteItem", TestInterface2V8Internal::deleteItemMethodCallback, 0, 1}, | 447 {"deleteItem", TestInterface2V8Internal::deleteItemMethodCallback, 0, 1}, |
| 422 {"namedItem", TestInterface2V8Internal::namedItemMethodCallback, 0, 1}, | 448 {"namedItem", TestInterface2V8Internal::namedItemMethodCallback, 0, 1}, |
| 423 {"setNamedItem", TestInterface2V8Internal::setNamedItemMethodCallback, 0, 2}
, | 449 {"setNamedItem", TestInterface2V8Internal::setNamedItemMethodCallback, 0, 2}
, |
| 424 {"deleteNamedItem", TestInterface2V8Internal::deleteNamedItemMethodCallback,
0, 1}, | 450 {"deleteNamedItem", TestInterface2V8Internal::deleteNamedItemMethodCallback,
0, 1}, |
| 451 {"stringifierMethod", TestInterface2V8Internal::stringifierMethodMethodCallb
ack, 0, 0}, |
| 452 {"toString", TestInterface2V8Internal::toStringMethodCallback, 0, 0}, |
| 425 }; | 453 }; |
| 426 | 454 |
| 427 void V8TestInterface2::constructorCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 455 void V8TestInterface2::constructorCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 428 { | 456 { |
| 429 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor"); | 457 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor"); |
| 430 if (!info.IsConstructCall()) { | 458 if (!info.IsConstructCall()) { |
| 431 throwTypeError(ExceptionMessages::constructorNotCallableAsFunction("Test
Interface2"), info.GetIsolate()); | 459 throwTypeError(ExceptionMessages::constructorNotCallableAsFunction("Test
Interface2"), info.GetIsolate()); |
| 432 return; | 460 return; |
| 433 } | 461 } |
| 434 | 462 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 fromInternalPointer(object)->deref(); | 545 fromInternalPointer(object)->deref(); |
| 518 } | 546 } |
| 519 | 547 |
| 520 template<> | 548 template<> |
| 521 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) | 549 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) |
| 522 { | 550 { |
| 523 return toV8(impl, creationContext, isolate); | 551 return toV8(impl, creationContext, isolate); |
| 524 } | 552 } |
| 525 | 553 |
| 526 } // namespace WebCore | 554 } // namespace WebCore |
| OLD | NEW |