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

Side by Side Diff: content/renderer/input/input_handler_manager.cc

Issue 136173004: Early terminate flings when scrolling impossible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 8 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/renderer/input/input_handler_manager.h" 5 #include "content/renderer/input/input_handler_manager.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "cc/input/input_handler.h" 10 #include "cc/input/input_handler.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // Oops, we no longer have an interested input handler.. 116 // Oops, we no longer have an interested input handler..
117 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; 117 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED;
118 } 118 }
119 119
120 InputHandlerProxy* proxy = it->second->input_handler_proxy(); 120 InputHandlerProxy* proxy = it->second->input_handler_proxy();
121 return InputEventDispositionToAck( 121 return InputEventDispositionToAck(
122 proxy->HandleInputEventWithLatencyInfo(*input_event, latency_info)); 122 proxy->HandleInputEventWithLatencyInfo(*input_event, latency_info));
123 } 123 }
124 124
125 void InputHandlerManager::DidOverscroll(int routing_id, 125 void InputHandlerManager::DidOverscroll(int routing_id,
126 const cc::DidOverscrollParams& params) { 126 const DidOverscrollParams& params) {
127 client_->DidOverscroll(routing_id, params); 127 client_->DidOverscroll(routing_id, params);
128 } 128 }
129 129
130 void InputHandlerManager::DidStopFlinging(int routing_id) { 130 void InputHandlerManager::DidStopFlinging(int routing_id) {
131 client_->DidStopFlinging(routing_id); 131 client_->DidStopFlinging(routing_id);
132 } 132 }
133 133
134 } // namespace content 134 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/input/input_handler_manager.h ('k') | content/renderer/input/input_handler_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698