| 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" |
| 11 #include "content/browser/renderer_host/event_with_latency_info.h" | 11 #include "content/browser/renderer_host/event_with_latency_info.h" |
| 12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 13 #include "content/common/input/input_event_ack_state.h" | 13 #include "content/common/input/input_event_ack_state.h" |
| 14 #include "ui/gfx/geometry/rect.h" | 14 #include "ui/gfx/geometry/rect.h" |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 class WebGestureEvent; | 17 class WebGestureEvent; |
| 18 class WebInputEvent; | |
| 19 } | 18 } |
| 20 | 19 |
| 21 namespace cc { | 20 namespace cc { |
| 22 class SurfaceId; | 21 class SurfaceId; |
| 23 class SurfaceInfo; | 22 class SurfaceInfo; |
| 24 struct SurfaceSequence; | 23 struct SurfaceSequence; |
| 25 } | 24 } |
| 26 | 25 |
| 27 namespace IPC { | 26 namespace IPC { |
| 28 class Message; | 27 class Message; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 // Returns the view for the top-level frame under the same WebContents. | 133 // Returns the view for the top-level frame under the same WebContents. |
| 135 RenderWidgetHostViewBase* GetRootRenderWidgetHostView(); | 134 RenderWidgetHostViewBase* GetRootRenderWidgetHostView(); |
| 136 | 135 |
| 137 // Exposed for tests. | 136 // Exposed for tests. |
| 138 RenderWidgetHostViewBase* GetRootRenderWidgetHostViewForTesting() { | 137 RenderWidgetHostViewBase* GetRootRenderWidgetHostViewForTesting() { |
| 139 return GetRootRenderWidgetHostView(); | 138 return GetRootRenderWidgetHostView(); |
| 140 } | 139 } |
| 141 | 140 |
| 142 private: | 141 private: |
| 143 // Handlers for messages received from the parent frame. | 142 // Handlers for messages received from the parent frame. |
| 144 void OnForwardInputEvent(const blink::WebInputEvent* event); | |
| 145 void OnFrameRectChanged(const gfx::Rect& frame_rect); | 143 void OnFrameRectChanged(const gfx::Rect& frame_rect); |
| 146 void OnUpdateViewportIntersection(const gfx::Rect& viewport_intersection); | 144 void OnUpdateViewportIntersection(const gfx::Rect& viewport_intersection); |
| 147 void OnVisibilityChanged(bool visible); | 145 void OnVisibilityChanged(bool visible); |
| 148 void OnSatisfySequence(const cc::SurfaceSequence& sequence); | 146 void OnSatisfySequence(const cc::SurfaceSequence& sequence); |
| 149 void OnRequireSequence(const cc::SurfaceId& id, | 147 void OnRequireSequence(const cc::SurfaceId& id, |
| 150 const cc::SurfaceSequence& sequence); | 148 const cc::SurfaceSequence& sequence); |
| 151 | 149 |
| 152 void SetRect(const gfx::Rect& frame_rect); | 150 void SetRect(const gfx::Rect& frame_rect); |
| 153 | 151 |
| 154 // The RenderFrameProxyHost that routes messages to the parent frame's | 152 // The RenderFrameProxyHost that routes messages to the parent frame's |
| 155 // renderer process. | 153 // renderer process. |
| 156 RenderFrameProxyHost* frame_proxy_in_parent_renderer_; | 154 RenderFrameProxyHost* frame_proxy_in_parent_renderer_; |
| 157 | 155 |
| 158 // The RenderWidgetHostView for the frame. Initially NULL. | 156 // The RenderWidgetHostView for the frame. Initially NULL. |
| 159 RenderWidgetHostViewChildFrame* view_; | 157 RenderWidgetHostViewChildFrame* view_; |
| 160 | 158 |
| 161 gfx::Rect child_frame_rect_; | 159 gfx::Rect child_frame_rect_; |
| 162 | 160 |
| 163 bool is_scroll_bubbling_; | 161 bool is_scroll_bubbling_; |
| 164 }; | 162 }; |
| 165 | 163 |
| 166 } // namespace content | 164 } // namespace content |
| 167 | 165 |
| 168 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 166 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ |
| 169 | 167 |
| OLD | NEW |