| 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 #ifndef RemoteDOMWindow_h | 5 #ifndef RemoteDOMWindow_h |
| 6 #define RemoteDOMWindow_h | 6 #define RemoteDOMWindow_h |
| 7 | 7 |
| 8 #include "core/frame/DOMWindow.h" | 8 #include "core/frame/DOMWindow.h" |
| 9 #include "core/frame/RemoteFrame.h" | 9 #include "core/frame/RemoteFrame.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class RemoteDOMWindow final : public DOMWindow { | 13 class RemoteDOMWindow final : public DOMWindow { |
| 14 public: | 14 public: |
| 15 static PassRefPtrWillBeRawPtr<RemoteDOMWindow> create(RemoteFrame& frame) | 15 static PassRefPtrWillBeRawPtr<RemoteDOMWindow> create(RemoteFrame& frame) |
| 16 { | 16 { |
| 17 return adoptRefWillBeNoop(new RemoteDOMWindow(frame)); | 17 return adoptRefWillBeNoop(new RemoteDOMWindow(frame)); |
| 18 } | 18 } |
| 19 | 19 |
| 20 // EventTarget overrides: | 20 // EventTarget overrides: |
| 21 const AtomicString& interfaceName() const override; |
| 21 ExecutionContext* executionContext() const override; | 22 ExecutionContext* executionContext() const override; |
| 22 | 23 |
| 23 // DOMWindow overrides: | 24 // DOMWindow overrides: |
| 24 DECLARE_VIRTUAL_TRACE(); | 25 DECLARE_VIRTUAL_TRACE(); |
| 25 bool isRemoteDOMWindow() const override { return true; } | 26 bool isRemoteDOMWindow() const override { return true; } |
| 26 RemoteFrame* frame() const override; | 27 RemoteFrame* frame() const override; |
| 27 Screen* screen() const override; | 28 Screen* screen() const override; |
| 28 History* history() const override; | 29 History* history() const override; |
| 29 BarProp* locationbar() const override; | 30 BarProp* locationbar() const override; |
| 30 BarProp* menubar() const override; | 31 BarProp* menubar() const override; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 85 |
| 85 private: | 86 private: |
| 86 explicit RemoteDOMWindow(RemoteFrame&); | 87 explicit RemoteDOMWindow(RemoteFrame&); |
| 87 | 88 |
| 88 RawPtrWillBeMember<RemoteFrame> m_frame; | 89 RawPtrWillBeMember<RemoteFrame> m_frame; |
| 89 }; | 90 }; |
| 90 | 91 |
| 91 } // namespace blink | 92 } // namespace blink |
| 92 | 93 |
| 93 #endif // DOMWindow_h | 94 #endif // DOMWindow_h |
| OLD | NEW |