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 <deque> | 8 #include <deque> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 | 269 |
270 // Starts a hang monitor timeout. If there's already a hang monitor timeout | 270 // Starts a hang monitor timeout. If there's already a hang monitor timeout |
271 // the new one will only fire if it has a shorter delay than the time | 271 // the new one will only fire if it has a shorter delay than the time |
272 // left on the existing timeouts. | 272 // left on the existing timeouts. |
273 void StartHangMonitorTimeout(base::TimeDelta delay); | 273 void StartHangMonitorTimeout(base::TimeDelta delay); |
274 | 274 |
275 // Stops all existing hang monitor timeouts and assumes the renderer is | 275 // Stops all existing hang monitor timeouts and assumes the renderer is |
276 // responsive. | 276 // responsive. |
277 void StopHangMonitorTimeout(); | 277 void StopHangMonitorTimeout(); |
278 | 278 |
279 // Disables elastic overscroll effect if enabled. | |
280 void DisableElasticOverscroll(); | |
281 | |
282 // Forwards the given message to the renderer. These are called by the view | 279 // Forwards the given message to the renderer. These are called by the view |
283 // when it has received a message. | 280 // when it has received a message. |
284 void ForwardGestureEventWithLatencyInfo( | 281 void ForwardGestureEventWithLatencyInfo( |
285 const blink::WebGestureEvent& gesture_event, | 282 const blink::WebGestureEvent& gesture_event, |
286 const ui::LatencyInfo& ui_latency); | 283 const ui::LatencyInfo& ui_latency); |
287 void ForwardTouchEventWithLatencyInfo( | 284 void ForwardTouchEventWithLatencyInfo( |
288 const blink::WebTouchEvent& touch_event, | 285 const blink::WebTouchEvent& touch_event, |
289 const ui::LatencyInfo& ui_latency); | 286 const ui::LatencyInfo& ui_latency); |
290 void ForwardMouseEventWithLatencyInfo( | 287 void ForwardMouseEventWithLatencyInfo( |
291 const blink::WebMouseEvent& mouse_event, | 288 const blink::WebMouseEvent& mouse_event, |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
860 bool is_focused_; | 857 bool is_focused_; |
861 | 858 |
862 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 859 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
863 | 860 |
864 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 861 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
865 }; | 862 }; |
866 | 863 |
867 } // namespace content | 864 } // namespace content |
868 | 865 |
869 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 866 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |