| 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 CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "cc/output/compositor_frame.h" | 10 #include "cc/output/compositor_frame.h" |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 return GetRootRenderWidgetHostView(); | 142 return GetRootRenderWidgetHostView(); |
| 143 } | 143 } |
| 144 | 144 |
| 145 private: | 145 private: |
| 146 friend class MockCrossProcessFrameConnector; | 146 friend class MockCrossProcessFrameConnector; |
| 147 | 147 |
| 148 // Handlers for messages received from the parent frame. | 148 // Handlers for messages received from the parent frame. |
| 149 void OnFrameRectChanged(const gfx::Rect& frame_rect); | 149 void OnFrameRectChanged(const gfx::Rect& frame_rect); |
| 150 void OnUpdateViewportIntersection(const gfx::Rect& viewport_intersection); | 150 void OnUpdateViewportIntersection(const gfx::Rect& viewport_intersection); |
| 151 void OnVisibilityChanged(bool visible); | 151 void OnVisibilityChanged(bool visible); |
| 152 void OnSetIsInert(bool); |
| 152 void OnSatisfySequence(const cc::SurfaceSequence& sequence); | 153 void OnSatisfySequence(const cc::SurfaceSequence& sequence); |
| 153 void OnRequireSequence(const cc::SurfaceId& id, | 154 void OnRequireSequence(const cc::SurfaceId& id, |
| 154 const cc::SurfaceSequence& sequence); | 155 const cc::SurfaceSequence& sequence); |
| 155 | 156 |
| 156 void SetRect(const gfx::Rect& frame_rect); | 157 void SetRect(const gfx::Rect& frame_rect); |
| 157 | 158 |
| 158 // The RenderFrameProxyHost that routes messages to the parent frame's | 159 // The RenderFrameProxyHost that routes messages to the parent frame's |
| 159 // renderer process. | 160 // renderer process. |
| 160 RenderFrameProxyHost* frame_proxy_in_parent_renderer_; | 161 RenderFrameProxyHost* frame_proxy_in_parent_renderer_; |
| 161 | 162 |
| 162 // The RenderWidgetHostView for the frame. Initially NULL. | 163 // The RenderWidgetHostView for the frame. Initially NULL. |
| 163 RenderWidgetHostViewChildFrame* view_; | 164 RenderWidgetHostViewChildFrame* view_; |
| 164 | 165 |
| 165 gfx::Rect child_frame_rect_; | 166 gfx::Rect child_frame_rect_; |
| 166 gfx::Rect viewport_intersection_rect_; | 167 gfx::Rect viewport_intersection_rect_; |
| 167 | 168 |
| 168 bool is_scroll_bubbling_; | 169 bool is_scroll_bubbling_; |
| 169 }; | 170 }; |
| 170 | 171 |
| 171 } // namespace content | 172 } // namespace content |
| 172 | 173 |
| 173 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 174 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ |
| 174 | 175 |
| OLD | NEW |