Chromium Code Reviews| 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 RemoteFrameView_h | 5 #ifndef RemoteFrameView_h |
| 6 #define RemoteFrameView_h | 6 #define RemoteFrameView_h |
| 7 | 7 |
| 8 #include "platform/Widget.h" | 8 #include "platform/Widget.h" |
| 9 #include "platform/geometry/IntRect.h" | 9 #include "platform/geometry/IntRect.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 27 return *m_remoteFrame; | 27 return *m_remoteFrame; |
| 28 } | 28 } |
| 29 | 29 |
| 30 // Override to notify remote frame that its viewport size has changed. | 30 // Override to notify remote frame that its viewport size has changed. |
| 31 void frameRectsChanged() override; | 31 void frameRectsChanged() override; |
| 32 | 32 |
| 33 void invalidateRect(const IntRect&) override; | 33 void invalidateRect(const IntRect&) override; |
| 34 | 34 |
| 35 void setFrameRect(const IntRect&) override; | 35 void setFrameRect(const IntRect&) override; |
| 36 | 36 |
| 37 void hide() override; | |
| 38 | |
|
dcheng
2015/12/02 00:15:05
Nit: remove the newline here and on line 40. Also,
EhsanK
2015/12/07 16:10:15
Done.
| |
| 39 void show() override; | |
| 40 | |
| 41 void setParentVisible(bool) override; | |
| 42 | |
| 37 DECLARE_VIRTUAL_TRACE(); | 43 DECLARE_VIRTUAL_TRACE(); |
| 38 | 44 |
| 39 private: | 45 private: |
| 40 explicit RemoteFrameView(RemoteFrame*); | 46 explicit RemoteFrameView(RemoteFrame*); |
| 41 | 47 |
| 42 // The properties and handling of the cycle between RemoteFrame | 48 // The properties and handling of the cycle between RemoteFrame |
| 43 // and its RemoteFrameView corresponds to that between LocalFrame | 49 // and its RemoteFrameView corresponds to that between LocalFrame |
| 44 // and FrameView. Please see the FrameView::m_frame comment for | 50 // and FrameView. Please see the FrameView::m_frame comment for |
| 45 // details. | 51 // details. |
| 46 RefPtrWillBeMember<RemoteFrame> m_remoteFrame; | 52 RefPtrWillBeMember<RemoteFrame> m_remoteFrame; |
| 47 }; | 53 }; |
| 48 | 54 |
| 49 DEFINE_TYPE_CASTS(RemoteFrameView, Widget, widget, widget->isRemoteFrameView(), widget.isRemoteFrameView()); | 55 DEFINE_TYPE_CASTS(RemoteFrameView, Widget, widget, widget->isRemoteFrameView(), widget.isRemoteFrameView()); |
| 50 | 56 |
| 51 } // namespace blink | 57 } // namespace blink |
| 52 | 58 |
| 53 #endif // RemoteFrameView_h | 59 #endif // RemoteFrameView_h |
| OLD | NEW |