| 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 RemoteFrame_h | 5 #ifndef RemoteFrame_h |
| 6 #define RemoteFrame_h | 6 #define RemoteFrame_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/dom/RemoteSecurityContext.h" | 9 #include "core/dom/RemoteSecurityContext.h" |
| 10 #include "core/frame/Frame.h" | 10 #include "core/frame/Frame.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 void setRemotePlatformLayer(WebLayer*); | 53 void setRemotePlatformLayer(WebLayer*); |
| 54 WebLayer* remotePlatformLayer() const { return m_remotePlatformLayer; } | 54 WebLayer* remotePlatformLayer() const { return m_remotePlatformLayer; } |
| 55 | 55 |
| 56 void advanceFocus(WebFocusType, LocalFrame* source); | 56 void advanceFocus(WebFocusType, LocalFrame* source); |
| 57 | 57 |
| 58 void setView(RemoteFrameView*); | 58 void setView(RemoteFrameView*); |
| 59 void createView(); | 59 void createView(); |
| 60 | 60 |
| 61 RemoteFrameView* view() const; | 61 RemoteFrameView* view() const; |
| 62 | 62 |
| 63 RemoteFrameClient* client() const; |
| 64 |
| 63 private: | 65 private: |
| 64 RemoteFrame(RemoteFrameClient*, FrameHost*, FrameOwner*); | 66 RemoteFrame(RemoteFrameClient*, FrameHost*, FrameOwner*); |
| 65 | 67 |
| 66 // Internal Frame helper overrides: | 68 // Internal Frame helper overrides: |
| 67 WindowProxyManager* getWindowProxyManager() const override { return m_window
ProxyManager.get(); } | 69 WindowProxyManager* getWindowProxyManager() const override { return m_window
ProxyManager.get(); } |
| 68 | 70 |
| 69 RemoteFrameClient* remoteFrameClient() const; | |
| 70 | |
| 71 Member<RemoteFrameView> m_view; | 71 Member<RemoteFrameView> m_view; |
| 72 Member<RemoteSecurityContext> m_securityContext; | 72 Member<RemoteSecurityContext> m_securityContext; |
| 73 Member<RemoteDOMWindow> m_domWindow; | 73 Member<RemoteDOMWindow> m_domWindow; |
| 74 Member<WindowProxyManager> m_windowProxyManager; | 74 Member<WindowProxyManager> m_windowProxyManager; |
| 75 WebLayer* m_remotePlatformLayer; | 75 WebLayer* m_remotePlatformLayer; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 inline RemoteFrameView* RemoteFrame::view() const | 78 inline RemoteFrameView* RemoteFrame::view() const |
| 79 { | 79 { |
| 80 return m_view.get(); | 80 return m_view.get(); |
| 81 } | 81 } |
| 82 | 82 |
| 83 DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(),
remoteFrame.isRemoteFrame()); | 83 DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(),
remoteFrame.isRemoteFrame()); |
| 84 | 84 |
| 85 } // namespace blink | 85 } // namespace blink |
| 86 | 86 |
| 87 #endif // RemoteFrame_h | 87 #endif // RemoteFrame_h |
| OLD | NEW |