| 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/RemoteDOMWindow.h" | 5 #include "core/frame/RemoteDOMWindow.h" |
| 6 | 6 |
| 7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
| 8 #include "core/frame/RemoteFrameClient.h" | 8 #include "core/frame/RemoteFrameClient.h" |
| 9 #include "platform/weborigin/SecurityOrigin.h" |
| 9 | 10 |
| 10 namespace blink { | 11 namespace blink { |
| 11 | 12 |
| 12 ExecutionContext* RemoteDOMWindow::getExecutionContext() const { | 13 ExecutionContext* RemoteDOMWindow::getExecutionContext() const { |
| 13 return nullptr; | 14 return nullptr; |
| 14 } | 15 } |
| 15 | 16 |
| 16 DEFINE_TRACE(RemoteDOMWindow) { | 17 DEFINE_TRACE(RemoteDOMWindow) { |
| 17 DOMWindow::trace(visitor); | 18 DOMWindow::trace(visitor); |
| 18 } | 19 } |
| 19 | 20 |
| 20 void RemoteDOMWindow::blur() { | 21 void RemoteDOMWindow::blur() { |
| 21 // FIXME: Implement. | 22 // FIXME: Implement. |
| 22 } | 23 } |
| 23 | 24 |
| 24 RemoteDOMWindow::RemoteDOMWindow(RemoteFrame& frame) : DOMWindow(frame) {} | 25 RemoteDOMWindow::RemoteDOMWindow(RemoteFrame& frame) : DOMWindow(frame) {} |
| 25 | 26 |
| 26 void RemoteDOMWindow::frameDetached() { | 27 void RemoteDOMWindow::frameDetached() { |
| 27 disconnectFromFrame(); | 28 disconnectFromFrame(); |
| 28 } | 29 } |
| 29 | 30 |
| 30 void RemoteDOMWindow::schedulePostMessage(MessageEvent* event, | 31 void RemoteDOMWindow::schedulePostMessage(MessageEvent* event, |
| 31 PassRefPtr<SecurityOrigin> target, | 32 PassRefPtr<SecurityOrigin> target, |
| 32 Document* source) { | 33 Document* source) { |
| 33 frame()->client()->forwardPostMessage(event, std::move(target), | 34 frame()->client()->forwardPostMessage(event, std::move(target), |
| 34 source->frame()); | 35 source->frame()); |
| 35 } | 36 } |
| 36 | 37 |
| 37 } // namespace blink | 38 } // namespace blink |
| OLD | NEW |