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_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 // Returns the view into which this view is directly embedded. This can | 192 // Returns the view into which this view is directly embedded. This can |
193 // return nullptr when this view's associated child frame is not connected | 193 // return nullptr when this view's associated child frame is not connected |
194 // to the frame tree. | 194 // to the frame tree. |
195 RenderWidgetHostViewBase* GetParentView(); | 195 RenderWidgetHostViewBase* GetParentView(); |
196 | 196 |
197 void RegisterFrameSinkId(); | 197 void RegisterFrameSinkId(); |
198 void UnregisterFrameSinkId(); | 198 void UnregisterFrameSinkId(); |
199 | 199 |
200 void UpdateViewportIntersection(const gfx::Rect& viewport_intersection); | 200 void UpdateViewportIntersection(const gfx::Rect& viewport_intersection); |
201 | 201 |
| 202 void SetIsInert(); |
| 203 |
202 bool has_frame() { return has_frame_; } | 204 bool has_frame() { return has_frame_; } |
203 | 205 |
204 ui::TextInputType GetTextInputType() const; | 206 ui::TextInputType GetTextInputType() const; |
205 bool GetSelectionRange(gfx::Range* range) const; | 207 bool GetSelectionRange(gfx::Range* range) const; |
206 // This returns the origin of this views's bounding rect in the coordinates | 208 // This returns the origin of this views's bounding rect in the coordinates |
207 // of the root RenderWidgetHostView. | 209 // of the root RenderWidgetHostView. |
208 gfx::Point GetViewOriginInRoot() const; | 210 gfx::Point GetViewOriginInRoot() const; |
209 | 211 |
210 protected: | 212 protected: |
211 friend class RenderWidgetHostView; | 213 friend class RenderWidgetHostView; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 std::unique_ptr<TouchSelectionControllerClientChildFrame> | 289 std::unique_ptr<TouchSelectionControllerClientChildFrame> |
288 selection_controller_client_; | 290 selection_controller_client_; |
289 | 291 |
290 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; | 292 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; |
291 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); | 293 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); |
292 }; | 294 }; |
293 | 295 |
294 } // namespace content | 296 } // namespace content |
295 | 297 |
296 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 298 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
OLD | NEW |