| 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 struct WebScreenInfo; | |
| 20 } | 19 } |
| 21 | 20 |
| 22 namespace cc { | 21 namespace cc { |
| 23 class SurfaceId; | 22 class SurfaceId; |
| 24 struct SurfaceSequence; | 23 struct SurfaceSequence; |
| 25 } | 24 } |
| 26 | 25 |
| 27 namespace IPC { | 26 namespace IPC { |
| 28 class Message; | 27 class Message; |
| 29 } | 28 } |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 86 |
| 88 void RenderProcessGone(); | 87 void RenderProcessGone(); |
| 89 | 88 |
| 90 virtual void SetChildFrameSurface(const cc::SurfaceId& surface_id, | 89 virtual void SetChildFrameSurface(const cc::SurfaceId& surface_id, |
| 91 const gfx::Size& frame_size, | 90 const gfx::Size& frame_size, |
| 92 float scale_factor, | 91 float scale_factor, |
| 93 const cc::SurfaceSequence& sequence); | 92 const cc::SurfaceSequence& sequence); |
| 94 | 93 |
| 95 gfx::Rect ChildFrameRect(); | 94 gfx::Rect ChildFrameRect(); |
| 96 float device_scale_factor() const { return device_scale_factor_; } | 95 float device_scale_factor() const { return device_scale_factor_; } |
| 97 void GetScreenInfo(blink::WebScreenInfo* results); | |
| 98 void UpdateCursor(const WebCursor& cursor); | 96 void UpdateCursor(const WebCursor& cursor); |
| 99 gfx::Point TransformPointToRootCoordSpace(const gfx::Point& point, | 97 gfx::Point TransformPointToRootCoordSpace(const gfx::Point& point, |
| 100 cc::SurfaceId surface_id); | 98 cc::SurfaceId surface_id); |
| 101 // Pass acked touch events to the root view for gesture processing. | 99 // Pass acked touch events to the root view for gesture processing. |
| 102 void ForwardProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 100 void ForwardProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
| 103 InputEventAckState ack_result); | 101 InputEventAckState ack_result); |
| 104 // Gesture events with unused scroll deltas must be bubbled to ancestors | 102 // Gesture events with unused scroll deltas must be bubbled to ancestors |
| 105 // who may consume the delta. | 103 // who may consume the delta. |
| 106 void BubbleScrollEvent(const blink::WebGestureEvent& event); | 104 void BubbleScrollEvent(const blink::WebGestureEvent& event); |
| 107 | 105 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 gfx::Rect child_frame_rect_; | 149 gfx::Rect child_frame_rect_; |
| 152 float device_scale_factor_; | 150 float device_scale_factor_; |
| 153 | 151 |
| 154 bool is_scroll_bubbling_; | 152 bool is_scroll_bubbling_; |
| 155 }; | 153 }; |
| 156 | 154 |
| 157 } // namespace content | 155 } // namespace content |
| 158 | 156 |
| 159 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 157 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ |
| 160 | 158 |
| OLD | NEW |