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

Unified Diff: content/renderer/input/input_handler_proxy.cc

Issue 312323002: Code cleanup: remove some now unecessary casts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/input/input_handler_proxy.cc
diff --git a/content/renderer/input/input_handler_proxy.cc b/content/renderer/input/input_handler_proxy.cc
index bf38693024e56d1c3163e7eff7b04ab0573c7a82..951cec10d9717effe410fe7ab0abfa3ba5620588 100644
--- a/content/renderer/input/input_handler_proxy.cc
+++ b/content/renderer/input/input_handler_proxy.cc
@@ -382,10 +382,8 @@ InputHandlerProxy::HandleGestureFling(
const float vx = gesture_event.data.flingStart.velocityX;
const float vy = gesture_event.data.flingStart.velocityY;
current_fling_velocity_ = gfx::Vector2dF(vx, vy);
- // TODO(rjkroege): Remove cast after landing 3rd patch for
- // http://crbug.com/343327
fling_curve_.reset(client_->CreateFlingAnimationCurve(
- (blink::WebGestureDevice)gesture_event.sourceDevice,
+ gesture_event.sourceDevice,
WebFloatPoint(vx, vy),
blink::WebSize()));
disallow_horizontal_fling_scroll_ = !vx;
@@ -532,9 +530,8 @@ bool InputHandlerProxy::FilterInputEventForFlingBoosting(
current_fling_velocity_.y());
deferred_fling_cancel_time_seconds_ = 0;
last_fling_boost_event_ = WebGestureEvent();
- // TODO(rjkroege): Remove cast after 3rd patch of http://crbug.com/343327
fling_curve_.reset(client_->CreateFlingAnimationCurve(
- (blink::WebGestureDevice)gesture_event.sourceDevice,
+ gesture_event.sourceDevice,
velocity,
blink::WebSize()));
fling_parameters_.startTime = gesture_event.timeStampSeconds;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698