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 #include "content/browser/renderer_host/render_widget_host_impl.h" | 5 #include "content/browser/renderer_host/render_widget_host_impl.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
873 hang_monitor_timeout_->Restart( | 873 hang_monitor_timeout_->Restart( |
874 base::TimeDelta::FromMilliseconds(hung_renderer_delay_ms_)); | 874 base::TimeDelta::FromMilliseconds(hung_renderer_delay_ms_)); |
875 } | 875 } |
876 | 876 |
877 void RenderWidgetHostImpl::StopHangMonitorTimeout() { | 877 void RenderWidgetHostImpl::StopHangMonitorTimeout() { |
878 if (hang_monitor_timeout_) | 878 if (hang_monitor_timeout_) |
879 hang_monitor_timeout_->Stop(); | 879 hang_monitor_timeout_->Stop(); |
880 RendererIsResponsive(); | 880 RendererIsResponsive(); |
881 } | 881 } |
882 | 882 |
| 883 void RenderWidgetHostImpl::DisableElasticOverscroll() { |
| 884 // TODO(dgozman): Send an IPC handled by InputHandlerProxy. |
| 885 } |
| 886 |
883 void RenderWidgetHostImpl::ForwardMouseEvent(const WebMouseEvent& mouse_event) { | 887 void RenderWidgetHostImpl::ForwardMouseEvent(const WebMouseEvent& mouse_event) { |
884 ForwardMouseEventWithLatencyInfo(mouse_event, ui::LatencyInfo()); | 888 ForwardMouseEventWithLatencyInfo(mouse_event, ui::LatencyInfo()); |
885 } | 889 } |
886 | 890 |
887 void RenderWidgetHostImpl::ForwardMouseEventWithLatencyInfo( | 891 void RenderWidgetHostImpl::ForwardMouseEventWithLatencyInfo( |
888 const blink::WebMouseEvent& mouse_event, | 892 const blink::WebMouseEvent& mouse_event, |
889 const ui::LatencyInfo& ui_latency) { | 893 const ui::LatencyInfo& ui_latency) { |
890 TRACE_EVENT2("input", "RenderWidgetHostImpl::ForwardMouseEvent", | 894 TRACE_EVENT2("input", "RenderWidgetHostImpl::ForwardMouseEvent", |
891 "x", mouse_event.x, "y", mouse_event.y); | 895 "x", mouse_event.x, "y", mouse_event.y); |
892 | 896 |
(...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2193 } | 2197 } |
2194 #endif | 2198 #endif |
2195 | 2199 |
2196 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { | 2200 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { |
2197 if (view_) | 2201 if (view_) |
2198 return view_->PreferredReadbackFormat(); | 2202 return view_->PreferredReadbackFormat(); |
2199 return kN32_SkColorType; | 2203 return kN32_SkColorType; |
2200 } | 2204 } |
2201 | 2205 |
2202 } // namespace content | 2206 } // namespace content |
OLD | NEW |