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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 // Enables/disables touch emulation using mouse event. See TouchEmulator. | 366 // Enables/disables touch emulation using mouse event. See TouchEmulator. |
367 void SetTouchEventEmulationEnabled( | 367 void SetTouchEventEmulationEnabled( |
368 bool enabled, ui::GestureProviderConfigType config_type); | 368 bool enabled, ui::GestureProviderConfigType config_type); |
369 | 369 |
370 // TouchEmulatorClient implementation. | 370 // TouchEmulatorClient implementation. |
371 void ForwardEmulatedGestureEvent( | 371 void ForwardEmulatedGestureEvent( |
372 const blink::WebGestureEvent& gesture_event) override; | 372 const blink::WebGestureEvent& gesture_event) override; |
373 void ForwardEmulatedTouchEvent( | 373 void ForwardEmulatedTouchEvent( |
374 const blink::WebTouchEvent& touch_event) override; | 374 const blink::WebTouchEvent& touch_event) override; |
375 void SetCursor(const WebCursor& cursor) override; | 375 void SetCursor(const WebCursor& cursor) override; |
376 void ShowContextMenuAtPoint(const gfx::Point& point) override; | 376 void ShowContextMenuAtPoint(const gfx::Point& point, |
| 377 bool from_touch = false) override; |
377 | 378 |
378 // Queues a synthetic gesture for testing purposes. Invokes the on_complete | 379 // Queues a synthetic gesture for testing purposes. Invokes the on_complete |
379 // callback when the gesture is finished running. | 380 // callback when the gesture is finished running. |
380 void QueueSyntheticGesture( | 381 void QueueSyntheticGesture( |
381 std::unique_ptr<SyntheticGesture> synthetic_gesture, | 382 std::unique_ptr<SyntheticGesture> synthetic_gesture, |
382 const base::Callback<void(SyntheticGesture::Result)>& on_complete); | 383 const base::Callback<void(SyntheticGesture::Result)>& on_complete); |
383 | 384 |
384 void CancelUpdateTextDirection(); | 385 void CancelUpdateTextDirection(); |
385 | 386 |
386 // Update the composition node of the renderer (or WebKit). | 387 // Update the composition node of the renderer (or WebKit). |
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
981 std::queue<std::pair<uint32_t, std::vector<IPC::Message>>> queued_messages_; | 982 std::queue<std::pair<uint32_t, std::vector<IPC::Message>>> queued_messages_; |
982 | 983 |
983 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 984 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
984 | 985 |
985 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 986 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
986 }; | 987 }; |
987 | 988 |
988 } // namespace content | 989 } // namespace content |
989 | 990 |
990 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 991 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |