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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 // a page load. This stops |new_content_rendering_timeout_|, or prevents | 309 // a page load. This stops |new_content_rendering_timeout_|, or prevents |
310 // the timer from running if the load commit message hasn't been received | 310 // the timer from running if the load commit message hasn't been received |
311 // yet. | 311 // yet. |
312 void OnFirstPaintAfterLoad(); | 312 void OnFirstPaintAfterLoad(); |
313 | 313 |
314 // Forwards the given message to the renderer. These are called by the view | 314 // Forwards the given message to the renderer. These are called by the view |
315 // when it has received a message. | 315 // when it has received a message. |
316 void ForwardGestureEventWithLatencyInfo( | 316 void ForwardGestureEventWithLatencyInfo( |
317 const blink::WebGestureEvent& gesture_event, | 317 const blink::WebGestureEvent& gesture_event, |
318 const ui::LatencyInfo& ui_latency) override; | 318 const ui::LatencyInfo& ui_latency) override; |
319 void ForwardTouchEventWithLatencyInfo( | 319 virtual void ForwardTouchEventWithLatencyInfo( |
320 const blink::WebTouchEvent& touch_event, | 320 const blink::WebTouchEvent& touch_event, |
321 const ui::LatencyInfo& ui_latency); | 321 const ui::LatencyInfo& ui_latency); // Virtual for testing. |
322 void ForwardMouseEventWithLatencyInfo( | 322 void ForwardMouseEventWithLatencyInfo( |
323 const blink::WebMouseEvent& mouse_event, | 323 const blink::WebMouseEvent& mouse_event, |
324 const ui::LatencyInfo& ui_latency); | 324 const ui::LatencyInfo& ui_latency); |
325 virtual void ForwardWheelEventWithLatencyInfo( | 325 virtual void ForwardWheelEventWithLatencyInfo( |
326 const blink::WebMouseWheelEvent& wheel_event, | 326 const blink::WebMouseWheelEvent& wheel_event, |
327 const ui::LatencyInfo& ui_latency); // Virtual for testing. | 327 const ui::LatencyInfo& ui_latency); // Virtual for testing. |
328 | 328 |
329 // Enables/disables touch emulation using mouse event. See TouchEmulator. | 329 // Enables/disables touch emulation using mouse event. See TouchEmulator. |
330 void SetTouchEventEmulationEnabled( | 330 void SetTouchEventEmulationEnabled( |
331 bool enabled, ui::GestureProviderConfigType config_type); | 331 bool enabled, ui::GestureProviderConfigType config_type); |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 #endif | 846 #endif |
847 | 847 |
848 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 848 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
849 | 849 |
850 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 850 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
851 }; | 851 }; |
852 | 852 |
853 } // namespace content | 853 } // namespace content |
854 | 854 |
855 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 855 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |