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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 173 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
174 InputEventAckState ack_result) override; | 174 InputEventAckState ack_result) override; |
175 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() | 175 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() |
176 override; | 176 override; |
177 InputEventAckState FilterInputEvent( | 177 InputEventAckState FilterInputEvent( |
178 const blink::WebInputEvent& input_event) override; | 178 const blink::WebInputEvent& input_event) override; |
179 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( | 179 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( |
180 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; | 180 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; |
181 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; | 181 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; |
182 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override; | 182 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override; |
183 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, | |
184 const SkBitmap& zoomed_bitmap) override; | |
185 bool LockMouse() override; | 183 bool LockMouse() override; |
186 void UnlockMouse() override; | 184 void UnlockMouse() override; |
187 void OnSwapCompositorFrame( | 185 void OnSwapCompositorFrame( |
188 uint32_t output_surface_id, | 186 uint32_t output_surface_id, |
189 std::unique_ptr<cc::CompositorFrame> frame) override; | 187 std::unique_ptr<cc::CompositorFrame> frame) override; |
190 void ClearCompositorFrame() override; | 188 void ClearCompositorFrame() override; |
191 void DidStopFlinging() override; | 189 void DidStopFlinging() override; |
192 void OnDidNavigateMainFrameToNewPage() override; | 190 void OnDidNavigateMainFrameToNewPage() override; |
193 void LockCompositingSurface() override; | 191 void LockCompositingSurface() override; |
194 void UnlockCompositingSurface() override; | 192 void UnlockCompositingSurface() override; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 // Gets the HWND of the host window. | 284 // Gets the HWND of the host window. |
287 HWND GetHostWindowHWND() const; | 285 HWND GetHostWindowHWND() const; |
288 | 286 |
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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
664 gfx::Insets insets_; | 653 gfx::Insets insets_; |
665 | 654 |
666 std::vector<ui::LatencyInfo> software_latency_info_; | 655 std::vector<ui::LatencyInfo> software_latency_info_; |
667 | 656 |
668 std::unique_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_; | 657 std::unique_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_; |
669 | 658 |
670 // True when this view acts as a platform view hack for a | 659 // True when this view acts as a platform view hack for a |
671 // RenderWidgetHostViewGuest. | 660 // RenderWidgetHostViewGuest. |
672 bool is_guest_view_hack_; | 661 bool is_guest_view_hack_; |
673 | 662 |
674 gfx::Rect disambiguation_target_rect_; | |
675 | |
676 // The last scroll offset when we start to render the link disambiguation | |
677 // view, so we can ensure the window hasn't moved between copying from the | |
678 // compositing surface and showing the disambiguation popup. | |
679 gfx::Vector2dF disambiguation_scroll_offset_; | |
680 | |
681 // This flag when set ensures that we send over a notification to blink that | 663 // This flag when set ensures that we send over a notification to blink that |
682 // the current view has focus. Defaults to false. | 664 // the current view has focus. Defaults to false. |
683 bool set_focus_on_mouse_down_or_key_event_; | 665 bool set_focus_on_mouse_down_or_key_event_; |
684 | 666 |
685 float device_scale_factor_; | 667 float device_scale_factor_; |
686 | 668 |
687 // Allows tests to send gesture events for testing without first sending a | 669 // Allows tests to send gesture events for testing without first sending a |
688 // corresponding touch sequence, as would be required by | 670 // corresponding touch sequence, as would be required by |
689 // RenderWidgetHostInputEventRouter. | 671 // RenderWidgetHostInputEventRouter. |
690 bool disable_input_event_router_for_testing_; | 672 bool disable_input_event_router_for_testing_; |
691 | 673 |
692 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 674 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
693 | 675 |
694 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 676 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
695 }; | 677 }; |
696 | 678 |
697 } // namespace content | 679 } // namespace content |
698 | 680 |
699 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 681 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |