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_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "content/browser/renderer_host/render_widget_host_latency_tracker.h" | 32 #include "content/browser/renderer_host/render_widget_host_latency_tracker.h" |
33 #include "content/common/input/input_event_ack_state.h" | 33 #include "content/common/input/input_event_ack_state.h" |
34 #include "content/common/input/synthetic_gesture_packet.h" | 34 #include "content/common/input/synthetic_gesture_packet.h" |
35 #include "content/common/view_message_enums.h" | 35 #include "content/common/view_message_enums.h" |
36 #include "content/public/browser/readback_types.h" | 36 #include "content/public/browser/readback_types.h" |
37 #include "content/public/browser/render_widget_host.h" | 37 #include "content/public/browser/render_widget_host.h" |
38 #include "content/public/common/page_zoom.h" | 38 #include "content/public/common/page_zoom.h" |
39 #include "ipc/ipc_listener.h" | 39 #include "ipc/ipc_listener.h" |
40 #include "ui/base/ime/text_input_mode.h" | 40 #include "ui/base/ime/text_input_mode.h" |
41 #include "ui/base/ime/text_input_type.h" | 41 #include "ui/base/ime/text_input_type.h" |
| 42 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" |
42 #include "ui/events/latency_info.h" | 43 #include "ui/events/latency_info.h" |
43 #include "ui/gfx/native_widget_types.h" | 44 #include "ui/gfx/native_widget_types.h" |
44 | 45 |
45 struct AcceleratedSurfaceMsg_BufferPresented_Params; | 46 struct AcceleratedSurfaceMsg_BufferPresented_Params; |
46 struct ViewHostMsg_BeginSmoothScroll_Params; | 47 struct ViewHostMsg_BeginSmoothScroll_Params; |
47 struct ViewHostMsg_SelectionBounds_Params; | 48 struct ViewHostMsg_SelectionBounds_Params; |
48 struct ViewHostMsg_TextInputState_Params; | 49 struct ViewHostMsg_TextInputState_Params; |
49 struct ViewHostMsg_UpdateRect_Params; | 50 struct ViewHostMsg_UpdateRect_Params; |
50 struct ViewMsg_Resize_Params; | 51 struct ViewMsg_Resize_Params; |
51 | 52 |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 const blink::WebTouchEvent& touch_event, | 264 const blink::WebTouchEvent& touch_event, |
264 const ui::LatencyInfo& ui_latency); | 265 const ui::LatencyInfo& ui_latency); |
265 void ForwardMouseEventWithLatencyInfo( | 266 void ForwardMouseEventWithLatencyInfo( |
266 const blink::WebMouseEvent& mouse_event, | 267 const blink::WebMouseEvent& mouse_event, |
267 const ui::LatencyInfo& ui_latency); | 268 const ui::LatencyInfo& ui_latency); |
268 void ForwardWheelEventWithLatencyInfo( | 269 void ForwardWheelEventWithLatencyInfo( |
269 const blink::WebMouseWheelEvent& wheel_event, | 270 const blink::WebMouseWheelEvent& wheel_event, |
270 const ui::LatencyInfo& ui_latency); | 271 const ui::LatencyInfo& ui_latency); |
271 | 272 |
272 // Enables/disables touch emulation using mouse event. See TouchEmulator. | 273 // Enables/disables touch emulation using mouse event. See TouchEmulator. |
273 void SetTouchEventEmulationEnabled(bool enabled); | 274 void SetTouchEventEmulationEnabled( |
| 275 bool enabled, ui::GestureProviderConfigType config_type); |
274 | 276 |
275 // TouchEmulatorClient implementation. | 277 // TouchEmulatorClient implementation. |
276 void ForwardGestureEvent( | 278 void ForwardGestureEvent( |
277 const blink::WebGestureEvent& gesture_event) override; | 279 const blink::WebGestureEvent& gesture_event) override; |
278 void ForwardEmulatedTouchEvent( | 280 void ForwardEmulatedTouchEvent( |
279 const blink::WebTouchEvent& touch_event) override; | 281 const blink::WebTouchEvent& touch_event) override; |
280 void SetCursor(const WebCursor& cursor) override; | 282 void SetCursor(const WebCursor& cursor) override; |
281 void ShowContextMenuAtPoint(const gfx::Point& point) override; | 283 void ShowContextMenuAtPoint(const gfx::Point& point) override; |
282 | 284 |
283 // Queues a synthetic gesture for testing purposes. Invokes the on_complete | 285 // Queues a synthetic gesture for testing purposes. Invokes the on_complete |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 PendingSnapshotMap pending_browser_snapshots_; | 828 PendingSnapshotMap pending_browser_snapshots_; |
827 | 829 |
828 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 830 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
829 | 831 |
830 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 832 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
831 }; | 833 }; |
832 | 834 |
833 } // namespace content | 835 } // namespace content |
834 | 836 |
835 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 837 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |