| 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 "core/frame/DOMWindow.h" | 5 #include "core/frame/DOMWindow.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ScriptCallStack.h" | 7 #include "bindings/core/v8/ScriptCallStack.h" |
| 8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
| 9 #include "core/dom/ExceptionCode.h" | 9 #include "core/dom/ExceptionCode.h" |
| 10 #include "core/dom/ExecutionContext.h" | 10 #include "core/dom/ExecutionContext.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 { | 37 { |
| 38 } | 38 } |
| 39 | 39 |
| 40 DOMWindow::~DOMWindow() | 40 DOMWindow::~DOMWindow() |
| 41 { | 41 { |
| 42 } | 42 } |
| 43 | 43 |
| 44 v8::Local<v8::Object> DOMWindow::wrap(v8::Isolate*, v8::Local<v8::Object> creati
onContext) | 44 v8::Local<v8::Object> DOMWindow::wrap(v8::Isolate*, v8::Local<v8::Object> creati
onContext) |
| 45 { | 45 { |
| 46 // DOMWindow must never be wrapped with wrap method. The wrappers must be | 46 // DOMWindow must never be wrapped with wrap method. The wrappers must be |
| 47 // created at WindowProxy::installDOMWindow(). | 47 // created at WindowProxy::createContext() and setupWindowPrototypeChain(). |
| 48 RELEASE_NOTREACHED(); | 48 RELEASE_NOTREACHED(); |
| 49 return v8::Local<v8::Object>(); | 49 return v8::Local<v8::Object>(); |
| 50 } | 50 } |
| 51 | 51 |
| 52 v8::Local<v8::Object> DOMWindow::associateWithWrapper(v8::Isolate*, const Wrappe
rTypeInfo*, v8::Local<v8::Object> wrapper) | 52 v8::Local<v8::Object> DOMWindow::associateWithWrapper(v8::Isolate*, const Wrappe
rTypeInfo*, v8::Local<v8::Object> wrapper) |
| 53 { | 53 { |
| 54 RELEASE_NOTREACHED(); // same as wrap method | 54 RELEASE_NOTREACHED(); // same as wrap method |
| 55 return v8::Local<v8::Object>(); | 55 return v8::Local<v8::Object>(); |
| 56 } | 56 } |
| 57 | 57 |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 page->focusController().focusDocumentView(frame(), true /* notifyEmbedder */
); | 372 page->focusController().focusDocumentView(frame(), true /* notifyEmbedder */
); |
| 373 } | 373 } |
| 374 | 374 |
| 375 DEFINE_TRACE(DOMWindow) | 375 DEFINE_TRACE(DOMWindow) |
| 376 { | 376 { |
| 377 visitor->trace(m_location); | 377 visitor->trace(m_location); |
| 378 EventTargetWithInlineData::trace(visitor); | 378 EventTargetWithInlineData::trace(visitor); |
| 379 } | 379 } |
| 380 | 380 |
| 381 } // namespace blink | 381 } // namespace blink |
| OLD | NEW |