Chromium Code Reviews| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 91 float scale_factor, | 91 float scale_factor, |
| 92 const cc::SurfaceSequence& sequence); | 92 const cc::SurfaceSequence& sequence); |
| 93 | 93 |
| 94 gfx::Rect ChildFrameRect(); | 94 gfx::Rect ChildFrameRect(); |
| 95 void UpdateCursor(const WebCursor& cursor); | 95 void UpdateCursor(const WebCursor& cursor); |
| 96 gfx::Point TransformPointToRootCoordSpace(const gfx::Point& point, | 96 gfx::Point TransformPointToRootCoordSpace(const gfx::Point& point, |
| 97 const cc::SurfaceId& surface_id); | 97 const cc::SurfaceId& surface_id); |
| 98 // TransformPointToLocalCoordSpace() can only transform points between | 98 // TransformPointToLocalCoordSpace() can only transform points between |
| 99 // surfaces where one is embedded (not necessarily directly) within the | 99 // surfaces where one is embedded (not necessarily directly) within the |
| 100 // other. For points that can be in sibling surfaces, they must first be | 100 // other. For points that can be in sibling surfaces, they must first be |
| 101 // converted to the root surface's coordinate space. | 101 // converted to the root surface's coordinate space. |
|
ncarter (slow)
2016/10/13 20:34:42
Document the return value (and maybe give an examp
kenrb
2016/10/14 13:02:43
Done.
| |
| 102 gfx::Point TransformPointToLocalCoordSpace( | 102 bool TransformPointToLocalCoordSpace(const gfx::Point& point, |
| 103 const gfx::Point& point, | 103 const cc::SurfaceId& original_surface, |
| 104 const cc::SurfaceId& original_surface, | 104 const cc::SurfaceId& local_surface_id, |
| 105 const cc::SurfaceId& local_surface_id); | 105 gfx::Point* transformed_point); |
| 106 gfx::Point TransformPointToCoordSpaceForView( | 106 bool TransformPointToCoordSpaceForView(const gfx::Point& point, |
| 107 const gfx::Point& point, | 107 RenderWidgetHostViewBase* target_view, |
| 108 RenderWidgetHostViewBase* target_view, | 108 const cc::SurfaceId& local_surface_id, |
| 109 const cc::SurfaceId& local_surface_id); | 109 gfx::Point* transformed_point); |
| 110 | 110 |
| 111 // Pass acked touch events to the root view for gesture processing. | 111 // Pass acked touch events to the root view for gesture processing. |
| 112 void ForwardProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 112 void ForwardProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
| 113 InputEventAckState ack_result); | 113 InputEventAckState ack_result); |
| 114 // Gesture events with unused scroll deltas must be bubbled to ancestors | 114 // Gesture events with unused scroll deltas must be bubbled to ancestors |
| 115 // who may consume the delta. | 115 // who may consume the delta. |
| 116 void BubbleScrollEvent(const blink::WebGestureEvent& event); | 116 void BubbleScrollEvent(const blink::WebGestureEvent& event); |
| 117 | 117 |
| 118 // Determines whether the root RenderWidgetHostView (and thus the current | 118 // Determines whether the root RenderWidgetHostView (and thus the current |
| 119 // page) has focus. | 119 // page) has focus. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 158 | 158 |
| 159 gfx::Rect child_frame_rect_; | 159 gfx::Rect child_frame_rect_; |
| 160 | 160 |
| 161 bool is_scroll_bubbling_; | 161 bool is_scroll_bubbling_; |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 } // namespace content | 164 } // namespace content |
| 165 | 165 |
| 166 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 166 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ |
| 167 | 167 |
| OLD | NEW |