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

Unified Diff: ui/aura/root_window.cc

Issue 10834269: gestures: Some more event cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 8 years, 4 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 | « ui/aura/root_window.h ('k') | ui/base/event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « ui/aura/root_window.h ('k') | ui/base/event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698