| 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 // |next_source_id| to be discarded. | 338 // |next_source_id| to be discarded. |
| 339 void StartNewContentRenderingTimeout(uint32_t next_source_id); | 339 void StartNewContentRenderingTimeout(uint32_t next_source_id); |
| 340 | 340 |
| 341 // Forwards the keyboard event with optional commands to the renderer. If | 341 // Forwards the keyboard event with optional commands to the renderer. If |
| 342 // |key_event| is not forwarded for any reason, then |commands| are ignored. | 342 // |key_event| is not forwarded for any reason, then |commands| are ignored. |
| 343 // |update_event| (if non-null) is set to indicate whether the underlying | 343 // |update_event| (if non-null) is set to indicate whether the underlying |
| 344 // event in |key_event| should be updated. |update_event| is only used on | 344 // event in |key_event| should be updated. |update_event| is only used on |
| 345 // aura. | 345 // aura. |
| 346 void ForwardKeyboardEventWithCommands( | 346 void ForwardKeyboardEventWithCommands( |
| 347 const NativeWebKeyboardEvent& key_event, | 347 const NativeWebKeyboardEvent& key_event, |
| 348 const ui::LatencyInfo& latency, |
| 348 const std::vector<EditCommand>* commands, | 349 const std::vector<EditCommand>* commands, |
| 349 bool* update_event = nullptr); | 350 bool* update_event = nullptr); |
| 350 | 351 |
| 351 // Forwards the given message to the renderer. These are called by the view | 352 // Forwards the given message to the renderer. These are called by the view |
| 352 // when it has received a message. | 353 // when it has received a message. |
| 354 void ForwardKeyboardEventWithLatencyInfo( |
| 355 const NativeWebKeyboardEvent& key_event, |
| 356 const ui::LatencyInfo& latency) override; |
| 353 void ForwardGestureEventWithLatencyInfo( | 357 void ForwardGestureEventWithLatencyInfo( |
| 354 const blink::WebGestureEvent& gesture_event, | 358 const blink::WebGestureEvent& gesture_event, |
| 355 const ui::LatencyInfo& ui_latency) override; | 359 const ui::LatencyInfo& latency) override; |
| 356 virtual void ForwardTouchEventWithLatencyInfo( | 360 virtual void ForwardTouchEventWithLatencyInfo( |
| 357 const blink::WebTouchEvent& touch_event, | 361 const blink::WebTouchEvent& touch_event, |
| 358 const ui::LatencyInfo& ui_latency); // Virtual for testing. | 362 const ui::LatencyInfo& latency); // Virtual for testing. |
| 359 void ForwardMouseEventWithLatencyInfo( | 363 void ForwardMouseEventWithLatencyInfo(const blink::WebMouseEvent& mouse_event, |
| 360 const blink::WebMouseEvent& mouse_event, | 364 const ui::LatencyInfo& latency); |
| 361 const ui::LatencyInfo& ui_latency); | |
| 362 virtual void ForwardWheelEventWithLatencyInfo( | 365 virtual void ForwardWheelEventWithLatencyInfo( |
| 363 const blink::WebMouseWheelEvent& wheel_event, | 366 const blink::WebMouseWheelEvent& wheel_event, |
| 364 const ui::LatencyInfo& ui_latency); // Virtual for testing. | 367 const ui::LatencyInfo& latency); // Virtual for testing. |
| 365 | 368 |
| 366 // Enables/disables touch emulation using mouse event. See TouchEmulator. | 369 // Enables/disables touch emulation using mouse event. See TouchEmulator. |
| 367 void SetTouchEventEmulationEnabled( | 370 void SetTouchEventEmulationEnabled( |
| 368 bool enabled, ui::GestureProviderConfigType config_type); | 371 bool enabled, ui::GestureProviderConfigType config_type); |
| 369 | 372 |
| 370 // TouchEmulatorClient implementation. | 373 // TouchEmulatorClient implementation. |
| 371 void ForwardEmulatedGestureEvent( | 374 void ForwardEmulatedGestureEvent( |
| 372 const blink::WebGestureEvent& gesture_event) override; | 375 const blink::WebGestureEvent& gesture_event) override; |
| 373 void ForwardEmulatedTouchEvent( | 376 void ForwardEmulatedTouchEvent( |
| 374 const blink::WebTouchEvent& touch_event) override; | 377 const blink::WebTouchEvent& touch_event) override; |
| (...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 981 std::queue<std::pair<uint32_t, std::vector<IPC::Message>>> queued_messages_; | 984 std::queue<std::pair<uint32_t, std::vector<IPC::Message>>> queued_messages_; |
| 982 | 985 |
| 983 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 986 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 984 | 987 |
| 985 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 988 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 986 }; | 989 }; |
| 987 | 990 |
| 988 } // namespace content | 991 } // namespace content |
| 989 | 992 |
| 990 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 993 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |