| 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" |
| 11 #include "public/platform/WebFocusType.h" |
| 11 | 12 |
| 12 namespace blink { | 13 namespace blink { |
| 13 | 14 |
| 14 class Event; | 15 class Event; |
| 15 class IntRect; | 16 class IntRect; |
| 17 class LocalFrame; |
| 16 class RemoteDOMWindow; | 18 class RemoteDOMWindow; |
| 17 class RemoteFrameClient; | 19 class RemoteFrameClient; |
| 18 class RemoteFrameView; | 20 class RemoteFrameView; |
| 19 class WebLayer; | 21 class WebLayer; |
| 20 class WindowProxyManager; | 22 class WindowProxyManager; |
| 21 struct FrameLoadRequest; | 23 struct FrameLoadRequest; |
| 22 | 24 |
| 23 class CORE_EXPORT RemoteFrame: public Frame { | 25 class CORE_EXPORT RemoteFrame: public Frame { |
| 24 public: | 26 public: |
| 25 static PassRefPtrWillBeRawPtr<RemoteFrame> create(RemoteFrameClient*, FrameH
ost*, FrameOwner*); | 27 static PassRefPtrWillBeRawPtr<RemoteFrame> create(RemoteFrameClient*, FrameH
ost*, FrameOwner*); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 43 | 45 |
| 44 // FIXME: Remove this method once we have input routing in the browser | 46 // FIXME: Remove this method once we have input routing in the browser |
| 45 // process. See http://crbug.com/339659. | 47 // process. See http://crbug.com/339659. |
| 46 void forwardInputEvent(Event*); | 48 void forwardInputEvent(Event*); |
| 47 | 49 |
| 48 void frameRectsChanged(const IntRect& frameRect); | 50 void frameRectsChanged(const IntRect& frameRect); |
| 49 | 51 |
| 50 void setRemotePlatformLayer(WebLayer*); | 52 void setRemotePlatformLayer(WebLayer*); |
| 51 WebLayer* remotePlatformLayer() const { return m_remotePlatformLayer; } | 53 WebLayer* remotePlatformLayer() const { return m_remotePlatformLayer; } |
| 52 | 54 |
| 55 void advanceFocus(WebFocusType, LocalFrame* source); |
| 56 |
| 53 void setView(PassRefPtrWillBeRawPtr<RemoteFrameView>); | 57 void setView(PassRefPtrWillBeRawPtr<RemoteFrameView>); |
| 54 void createView(); | 58 void createView(); |
| 55 | 59 |
| 56 RemoteFrameView* view() const; | 60 RemoteFrameView* view() const; |
| 57 | 61 |
| 58 private: | 62 private: |
| 59 RemoteFrame(RemoteFrameClient*, FrameHost*, FrameOwner*); | 63 RemoteFrame(RemoteFrameClient*, FrameHost*, FrameOwner*); |
| 60 | 64 |
| 61 // Internal Frame helper overrides: | 65 // Internal Frame helper overrides: |
| 62 WindowProxyManager* windowProxyManager() const override { return m_windowPro
xyManager.get(); } | 66 WindowProxyManager* windowProxyManager() const override { return m_windowPro
xyManager.get(); } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 73 inline RemoteFrameView* RemoteFrame::view() const | 77 inline RemoteFrameView* RemoteFrame::view() const |
| 74 { | 78 { |
| 75 return m_view.get(); | 79 return m_view.get(); |
| 76 } | 80 } |
| 77 | 81 |
| 78 DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(),
remoteFrame.isRemoteFrame()); | 82 DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(),
remoteFrame.isRemoteFrame()); |
| 79 | 83 |
| 80 } // namespace blink | 84 } // namespace blink |
| 81 | 85 |
| 82 #endif // RemoteFrame_h | 86 #endif // RemoteFrame_h |
| OLD | NEW |