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 "bindings/core/v8/SerializedScriptValue.h" | 7 #include "bindings/core/v8/SerializedScriptValue.h" |
8 #include "core/css/CSSRuleList.h" | 8 #include "core/css/CSSRuleList.h" |
9 #include "core/css/CSSStyleDeclaration.h" | 9 #include "core/css/CSSStyleDeclaration.h" |
10 #include "core/css/MediaQueryList.h" | 10 #include "core/css/MediaQueryList.h" |
| 11 #include "core/dom/Document.h" |
| 12 #include "core/frame/RemoteFrameClient.h" |
11 | 13 |
12 namespace blink { | 14 namespace blink { |
13 | 15 |
14 ExecutionContext* RemoteDOMWindow::getExecutionContext() const | 16 ExecutionContext* RemoteDOMWindow::getExecutionContext() const |
15 { | 17 { |
16 return nullptr; | 18 return nullptr; |
17 } | 19 } |
18 | 20 |
19 DEFINE_TRACE(RemoteDOMWindow) | 21 DEFINE_TRACE(RemoteDOMWindow) |
20 { | 22 { |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 RemoteDOMWindow::RemoteDOMWindow(RemoteFrame& frame) | 338 RemoteDOMWindow::RemoteDOMWindow(RemoteFrame& frame) |
337 : m_frame(&frame) | 339 : m_frame(&frame) |
338 { | 340 { |
339 } | 341 } |
340 | 342 |
341 void RemoteDOMWindow::frameDetached() | 343 void RemoteDOMWindow::frameDetached() |
342 { | 344 { |
343 m_frame = nullptr; | 345 m_frame = nullptr; |
344 } | 346 } |
345 | 347 |
| 348 void RemoteDOMWindow::schedulePostMessage(MessageEvent* event, PassRefPtr<Securi
tyOrigin> target, Document* source) |
| 349 { |
| 350 m_frame->client()->forwardPostMessage(event, target, source->frame()); |
| 351 } |
| 352 |
346 } // namespace blink | 353 } // namespace blink |
OLD | NEW |