| 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; | 18 class WebInputEvent; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace cc { | 21 namespace cc { |
| 22 class SurfaceId; | 22 class SurfaceId; |
| 23 class SurfaceInfo; |
| 23 struct SurfaceSequence; | 24 struct SurfaceSequence; |
| 24 } | 25 } |
| 25 | 26 |
| 26 namespace IPC { | 27 namespace IPC { |
| 27 class Message; | 28 class Message; |
| 28 } | 29 } |
| 29 | 30 |
| 30 namespace content { | 31 namespace content { |
| 31 class RenderFrameProxyHost; | 32 class RenderFrameProxyHost; |
| 32 class RenderWidgetHostViewBase; | 33 class RenderWidgetHostViewBase; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 79 |
| 79 bool OnMessageReceived(const IPC::Message &msg); | 80 bool OnMessageReceived(const IPC::Message &msg); |
| 80 | 81 |
| 81 // |view| corresponds to B2's RenderWidgetHostViewChildFrame in the example | 82 // |view| corresponds to B2's RenderWidgetHostViewChildFrame in the example |
| 82 // above. | 83 // above. |
| 83 void set_view(RenderWidgetHostViewChildFrame* view); | 84 void set_view(RenderWidgetHostViewChildFrame* view); |
| 84 RenderWidgetHostViewChildFrame* get_view_for_testing() { return view_; } | 85 RenderWidgetHostViewChildFrame* get_view_for_testing() { return view_; } |
| 85 | 86 |
| 86 void RenderProcessGone(); | 87 void RenderProcessGone(); |
| 87 | 88 |
| 88 virtual void SetChildFrameSurface(const cc::SurfaceId& surface_id, | 89 virtual void SetChildFrameSurface(const cc::SurfaceInfo& surface_info, |
| 89 const gfx::Size& frame_size, | |
| 90 float scale_factor, | |
| 91 const cc::SurfaceSequence& sequence); | 90 const cc::SurfaceSequence& sequence); |
| 92 | 91 |
| 93 gfx::Rect ChildFrameRect(); | 92 gfx::Rect ChildFrameRect(); |
| 94 void UpdateCursor(const WebCursor& cursor); | 93 void UpdateCursor(const WebCursor& cursor); |
| 95 gfx::Point TransformPointToRootCoordSpace(const gfx::Point& point, | 94 gfx::Point TransformPointToRootCoordSpace(const gfx::Point& point, |
| 96 const cc::SurfaceId& surface_id); | 95 const cc::SurfaceId& surface_id); |
| 97 // TransformPointToLocalCoordSpace() can only transform points between | 96 // TransformPointToLocalCoordSpace() can only transform points between |
| 98 // surfaces where one is embedded (not necessarily directly) within the | 97 // surfaces where one is embedded (not necessarily directly) within the |
| 99 // other, and will return false if this is not the case. For points that can | 98 // other, and will return false if this is not the case. For points that can |
| 100 // be in sibling surfaces, they must first be converted to the root | 99 // be in sibling surfaces, they must first be converted to the root |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 160 |
| 162 gfx::Rect child_frame_rect_; | 161 gfx::Rect child_frame_rect_; |
| 163 | 162 |
| 164 bool is_scroll_bubbling_; | 163 bool is_scroll_bubbling_; |
| 165 }; | 164 }; |
| 166 | 165 |
| 167 } // namespace content | 166 } // namespace content |
| 168 | 167 |
| 169 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 168 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ |
| 170 | 169 |
| OLD | NEW |