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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 void WheelEventAck(const blink::WebMouseWheelEvent& event, | 150 void WheelEventAck(const blink::WebMouseWheelEvent& event, |
151 InputEventAckState ack_result) override; | 151 InputEventAckState ack_result) override; |
152 void GestureEventAck(const blink::WebGestureEvent& event, | 152 void GestureEventAck(const blink::WebGestureEvent& event, |
153 InputEventAckState ack_result) override; | 153 InputEventAckState ack_result) override; |
154 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 154 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
155 InputEventAckState ack_result) override; | 155 InputEventAckState ack_result) override; |
156 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() | 156 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() |
157 override; | 157 override; |
158 InputEventAckState FilterInputEvent( | 158 InputEventAckState FilterInputEvent( |
159 const blink::WebInputEvent& input_event) override; | 159 const blink::WebInputEvent& input_event) override; |
| 160 InputEventAckState FilterChildGestureEvent( |
| 161 const blink::WebGestureEvent& gesture_event) override; |
160 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( | 162 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( |
161 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; | 163 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; |
162 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; | 164 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; |
163 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override; | 165 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override; |
164 void SetMainFrameAXTreeID(ui::AXTreeIDRegistry::AXTreeID id) override; | 166 void SetMainFrameAXTreeID(ui::AXTreeIDRegistry::AXTreeID id) override; |
165 bool LockMouse() override; | 167 bool LockMouse() override; |
166 void UnlockMouse() override; | 168 void UnlockMouse() override; |
167 void DidCreateNewRendererCompositorFrameSink( | 169 void DidCreateNewRendererCompositorFrameSink( |
168 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink) | 170 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink) |
169 override; | 171 override; |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 #endif | 289 #endif |
288 | 290 |
289 // Method to indicate if this instance is shutting down or closing. | 291 // Method to indicate if this instance is shutting down or closing. |
290 // TODO(shrikant): Discuss around to see if it makes sense to add this method | 292 // TODO(shrikant): Discuss around to see if it makes sense to add this method |
291 // as part of RenderWidgetHostView. | 293 // as part of RenderWidgetHostView. |
292 bool IsClosing() const { return in_shutdown_; } | 294 bool IsClosing() const { return in_shutdown_; } |
293 | 295 |
294 // Sets whether the overscroll controller should be enabled for this page. | 296 // Sets whether the overscroll controller should be enabled for this page. |
295 void SetOverscrollControllerEnabled(bool enabled); | 297 void SetOverscrollControllerEnabled(bool enabled); |
296 | 298 |
| 299 // TODO(mcnee): Tests needing this are BrowserPlugin specific. Remove after |
| 300 // removing BrowserPlugin (crbug.com/533069). |
| 301 void SetOverscrollControllerForTesting( |
| 302 std::unique_ptr<OverscrollController> controller); |
| 303 |
297 void SnapToPhysicalPixelBoundary(); | 304 void SnapToPhysicalPixelBoundary(); |
298 | 305 |
299 // Called when the context menu is about to be displayed. | 306 // Called when the context menu is about to be displayed. |
300 // Returns true if the context menu should be displayed. We only return false | 307 // Returns true if the context menu should be displayed. We only return false |
301 // on Windows if the context menu is being displayed in response to a long | 308 // on Windows if the context menu is being displayed in response to a long |
302 // press gesture. On Windows we should be consistent like other apps and | 309 // press gesture. On Windows we should be consistent like other apps and |
303 // display the menu when the touch is released. | 310 // display the menu when the touch is released. |
304 bool OnShowContextMenu(const ContextMenuParams& params); | 311 bool OnShowContextMenu(const ContextMenuParams& params); |
305 | 312 |
306 // Used in tests to set a mock client for touch selection controller. It will | 313 // Used in tests to set a mock client for touch selection controller. It will |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 cc::LocalSurfaceId local_surface_id_; | 612 cc::LocalSurfaceId local_surface_id_; |
606 | 613 |
607 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 614 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
608 | 615 |
609 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 616 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
610 }; | 617 }; |
611 | 618 |
612 } // namespace content | 619 } // namespace content |
613 | 620 |
614 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 621 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |