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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "content/browser/renderer_host/event_with_latency_info.h" | 28 #include "content/browser/renderer_host/event_with_latency_info.h" |
29 #include "content/browser/renderer_host/input/input_ack_handler.h" | 29 #include "content/browser/renderer_host/input/input_ack_handler.h" |
30 #include "content/browser/renderer_host/input/input_router_client.h" | 30 #include "content/browser/renderer_host/input/input_router_client.h" |
31 #include "content/browser/renderer_host/input/render_widget_host_latency_tracker
.h" | 31 #include "content/browser/renderer_host/input/render_widget_host_latency_tracker
.h" |
32 #include "content/browser/renderer_host/input/synthetic_gesture.h" | 32 #include "content/browser/renderer_host/input/synthetic_gesture.h" |
33 #include "content/browser/renderer_host/input/touch_emulator_client.h" | 33 #include "content/browser/renderer_host/input/touch_emulator_client.h" |
34 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 34 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
35 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 35 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
36 #include "content/common/input/input_event_ack_state.h" | 36 #include "content/common/input/input_event_ack_state.h" |
37 #include "content/common/input/synthetic_gesture_packet.h" | 37 #include "content/common/input/synthetic_gesture_packet.h" |
| 38 #include "content/common/input/synthetic_pointer_action_params.h" |
38 #include "content/common/view_message_enums.h" | 39 #include "content/common/view_message_enums.h" |
39 #include "content/public/browser/readback_types.h" | 40 #include "content/public/browser/readback_types.h" |
40 #include "content/public/browser/render_widget_host.h" | 41 #include "content/public/browser/render_widget_host.h" |
41 #include "content/public/common/page_zoom.h" | 42 #include "content/public/common/page_zoom.h" |
42 #include "ipc/ipc_listener.h" | 43 #include "ipc/ipc_listener.h" |
43 #include "third_party/WebKit/public/platform/WebDisplayMode.h" | 44 #include "third_party/WebKit/public/platform/WebDisplayMode.h" |
44 #include "ui/base/ime/text_input_mode.h" | 45 #include "ui/base/ime/text_input_mode.h" |
45 #include "ui/base/ime/text_input_type.h" | 46 #include "ui/base/ime/text_input_type.h" |
46 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" | 47 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" |
47 #include "ui/events/latency_info.h" | 48 #include "ui/events/latency_info.h" |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 const blink::WebTouchEvent& touch_event) override; | 338 const blink::WebTouchEvent& touch_event) override; |
338 void SetCursor(const WebCursor& cursor) override; | 339 void SetCursor(const WebCursor& cursor) override; |
339 void ShowContextMenuAtPoint(const gfx::Point& point) override; | 340 void ShowContextMenuAtPoint(const gfx::Point& point) override; |
340 | 341 |
341 // Queues a synthetic gesture for testing purposes. Invokes the on_complete | 342 // Queues a synthetic gesture for testing purposes. Invokes the on_complete |
342 // callback when the gesture is finished running. | 343 // callback when the gesture is finished running. |
343 void QueueSyntheticGesture( | 344 void QueueSyntheticGesture( |
344 std::unique_ptr<SyntheticGesture> synthetic_gesture, | 345 std::unique_ptr<SyntheticGesture> synthetic_gesture, |
345 const base::Callback<void(SyntheticGesture::Result)>& on_complete); | 346 const base::Callback<void(SyntheticGesture::Result)>& on_complete); |
346 | 347 |
| 348 void QueueSyntheticGesture( |
| 349 const SyntheticGestureParams& gesture_params, |
| 350 const base::Callback<void(SyntheticGesture::Result)>& on_complete); |
| 351 |
347 void CancelUpdateTextDirection(); | 352 void CancelUpdateTextDirection(); |
348 | 353 |
349 // Update the composition node of the renderer (or WebKit). | 354 // Update the composition node of the renderer (or WebKit). |
350 // WebKit has a special node (a composition node) for input method to change | 355 // WebKit has a special node (a composition node) for input method to change |
351 // its text without affecting any other DOM nodes. When the input method | 356 // its text without affecting any other DOM nodes. When the input method |
352 // (attached to the browser) updates its text, the browser sends IPC messages | 357 // (attached to the browser) updates its text, the browser sends IPC messages |
353 // to update the composition node of the renderer. | 358 // to update the composition node of the renderer. |
354 // (Read the comments of each function for its detail.) | 359 // (Read the comments of each function for its detail.) |
355 | 360 |
356 // Sets the text of the composition node. | 361 // Sets the text of the composition node. |
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 #endif | 851 #endif |
847 | 852 |
848 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 853 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
849 | 854 |
850 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 855 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
851 }; | 856 }; |
852 | 857 |
853 } // namespace content | 858 } // namespace content |
854 | 859 |
855 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 860 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |