| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 176 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
| 177 InputEventAckState ack_result) override; | 177 InputEventAckState ack_result) override; |
| 178 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() | 178 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() |
| 179 override; | 179 override; |
| 180 InputEventAckState FilterInputEvent( | 180 InputEventAckState FilterInputEvent( |
| 181 const blink::WebInputEvent& input_event) override; | 181 const blink::WebInputEvent& input_event) override; |
| 182 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( | 182 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( |
| 183 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; | 183 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; |
| 184 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; | 184 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; |
| 185 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override; | 185 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override; |
| 186 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, | |
| 187 const SkBitmap& zoomed_bitmap) override; | |
| 188 bool LockMouse() override; | 186 bool LockMouse() override; |
| 189 void UnlockMouse() override; | 187 void UnlockMouse() override; |
| 190 void OnSwapCompositorFrame( | 188 void OnSwapCompositorFrame( |
| 191 uint32_t output_surface_id, | 189 uint32_t output_surface_id, |
| 192 std::unique_ptr<cc::CompositorFrame> frame) override; | 190 std::unique_ptr<cc::CompositorFrame> frame) override; |
| 193 void ClearCompositorFrame() override; | 191 void ClearCompositorFrame() override; |
| 194 void DidStopFlinging() override; | 192 void DidStopFlinging() override; |
| 195 void OnDidNavigateMainFrameToNewPage() override; | 193 void OnDidNavigateMainFrameToNewPage() override; |
| 196 void LockCompositingSurface() override; | 194 void LockCompositingSurface() override; |
| 197 void UnlockCompositingSurface() override; | 195 void UnlockCompositingSurface() override; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 const gfx::Point& new_origin) override; | 284 const gfx::Point& new_origin) override; |
| 287 | 285 |
| 288 #if defined(OS_WIN) | 286 #if defined(OS_WIN) |
| 289 // Updates the cursor clip region. Used for mouse locking. | 287 // Updates the cursor clip region. Used for mouse locking. |
| 290 void UpdateMouseLockRegion(); | 288 void UpdateMouseLockRegion(); |
| 291 | 289 |
| 292 // Notification that the LegacyRenderWidgetHostHWND was destroyed. | 290 // Notification that the LegacyRenderWidgetHostHWND was destroyed. |
| 293 void OnLegacyWindowDestroyed(); | 291 void OnLegacyWindowDestroyed(); |
| 294 #endif | 292 #endif |
| 295 | 293 |
| 296 void DisambiguationPopupRendered(const SkBitmap& result, | |
| 297 ReadbackResponse response); | |
| 298 | |
| 299 void HideDisambiguationPopup(); | |
| 300 | |
| 301 void ProcessDisambiguationGesture(ui::GestureEvent* event); | |
| 302 | |
| 303 void ProcessDisambiguationMouse(ui::MouseEvent* event); | |
| 304 | |
| 305 // Method to indicate if this instance is shutting down or closing. | 294 // Method to indicate if this instance is shutting down or closing. |
| 306 // TODO(shrikant): Discuss around to see if it makes sense to add this method | 295 // TODO(shrikant): Discuss around to see if it makes sense to add this method |
| 307 // as part of RenderWidgetHostView. | 296 // as part of RenderWidgetHostView. |
| 308 bool IsClosing() const { return in_shutdown_; } | 297 bool IsClosing() const { return in_shutdown_; } |
| 309 | 298 |
| 310 // Sets whether the overscroll controller should be enabled for this page. | 299 // Sets whether the overscroll controller should be enabled for this page. |
| 311 void SetOverscrollControllerEnabled(bool enabled); | 300 void SetOverscrollControllerEnabled(bool enabled); |
| 312 | 301 |
| 313 void SnapToPhysicalPixelBoundary(); | 302 void SnapToPhysicalPixelBoundary(); |
| 314 | 303 |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 gfx::Insets insets_; | 651 gfx::Insets insets_; |
| 663 | 652 |
| 664 std::vector<ui::LatencyInfo> software_latency_info_; | 653 std::vector<ui::LatencyInfo> software_latency_info_; |
| 665 | 654 |
| 666 std::unique_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_; | 655 std::unique_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_; |
| 667 | 656 |
| 668 // True when this view acts as a platform view hack for a | 657 // True when this view acts as a platform view hack for a |
| 669 // RenderWidgetHostViewGuest. | 658 // RenderWidgetHostViewGuest. |
| 670 bool is_guest_view_hack_; | 659 bool is_guest_view_hack_; |
| 671 | 660 |
| 672 gfx::Rect disambiguation_target_rect_; | |
| 673 | |
| 674 // The last scroll offset when we start to render the link disambiguation | |
| 675 // view, so we can ensure the window hasn't moved between copying from the | |
| 676 // compositing surface and showing the disambiguation popup. | |
| 677 gfx::Vector2dF disambiguation_scroll_offset_; | |
| 678 | |
| 679 // This flag when set ensures that we send over a notification to blink that | 661 // This flag when set ensures that we send over a notification to blink that |
| 680 // the current view has focus. Defaults to false. | 662 // the current view has focus. Defaults to false. |
| 681 bool set_focus_on_mouse_down_or_key_event_; | 663 bool set_focus_on_mouse_down_or_key_event_; |
| 682 | 664 |
| 683 float device_scale_factor_; | 665 float device_scale_factor_; |
| 684 | 666 |
| 685 // Allows tests to send gesture events for testing without first sending a | 667 // Allows tests to send gesture events for testing without first sending a |
| 686 // corresponding touch sequence, as would be required by | 668 // corresponding touch sequence, as would be required by |
| 687 // RenderWidgetHostInputEventRouter. | 669 // RenderWidgetHostInputEventRouter. |
| 688 bool disable_input_event_router_for_testing_; | 670 bool disable_input_event_router_for_testing_; |
| 689 | 671 |
| 690 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 672 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
| 691 | 673 |
| 692 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 674 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 693 }; | 675 }; |
| 694 | 676 |
| 695 } // namespace content | 677 } // namespace content |
| 696 | 678 |
| 697 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 679 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |