| 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 29 matching lines...) Expand all Loading... |
| 40 void disconnectOwnerElement() override; | 40 void disconnectOwnerElement() override; |
| 41 bool prepareForCommit() override; | 41 bool prepareForCommit() override; |
| 42 bool shouldClose() override; | 42 bool shouldClose() override; |
| 43 | 43 |
| 44 // FIXME: Remove this method once we have input routing in the browser | 44 // FIXME: Remove this method once we have input routing in the browser |
| 45 // process. See http://crbug.com/339659. | 45 // process. See http://crbug.com/339659. |
| 46 void forwardInputEvent(Event*); | 46 void forwardInputEvent(Event*); |
| 47 | 47 |
| 48 void frameRectsChanged(const IntRect& frameRect); | 48 void frameRectsChanged(const IntRect& frameRect); |
| 49 | 49 |
| 50 void visibilityChanged(bool visible); |
| 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 |
| 53 void setView(PassRefPtrWillBeRawPtr<RemoteFrameView>); | 55 void setView(PassRefPtrWillBeRawPtr<RemoteFrameView>); |
| 54 void createView(); | 56 void createView(); |
| 55 | 57 |
| 56 RemoteFrameView* view() const; | 58 RemoteFrameView* view() const; |
| 57 | 59 |
| 58 private: | 60 private: |
| 59 RemoteFrame(RemoteFrameClient*, FrameHost*, FrameOwner*); | 61 RemoteFrame(RemoteFrameClient*, FrameHost*, FrameOwner*); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 73 inline RemoteFrameView* RemoteFrame::view() const | 75 inline RemoteFrameView* RemoteFrame::view() const |
| 74 { | 76 { |
| 75 return m_view.get(); | 77 return m_view.get(); |
| 76 } | 78 } |
| 77 | 79 |
| 78 DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(),
remoteFrame.isRemoteFrame()); | 80 DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(),
remoteFrame.isRemoteFrame()); |
| 79 | 81 |
| 80 } // namespace blink | 82 } // namespace blink |
| 81 | 83 |
| 82 #endif // RemoteFrame_h | 84 #endif // RemoteFrame_h |
| OLD | NEW |