Chromium Code Reviews| 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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 525 // Helper function to create a selection controller. | 525 // Helper function to create a selection controller. |
| 526 void CreateSelectionController(); | 526 void CreateSelectionController(); |
| 527 | 527 |
| 528 // Performs gesture handling needed for touch text selection. Sets event as | 528 // Performs gesture handling needed for touch text selection. Sets event as |
| 529 // handled if it should not be further processed. | 529 // handled if it should not be further processed. |
| 530 void HandleGestureForTouchSelection(ui::GestureEvent* event); | 530 void HandleGestureForTouchSelection(ui::GestureEvent* event); |
| 531 | 531 |
| 532 // Forwards a mouse event to this view's parent window delegate. | 532 // Forwards a mouse event to this view's parent window delegate. |
| 533 void ForwardMouseEventToParent(ui::MouseEvent* event); | 533 void ForwardMouseEventToParent(ui::MouseEvent* event); |
| 534 | 534 |
| 535 void UpdateNeedsBeginFramesInternal(); | |
|
clamy
2016/10/05 12:35:53
How is this change (and the similar ones about nee
dtapuska
2016/10/05 13:21:29
So I tried to land a change that did vsync aligned
clamy
2016/10/05 13:47:01
Ok so let me see if I get this right (sorry not su
| |
| 536 | |
| 535 // Returns the RenderViewHostDelegateView instance for this view. Returns | 537 // Returns the RenderViewHostDelegateView instance for this view. Returns |
| 536 // NULL on failure. | 538 // NULL on failure. |
| 537 RenderViewHostDelegateView* GetRenderViewHostDelegateView(); | 539 RenderViewHostDelegateView* GetRenderViewHostDelegateView(); |
| 538 | 540 |
| 539 // The model object. | 541 // The model object. |
| 540 RenderWidgetHostImpl* const host_; | 542 RenderWidgetHostImpl* const host_; |
| 541 | 543 |
| 542 aura::Window* window_; | 544 aura::Window* window_; |
| 543 | 545 |
| 544 std::unique_ptr<DelegatedFrameHost> delegated_frame_host_; | 546 std::unique_ptr<DelegatedFrameHost> delegated_frame_host_; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 585 | 587 |
| 586 // Whether return characters should be passed on to the RenderWidgetHostImpl. | 588 // Whether return characters should be passed on to the RenderWidgetHostImpl. |
| 587 bool accept_return_character_; | 589 bool accept_return_character_; |
| 588 | 590 |
| 589 // Current tooltip text. | 591 // Current tooltip text. |
| 590 base::string16 tooltip_; | 592 base::string16 tooltip_; |
| 591 | 593 |
| 592 // The begin frame source being observed. Null if none. | 594 // The begin frame source being observed. Null if none. |
| 593 cc::BeginFrameSource* begin_frame_source_; | 595 cc::BeginFrameSource* begin_frame_source_; |
| 594 cc::BeginFrameArgs last_begin_frame_args_; | 596 cc::BeginFrameArgs last_begin_frame_args_; |
| 597 | |
| 598 // Whether a request for begin frames has been issued. | |
| 595 bool needs_begin_frames_; | 599 bool needs_begin_frames_; |
| 596 | 600 |
| 601 // Whether or not a frame observer has been added. | |
| 602 bool added_frame_observer_; | |
| 603 | |
| 597 // Used to record the last position of the mouse. | 604 // Used to record the last position of the mouse. |
| 598 // While the mouse is locked, they store the last known position just as mouse | 605 // While the mouse is locked, they store the last known position just as mouse |
| 599 // lock was entered. | 606 // lock was entered. |
| 600 // Relative to the upper-left corner of the view. | 607 // Relative to the upper-left corner of the view. |
| 601 gfx::Point unlocked_mouse_position_; | 608 gfx::Point unlocked_mouse_position_; |
| 602 // Relative to the upper-left corner of the screen. | 609 // Relative to the upper-left corner of the screen. |
| 603 gfx::Point unlocked_global_mouse_position_; | 610 gfx::Point unlocked_global_mouse_position_; |
| 604 // Last cursor position relative to screen. Used to compute movementX/Y. | 611 // Last cursor position relative to screen. Used to compute movementX/Y. |
| 605 gfx::Point global_mouse_position_; | 612 gfx::Point global_mouse_position_; |
| 606 // In mouse locked mode, we synthetically move the mouse cursor to the center | 613 // In mouse locked mode, we synthetically move the mouse cursor to the center |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 687 int32_t last_active_widget_routing_id_; | 694 int32_t last_active_widget_routing_id_; |
| 688 | 695 |
| 689 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 696 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
| 690 | 697 |
| 691 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 698 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 692 }; | 699 }; |
| 693 | 700 |
| 694 } // namespace content | 701 } // namespace content |
| 695 | 702 |
| 696 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 703 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |