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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 RenderWidgetHostViewBase* GetParentRenderWidgetHostView(); | 111 RenderWidgetHostViewBase* GetParentRenderWidgetHostView(); |
112 | 112 |
113 // Returns the view for the top-level frame under the same WebContents. | 113 // Returns the view for the top-level frame under the same WebContents. |
114 RenderWidgetHostViewBase* GetRootRenderWidgetHostView(); | 114 RenderWidgetHostViewBase* GetRootRenderWidgetHostView(); |
115 | 115 |
116 // Exposed for tests. | 116 // Exposed for tests. |
117 RenderWidgetHostViewBase* GetRootRenderWidgetHostViewForTesting() { | 117 RenderWidgetHostViewBase* GetRootRenderWidgetHostViewForTesting() { |
118 return GetRootRenderWidgetHostView(); | 118 return GetRootRenderWidgetHostView(); |
119 } | 119 } |
120 | 120 |
| 121 // Informs the top-level RWHV of a change in text input state of the child |
| 122 // frame. |
| 123 void NotifyRootViewOfTextInputStateChanged(); |
| 124 |
121 private: | 125 private: |
122 // Handlers for messages received from the parent frame. | 126 // Handlers for messages received from the parent frame. |
123 void OnForwardInputEvent(const blink::WebInputEvent* event); | 127 void OnForwardInputEvent(const blink::WebInputEvent* event); |
124 void OnFrameRectChanged(const gfx::Rect& frame_rect); | 128 void OnFrameRectChanged(const gfx::Rect& frame_rect); |
125 void OnVisibilityChanged(bool visible); | 129 void OnVisibilityChanged(bool visible); |
126 void OnInitializeChildFrame(gfx::Rect frame_rect, float scale_factor); | 130 void OnInitializeChildFrame(gfx::Rect frame_rect, float scale_factor); |
127 void OnSatisfySequence(const cc::SurfaceSequence& sequence); | 131 void OnSatisfySequence(const cc::SurfaceSequence& sequence); |
128 void OnRequireSequence(const cc::SurfaceId& id, | 132 void OnRequireSequence(const cc::SurfaceId& id, |
129 const cc::SurfaceSequence& sequence); | 133 const cc::SurfaceSequence& sequence); |
130 | 134 |
131 void SetDeviceScaleFactor(float scale_factor); | 135 void SetDeviceScaleFactor(float scale_factor); |
132 void SetSize(gfx::Rect frame_rect); | 136 void SetSize(gfx::Rect frame_rect); |
133 | 137 |
134 // The RenderFrameProxyHost that routes messages to the parent frame's | 138 // The RenderFrameProxyHost that routes messages to the parent frame's |
135 // renderer process. | 139 // renderer process. |
136 RenderFrameProxyHost* frame_proxy_in_parent_renderer_; | 140 RenderFrameProxyHost* frame_proxy_in_parent_renderer_; |
137 | 141 |
138 // The RenderWidgetHostView for the frame. Initially NULL. | 142 // The RenderWidgetHostView for the frame. Initially NULL. |
139 RenderWidgetHostViewChildFrame* view_; | 143 RenderWidgetHostViewChildFrame* view_; |
140 | 144 |
141 gfx::Rect child_frame_rect_; | 145 gfx::Rect child_frame_rect_; |
142 float device_scale_factor_; | 146 float device_scale_factor_; |
143 }; | 147 }; |
144 | 148 |
145 } // namespace content | 149 } // namespace content |
146 | 150 |
147 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 151 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ |
148 | 152 |
OLD | NEW |