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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 RenderFrameHostImpl* GetFocusedFrame(); | 319 RenderFrameHostImpl* GetFocusedFrame(); |
320 bool NeedsMouseCapture() override; | 320 bool NeedsMouseCapture() override; |
321 void SetTooltipsEnabled(bool enable) override; | 321 void SetTooltipsEnabled(bool enable) override; |
322 void ShowContextMenu(const ContextMenuParams& params) override; | 322 void ShowContextMenu(const ContextMenuParams& params) override; |
323 void Shutdown() override; | 323 void Shutdown() override; |
324 | 324 |
325 RenderWidgetHostViewEventHandler* event_handler() { | 325 RenderWidgetHostViewEventHandler* event_handler() { |
326 return event_handler_.get(); | 326 return event_handler_.get(); |
327 } | 327 } |
328 | 328 |
| 329 TouchSelectionControllerClientManager* |
| 330 touch_selection_controller_client_manager() override; |
| 331 |
329 protected: | 332 protected: |
330 ~RenderWidgetHostViewAura() override; | 333 ~RenderWidgetHostViewAura() override; |
331 | 334 |
332 // Exposed for tests. | 335 // Exposed for tests. |
333 aura::Window* window() { return window_; } | 336 aura::Window* window() { return window_; } |
334 | 337 |
335 DelegatedFrameHost* GetDelegatedFrameHost() const { | 338 DelegatedFrameHost* GetDelegatedFrameHost() const { |
336 return delegated_frame_host_.get(); | 339 return delegated_frame_host_.get(); |
337 } | 340 } |
338 | 341 |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 std::unique_ptr<ui::OnScreenKeyboardObserver> keyboard_observer_; | 571 std::unique_ptr<ui::OnScreenKeyboardObserver> keyboard_observer_; |
569 | 572 |
570 gfx::Point last_mouse_move_location_; | 573 gfx::Point last_mouse_move_location_; |
571 #endif | 574 #endif |
572 | 575 |
573 bool has_snapped_to_boundary_; | 576 bool has_snapped_to_boundary_; |
574 | 577 |
575 // The last scroll offset of the view. | 578 // The last scroll offset of the view. |
576 gfx::Vector2dF last_scroll_offset_; | 579 gfx::Vector2dF last_scroll_offset_; |
577 | 580 |
| 581 // The last selection bounds reported to the view. |
| 582 gfx::SelectionBound selection_start_; |
| 583 gfx::SelectionBound selection_end_; |
| 584 |
578 gfx::Insets insets_; | 585 gfx::Insets insets_; |
579 | 586 |
580 std::vector<ui::LatencyInfo> software_latency_info_; | 587 std::vector<ui::LatencyInfo> software_latency_info_; |
581 | 588 |
582 std::unique_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_; | 589 std::unique_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_; |
583 | 590 |
584 // True when this view acts as a platform view hack for a | 591 // True when this view acts as a platform view hack for a |
585 // RenderWidgetHostViewGuest. | 592 // RenderWidgetHostViewGuest. |
586 bool is_guest_view_hack_; | 593 bool is_guest_view_hack_; |
587 | 594 |
(...skipping 10 matching lines...) Expand all Loading... |
598 cc::LocalSurfaceId local_surface_id_; | 605 cc::LocalSurfaceId local_surface_id_; |
599 | 606 |
600 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 607 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
601 | 608 |
602 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 609 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
603 }; | 610 }; |
604 | 611 |
605 } // namespace content | 612 } // namespace content |
606 | 613 |
607 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 614 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |