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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 scoped_ptr<cc::CompositorFrame> frame); | 94 scoped_ptr<cc::CompositorFrame> frame); |
95 virtual void SetChildFrameSurface(const cc::SurfaceId& surface_id, | 95 virtual void SetChildFrameSurface(const cc::SurfaceId& surface_id, |
96 const gfx::Size& frame_size, | 96 const gfx::Size& frame_size, |
97 float scale_factor, | 97 float scale_factor, |
98 const cc::SurfaceSequence& sequence); | 98 const cc::SurfaceSequence& sequence); |
99 | 99 |
100 gfx::Rect ChildFrameRect(); | 100 gfx::Rect ChildFrameRect(); |
101 float device_scale_factor() const { return device_scale_factor_; } | 101 float device_scale_factor() const { return device_scale_factor_; } |
102 void GetScreenInfo(blink::WebScreenInfo* results); | 102 void GetScreenInfo(blink::WebScreenInfo* results); |
103 void UpdateCursor(const WebCursor& cursor); | 103 void UpdateCursor(const WebCursor& cursor); |
104 void TransformPointToRootCoordSpace(const gfx::Point& point, | 104 gfx::Point TransformPointToRootCoordSpace(const gfx::Point& point, |
105 cc::SurfaceId surface_id, | 105 cc::SurfaceId surface_id); |
106 gfx::Point* transformed_point); | |
107 | 106 |
108 // Determines whether the root RenderWidgetHostView (and thus the current | 107 // Determines whether the root RenderWidgetHostView (and thus the current |
109 // page) has focus. | 108 // page) has focus. |
110 bool HasFocus(); | 109 bool HasFocus(); |
111 | 110 |
112 private: | 111 private: |
113 // Handlers for messages received from the parent frame. | 112 // Handlers for messages received from the parent frame. |
114 void OnCompositorFrameSwappedACK( | 113 void OnCompositorFrameSwappedACK( |
115 const FrameHostMsg_CompositorFrameSwappedACK_Params& params); | 114 const FrameHostMsg_CompositorFrameSwappedACK_Params& params); |
116 void OnReclaimCompositorResources( | 115 void OnReclaimCompositorResources( |
(...skipping 20 matching lines...) Expand all Loading... |
137 RenderWidgetHostViewChildFrame* view_; | 136 RenderWidgetHostViewChildFrame* view_; |
138 | 137 |
139 gfx::Rect child_frame_rect_; | 138 gfx::Rect child_frame_rect_; |
140 float device_scale_factor_; | 139 float device_scale_factor_; |
141 }; | 140 }; |
142 | 141 |
143 } // namespace content | 142 } // namespace content |
144 | 143 |
145 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 144 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ |
146 | 145 |
OLD | NEW |