Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(412)

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 963743003: Revert of Disable elastic overscroll effect in DevTools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
887 void RenderWidgetHostImpl::ForwardMouseEvent(const WebMouseEvent& mouse_event) { 883 void RenderWidgetHostImpl::ForwardMouseEvent(const WebMouseEvent& mouse_event) {
888 ForwardMouseEventWithLatencyInfo(mouse_event, ui::LatencyInfo()); 884 ForwardMouseEventWithLatencyInfo(mouse_event, ui::LatencyInfo());
889 } 885 }
890 886
891 void RenderWidgetHostImpl::ForwardMouseEventWithLatencyInfo( 887 void RenderWidgetHostImpl::ForwardMouseEventWithLatencyInfo(
892 const blink::WebMouseEvent& mouse_event, 888 const blink::WebMouseEvent& mouse_event,
893 const ui::LatencyInfo& ui_latency) { 889 const ui::LatencyInfo& ui_latency) {
894 TRACE_EVENT2("input", "RenderWidgetHostImpl::ForwardMouseEvent", 890 TRACE_EVENT2("input", "RenderWidgetHostImpl::ForwardMouseEvent",
895 "x", mouse_event.x, "y", mouse_event.y); 891 "x", mouse_event.x, "y", mouse_event.y);
896 892
(...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after
2197 } 2193 }
2198 #endif 2194 #endif
2199 2195
2200 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { 2196 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() {
2201 if (view_) 2197 if (view_)
2202 return view_->PreferredReadbackFormat(); 2198 return view_->PreferredReadbackFormat();
2203 return kN32_SkColorType; 2199 return kN32_SkColorType;
2204 } 2200 }
2205 2201
2206 } // namespace content 2202 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698