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 16 matching lines...) Expand all Loading... |
27 #include "cc/resources/shared_bitmap.h" | 27 #include "cc/resources/shared_bitmap.h" |
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_view_base.h" | 34 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
35 #include "content/common/input/input_event_ack_state.h" | 35 #include "content/common/input/input_event_ack_state.h" |
36 #include "content/common/input/synthetic_gesture_packet.h" | 36 #include "content/common/input/synthetic_gesture_packet.h" |
| 37 #include "content/common/input/synthetic_pointer_action_params.h" |
37 #include "content/common/view_message_enums.h" | 38 #include "content/common/view_message_enums.h" |
38 #include "content/public/browser/readback_types.h" | 39 #include "content/public/browser/readback_types.h" |
39 #include "content/public/browser/render_widget_host.h" | 40 #include "content/public/browser/render_widget_host.h" |
40 #include "content/public/common/page_zoom.h" | 41 #include "content/public/common/page_zoom.h" |
41 #include "ipc/ipc_listener.h" | 42 #include "ipc/ipc_listener.h" |
42 #include "third_party/WebKit/public/platform/WebDisplayMode.h" | 43 #include "third_party/WebKit/public/platform/WebDisplayMode.h" |
43 #include "ui/base/ime/text_input_mode.h" | 44 #include "ui/base/ime/text_input_mode.h" |
44 #include "ui/base/ime/text_input_type.h" | 45 #include "ui/base/ime/text_input_type.h" |
45 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" | 46 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" |
46 #include "ui/events/latency_info.h" | 47 #include "ui/events/latency_info.h" |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 const blink::WebTouchEvent& touch_event) override; | 317 const blink::WebTouchEvent& touch_event) override; |
317 void SetCursor(const WebCursor& cursor) override; | 318 void SetCursor(const WebCursor& cursor) override; |
318 void ShowContextMenuAtPoint(const gfx::Point& point) override; | 319 void ShowContextMenuAtPoint(const gfx::Point& point) override; |
319 | 320 |
320 // Queues a synthetic gesture for testing purposes. Invokes the on_complete | 321 // Queues a synthetic gesture for testing purposes. Invokes the on_complete |
321 // callback when the gesture is finished running. | 322 // callback when the gesture is finished running. |
322 void QueueSyntheticGesture( | 323 void QueueSyntheticGesture( |
323 std::unique_ptr<SyntheticGesture> synthetic_gesture, | 324 std::unique_ptr<SyntheticGesture> synthetic_gesture, |
324 const base::Callback<void(SyntheticGesture::Result)>& on_complete); | 325 const base::Callback<void(SyntheticGesture::Result)>& on_complete); |
325 | 326 |
| 327 void QueueSyntheticPointerAction( |
| 328 const SyntheticPointerActionParams& gesture_params, |
| 329 const base::Callback<void(SyntheticGesture::Result)>& on_complete); |
| 330 |
326 void CancelUpdateTextDirection(); | 331 void CancelUpdateTextDirection(); |
327 | 332 |
328 // Update the composition node of the renderer (or WebKit). | 333 // Update the composition node of the renderer (or WebKit). |
329 // WebKit has a special node (a composition node) for input method to change | 334 // WebKit has a special node (a composition node) for input method to change |
330 // its text without affecting any other DOM nodes. When the input method | 335 // its text without affecting any other DOM nodes. When the input method |
331 // (attached to the browser) updates its text, the browser sends IPC messages | 336 // (attached to the browser) updates its text, the browser sends IPC messages |
332 // to update the composition node of the renderer. | 337 // to update the composition node of the renderer. |
333 // (Read the comments of each function for its detail.) | 338 // (Read the comments of each function for its detail.) |
334 | 339 |
335 // Sets the text of the composition node. | 340 // Sets the text of the composition node. |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 void OnWheelEventAck(const MouseWheelEventWithLatencyInfo& event, | 622 void OnWheelEventAck(const MouseWheelEventWithLatencyInfo& event, |
618 InputEventAckState ack_result) override; | 623 InputEventAckState ack_result) override; |
619 void OnTouchEventAck(const TouchEventWithLatencyInfo& event, | 624 void OnTouchEventAck(const TouchEventWithLatencyInfo& event, |
620 InputEventAckState ack_result) override; | 625 InputEventAckState ack_result) override; |
621 void OnGestureEventAck(const GestureEventWithLatencyInfo& event, | 626 void OnGestureEventAck(const GestureEventWithLatencyInfo& event, |
622 InputEventAckState ack_result) override; | 627 InputEventAckState ack_result) override; |
623 void OnUnexpectedEventAck(UnexpectedEventAckType type) override; | 628 void OnUnexpectedEventAck(UnexpectedEventAckType type) override; |
624 | 629 |
625 void OnSyntheticGestureCompleted(SyntheticGesture::Result result); | 630 void OnSyntheticGestureCompleted(SyntheticGesture::Result result); |
626 | 631 |
| 632 void OnSyntheticPointerActionCompleted(SyntheticGesture::Result result); |
| 633 |
627 // Called when there is a new auto resize (using a post to avoid a stack | 634 // Called when there is a new auto resize (using a post to avoid a stack |
628 // which may get in recursive loops). | 635 // which may get in recursive loops). |
629 void DelayedAutoResized(); | 636 void DelayedAutoResized(); |
630 | 637 |
631 void WindowSnapshotReachedScreen(int snapshot_id); | 638 void WindowSnapshotReachedScreen(int snapshot_id); |
632 | 639 |
633 void OnSnapshotDataReceived(int snapshot_id, | 640 void OnSnapshotDataReceived(int snapshot_id, |
634 const unsigned char* png, | 641 const unsigned char* png, |
635 size_t size); | 642 size_t size); |
636 | 643 |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 base::TimeDelta new_content_rendering_delay_; | 825 base::TimeDelta new_content_rendering_delay_; |
819 | 826 |
820 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 827 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
821 | 828 |
822 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 829 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
823 }; | 830 }; |
824 | 831 |
825 } // namespace content | 832 } // namespace content |
826 | 833 |
827 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 834 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |