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