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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 gfx::Point TransformPointToRootCoordSpace(const gfx::Point& point, | 104 gfx::Point TransformPointToRootCoordSpace(const gfx::Point& point, |
105 cc::SurfaceId surface_id); | 105 cc::SurfaceId surface_id); |
106 | 106 |
107 // Determines whether the root RenderWidgetHostView (and thus the current | 107 // Determines whether the root RenderWidgetHostView (and thus the current |
108 // page) has focus. | 108 // page) has focus. |
109 bool HasFocus(); | 109 bool HasFocus(); |
110 | 110 |
| 111 void NotifyRootViewOfTextInputStateChanged(); |
| 112 |
111 private: | 113 private: |
112 // Handlers for messages received from the parent frame. | 114 // Handlers for messages received from the parent frame. |
113 void OnCompositorFrameSwappedACK( | 115 void OnCompositorFrameSwappedACK( |
114 const FrameHostMsg_CompositorFrameSwappedACK_Params& params); | 116 const FrameHostMsg_CompositorFrameSwappedACK_Params& params); |
115 void OnReclaimCompositorResources( | 117 void OnReclaimCompositorResources( |
116 const FrameHostMsg_ReclaimCompositorResources_Params& params); | 118 const FrameHostMsg_ReclaimCompositorResources_Params& params); |
117 void OnForwardInputEvent(const blink::WebInputEvent* event); | 119 void OnForwardInputEvent(const blink::WebInputEvent* event); |
118 void OnFrameRectChanged(const gfx::Rect& frame_rect); | 120 void OnFrameRectChanged(const gfx::Rect& frame_rect); |
119 void OnVisibilityChanged(bool visible); | 121 void OnVisibilityChanged(bool visible); |
120 void OnInitializeChildFrame(gfx::Rect frame_rect, float scale_factor); | 122 void OnInitializeChildFrame(gfx::Rect frame_rect, float scale_factor); |
(...skipping 15 matching lines...) Expand all Loading... |
136 RenderWidgetHostViewChildFrame* view_; | 138 RenderWidgetHostViewChildFrame* view_; |
137 | 139 |
138 gfx::Rect child_frame_rect_; | 140 gfx::Rect child_frame_rect_; |
139 float device_scale_factor_; | 141 float device_scale_factor_; |
140 }; | 142 }; |
141 | 143 |
142 } // namespace content | 144 } // namespace content |
143 | 145 |
144 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 146 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ |
145 | 147 |
OLD | NEW |