| 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 #include "config.h" | 5 #include "config.h" |
| 6 #include "core/frame/DOMWindow.h" | 6 #include "core/frame/DOMWindow.h" |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptCallStackFactory.h" | 8 #include "bindings/core/v8/ScriptCallStackFactory.h" |
| 9 #include "core/dom/Document.h" | 9 #include "core/dom/Document.h" |
| 10 #include "core/dom/ExceptionCode.h" | 10 #include "core/dom/ExceptionCode.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 DOMWindow::DOMWindow() | 26 DOMWindow::DOMWindow() |
| 27 : m_windowIsClosing(false) | 27 : m_windowIsClosing(false) |
| 28 { | 28 { |
| 29 } | 29 } |
| 30 | 30 |
| 31 DOMWindow::~DOMWindow() | 31 DOMWindow::~DOMWindow() |
| 32 { | 32 { |
| 33 } | 33 } |
| 34 | 34 |
| 35 v8::Handle<v8::Object> DOMWindow::wrap(v8::Handle<v8::Object> creationContext, v
8::Isolate*) | 35 v8::Local<v8::Object> DOMWindow::wrap(v8::Local<v8::Object> creationContext, v8:
:Isolate*) |
| 36 { | 36 { |
| 37 // DOMWindow must never be wrapped with wrap method. The wrappers must be | 37 // DOMWindow must never be wrapped with wrap method. The wrappers must be |
| 38 // created at WindowProxy::installDOMWindow(). | 38 // created at WindowProxy::installDOMWindow(). |
| 39 RELEASE_ASSERT_NOT_REACHED(); | 39 RELEASE_ASSERT_NOT_REACHED(); |
| 40 return v8::Handle<v8::Object>(); | 40 return v8::Local<v8::Object>(); |
| 41 } | 41 } |
| 42 | 42 |
| 43 v8::Handle<v8::Object> DOMWindow::associateWithWrapper(v8::Isolate*, const Wrapp
erTypeInfo*, v8::Handle<v8::Object> wrapper) | 43 v8::Local<v8::Object> DOMWindow::associateWithWrapper(v8::Isolate*, const Wrappe
rTypeInfo*, v8::Local<v8::Object> wrapper) |
| 44 { | 44 { |
| 45 RELEASE_ASSERT_NOT_REACHED(); // same as wrap method | 45 RELEASE_ASSERT_NOT_REACHED(); // same as wrap method |
| 46 return v8::Handle<v8::Object>(); | 46 return v8::Local<v8::Object>(); |
| 47 } | 47 } |
| 48 | 48 |
| 49 const AtomicString& DOMWindow::interfaceName() const | 49 const AtomicString& DOMWindow::interfaceName() const |
| 50 { | 50 { |
| 51 return EventTargetNames::DOMWindow; | 51 return EventTargetNames::DOMWindow; |
| 52 } | 52 } |
| 53 | 53 |
| 54 Location* DOMWindow::location() const | 54 Location* DOMWindow::location() const |
| 55 { | 55 { |
| 56 if (!m_location) | 56 if (!m_location) |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 return message + "Protocols, domains, and ports must match."; | 278 return message + "Protocols, domains, and ports must match."; |
| 279 } | 279 } |
| 280 | 280 |
| 281 DEFINE_TRACE(DOMWindow) | 281 DEFINE_TRACE(DOMWindow) |
| 282 { | 282 { |
| 283 visitor->trace(m_location); | 283 visitor->trace(m_location); |
| 284 EventTargetWithInlineData::trace(visitor); | 284 EventTargetWithInlineData::trace(visitor); |
| 285 } | 285 } |
| 286 | 286 |
| 287 } // namespace blink | 287 } // namespace blink |
| OLD | NEW |