| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 | 447 |
| 448 // Converts |rect| from screen coordinate to window coordinate. | 448 // Converts |rect| from screen coordinate to window coordinate. |
| 449 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const; | 449 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const; |
| 450 | 450 |
| 451 // Called when the parent window bounds change. | 451 // Called when the parent window bounds change. |
| 452 void HandleParentBoundsChanged(); | 452 void HandleParentBoundsChanged(); |
| 453 | 453 |
| 454 // Called when the parent window hierarchy for our window changes. | 454 // Called when the parent window hierarchy for our window changes. |
| 455 void ParentHierarchyChanged(); | 455 void ParentHierarchyChanged(); |
| 456 | 456 |
| 457 // Helper function to be called whenever new selection information is |
| 458 // received. It will update selection controller. |
| 459 void SelectionUpdated(bool is_editable, |
| 460 bool is_empty_text_form_control, |
| 461 const gfx::SelectionBound& start, |
| 462 const gfx::SelectionBound& end); |
| 463 |
| 457 // Helper function to create a selection controller. | 464 // Helper function to create a selection controller. |
| 458 void CreateSelectionController(); | 465 void CreateSelectionController(); |
| 459 | 466 |
| 460 // Used to set the |popup_child_host_view_| on the |popup_parent_host_view_| | 467 // Used to set the |popup_child_host_view_| on the |popup_parent_host_view_| |
| 461 // and to notify the |event_handler_|. | 468 // and to notify the |event_handler_|. |
| 462 void SetPopupChild(RenderWidgetHostViewAura* popup_child_host_view); | 469 void SetPopupChild(RenderWidgetHostViewAura* popup_child_host_view); |
| 463 | 470 |
| 464 // Forwards a mouse event to this view's parent window delegate. | 471 // Forwards a mouse event to this view's parent window delegate. |
| 465 void ForwardMouseEventToParent(ui::MouseEvent* event); | 472 void ForwardMouseEventToParent(ui::MouseEvent* event); |
| 466 | 473 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; | 594 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; |
| 588 | 595 |
| 589 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 596 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
| 590 | 597 |
| 591 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 598 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 592 }; | 599 }; |
| 593 | 600 |
| 594 } // namespace content | 601 } // namespace content |
| 595 | 602 |
| 596 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 603 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |