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 |
279 // Forwards the given message to the renderer. These are called by the view | 282 // Forwards the given message to the renderer. These are called by the view |
280 // when it has received a message. | 283 // when it has received a message. |
281 void ForwardGestureEventWithLatencyInfo( | 284 void ForwardGestureEventWithLatencyInfo( |
282 const blink::WebGestureEvent& gesture_event, | 285 const blink::WebGestureEvent& gesture_event, |
283 const ui::LatencyInfo& ui_latency); | 286 const ui::LatencyInfo& ui_latency); |
284 void ForwardTouchEventWithLatencyInfo( | 287 void ForwardTouchEventWithLatencyInfo( |
285 const blink::WebTouchEvent& touch_event, | 288 const blink::WebTouchEvent& touch_event, |
286 const ui::LatencyInfo& ui_latency); | 289 const ui::LatencyInfo& ui_latency); |
287 void ForwardMouseEventWithLatencyInfo( | 290 void ForwardMouseEventWithLatencyInfo( |
288 const blink::WebMouseEvent& mouse_event, | 291 const blink::WebMouseEvent& mouse_event, |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
857 bool is_focused_; | 860 bool is_focused_; |
858 | 861 |
859 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 862 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
860 | 863 |
861 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 864 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
862 }; | 865 }; |
863 | 866 |
864 } // namespace content | 867 } // namespace content |
865 | 868 |
866 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 869 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |