| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 // However, V8 implements toString in JavaScript, which requires | 341 // However, V8 implements toString in JavaScript, which requires |
| 342 // switching context of receiver. I consider it is dangerous. | 342 // switching context of receiver. I consider it is dangerous. |
| 343 v8::Handle<v8::Value> V8DOMWindow::toStringMethodCustom(const v8::Arguments& arg
s) | 343 v8::Handle<v8::Value> V8DOMWindow::toStringMethodCustom(const v8::Arguments& arg
s) |
| 344 { | 344 { |
| 345 v8::Handle<v8::Object> domWrapper = args.This()->FindInstanceInPrototypeChai
n(V8DOMWindow::GetTemplate(args.GetIsolate(), worldTypeInMainThread(args.GetIsol
ate()))); | 345 v8::Handle<v8::Object> domWrapper = args.This()->FindInstanceInPrototypeChai
n(V8DOMWindow::GetTemplate(args.GetIsolate(), worldTypeInMainThread(args.GetIsol
ate()))); |
| 346 if (domWrapper.IsEmpty()) | 346 if (domWrapper.IsEmpty()) |
| 347 return args.This()->ObjectProtoToString(); | 347 return args.This()->ObjectProtoToString(); |
| 348 return domWrapper->ObjectProtoToString(); | 348 return domWrapper->ObjectProtoToString(); |
| 349 } | 349 } |
| 350 | 350 |
| 351 v8::Handle<v8::Value> V8DOMWindow::releaseEventsMethodCustom(const v8::Arguments
& args) | |
| 352 { | |
| 353 return v8::Undefined(); | |
| 354 } | |
| 355 | |
| 356 v8::Handle<v8::Value> V8DOMWindow::captureEventsMethodCustom(const v8::Arguments
& args) | |
| 357 { | |
| 358 return v8::Undefined(); | |
| 359 } | |
| 360 | |
| 361 class DialogHandler { | 351 class DialogHandler { |
| 362 public: | 352 public: |
| 363 explicit DialogHandler(v8::Handle<v8::Value> dialogArguments) | 353 explicit DialogHandler(v8::Handle<v8::Value> dialogArguments) |
| 364 : m_dialogArguments(dialogArguments) | 354 : m_dialogArguments(dialogArguments) |
| 365 { | 355 { |
| 366 } | 356 } |
| 367 | 357 |
| 368 void dialogCreated(DOMWindow*); | 358 void dialogCreated(DOMWindow*); |
| 369 v8::Handle<v8::Value> returnValue() const; | 359 v8::Handle<v8::Value> returnValue() const; |
| 370 | 360 |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 ASSERT(!global.IsEmpty()); | 595 ASSERT(!global.IsEmpty()); |
| 606 return global; | 596 return global; |
| 607 } | 597 } |
| 608 | 598 |
| 609 v8::Handle<v8::Value> toV8ForMainWorld(DOMWindow* window, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) | 599 v8::Handle<v8::Value> toV8ForMainWorld(DOMWindow* window, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) |
| 610 { | 600 { |
| 611 return toV8(window, creationContext, isolate); | 601 return toV8(window, creationContext, isolate); |
| 612 } | 602 } |
| 613 | 603 |
| 614 } // namespace WebCore | 604 } // namespace WebCore |
| OLD | NEW |