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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 | 137 |
138 // Exposed for tests. | 138 // Exposed for tests. |
139 RenderWidgetHostViewBase* GetRootRenderWidgetHostViewForTesting() { | 139 RenderWidgetHostViewBase* GetRootRenderWidgetHostViewForTesting() { |
140 return GetRootRenderWidgetHostView(); | 140 return GetRootRenderWidgetHostView(); |
141 } | 141 } |
142 | 142 |
143 private: | 143 private: |
144 // Handlers for messages received from the parent frame. | 144 // Handlers for messages received from the parent frame. |
145 void OnForwardInputEvent(const blink::WebInputEvent* event); | 145 void OnForwardInputEvent(const blink::WebInputEvent* event); |
146 void OnFrameRectChanged(const gfx::Rect& frame_rect); | 146 void OnFrameRectChanged(const gfx::Rect& frame_rect); |
| 147 void OnUpdateViewportIntersection(const gfx::Rect& viewport_intersection); |
147 void OnVisibilityChanged(bool visible); | 148 void OnVisibilityChanged(bool visible); |
148 void OnSatisfySequence(const cc::SurfaceSequence& sequence); | 149 void OnSatisfySequence(const cc::SurfaceSequence& sequence); |
149 void OnRequireSequence(const cc::SurfaceId& id, | 150 void OnRequireSequence(const cc::SurfaceId& id, |
150 const cc::SurfaceSequence& sequence); | 151 const cc::SurfaceSequence& sequence); |
151 | 152 |
152 void SetRect(const gfx::Rect& frame_rect); | 153 void SetRect(const gfx::Rect& frame_rect); |
153 | 154 |
154 // The RenderFrameProxyHost that routes messages to the parent frame's | 155 // The RenderFrameProxyHost that routes messages to the parent frame's |
155 // renderer process. | 156 // renderer process. |
156 RenderFrameProxyHost* frame_proxy_in_parent_renderer_; | 157 RenderFrameProxyHost* frame_proxy_in_parent_renderer_; |
157 | 158 |
158 // The RenderWidgetHostView for the frame. Initially NULL. | 159 // The RenderWidgetHostView for the frame. Initially NULL. |
159 RenderWidgetHostViewChildFrame* view_; | 160 RenderWidgetHostViewChildFrame* view_; |
160 | 161 |
161 gfx::Rect child_frame_rect_; | 162 gfx::Rect child_frame_rect_; |
162 | 163 |
163 bool is_scroll_bubbling_; | 164 bool is_scroll_bubbling_; |
164 }; | 165 }; |
165 | 166 |
166 } // namespace content | 167 } // namespace content |
167 | 168 |
168 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 169 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ |
169 | 170 |
OLD | NEW |