Index: ui/aura/root_window.cc |
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc |
index dc25b540702f0c6b37c9ef79ab9faf4dbe416c06..9c22cbe20083e1da2e677cf2bd52f793f7be879e 100644 |
--- a/ui/aura/root_window.cc |
+++ b/ui/aura/root_window.cc |
@@ -688,8 +688,7 @@ bool RootWindow::ProcessGestures(ui::GestureRecognizer::Gestures* gestures) { |
return false; |
bool handled = false; |
for (unsigned int i = 0; i < gestures->size(); i++) { |
- ui::GestureEvent* gesture = |
- static_cast<ui::GestureEvent*>(gestures->get().at(i)); |
+ ui::GestureEvent* gesture = gestures->get().at(i); |
if (DispatchGestureEvent(gesture) != ui::GESTURE_STATUS_UNKNOWN) |
handled = true; |
} |
@@ -755,30 +754,13 @@ void RootWindow::OnWindowAddedToRootWindow(Window* attached) { |
} |
bool RootWindow::DispatchLongPressGestureEvent(ui::GestureEvent* event) { |
- return DispatchGestureEvent(static_cast<ui::GestureEvent*>(event)); |
+ return DispatchGestureEvent(event); |
} |
bool RootWindow::DispatchCancelTouchEvent(ui::TouchEvent* event) { |
return OnHostTouchEvent(event); |
} |
-ui::GestureEvent* RootWindow::CreateGestureEvent( |
- const ui::GestureEventDetails& details, |
- const gfx::Point& location, |
- int flags, |
- base::Time time, |
- unsigned int touch_id_bitfield) { |
- return new ui::GestureEvent(details.type(), location.x(), location.y(), |
- flags, time, details, touch_id_bitfield); |
-} |
- |
-ui::TouchEvent* RootWindow::CreateTouchEvent(ui::EventType type, |
- const gfx::Point& location, |
- int touch_id, |
- base::TimeDelta time_stamp) { |
- return new ui::TouchEvent(type, location, touch_id, time_stamp); |
-} |
- |
void RootWindow::OnLayerAnimationEnded( |
ui::LayerAnimationSequence* animation) { |
OnHostResized(host_->GetBounds().size()); |