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 | |
464 // Helper function to create a selection controller. | 457 // Helper function to create a selection controller. |
465 void CreateSelectionController(); | 458 void CreateSelectionController(); |
466 | 459 |
467 // Used to set the |popup_child_host_view_| on the |popup_parent_host_view_| | 460 // Used to set the |popup_child_host_view_| on the |popup_parent_host_view_| |
468 // and to notify the |event_handler_|. | 461 // and to notify the |event_handler_|. |
469 void SetPopupChild(RenderWidgetHostViewAura* popup_child_host_view); | 462 void SetPopupChild(RenderWidgetHostViewAura* popup_child_host_view); |
470 | 463 |
471 // Forwards a mouse event to this view's parent window delegate. | 464 // Forwards a mouse event to this view's parent window delegate. |
472 void ForwardMouseEventToParent(ui::MouseEvent* event); | 465 void ForwardMouseEventToParent(ui::MouseEvent* event); |
473 | 466 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; | 587 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; |
595 | 588 |
596 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 589 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
597 | 590 |
598 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 591 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
599 }; | 592 }; |
600 | 593 |
601 } // namespace content | 594 } // namespace content |
602 | 595 |
603 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 596 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |