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

Unified Diff: ui/aura/root_window.cc

Issue 10831240: Remove TouchEvent interface, and rename TouchEventImpl to TouchEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge-tot 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/aura/root_window_host_delegate.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 a80ead2406c2933adb5498fc5147fddca6e0ae9b..d800b6c0cd2308d2eac0a59bf3876743b79cf26a 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -635,7 +635,7 @@ bool RootWindow::ProcessKeyEvent(Window* target, ui::KeyEvent* event) {
}
ui::TouchStatus RootWindow::ProcessTouchEvent(Window* target,
- ui::TouchEventImpl* event) {
+ ui::TouchEvent* event) {
if (!target->IsVisible())
return ui::TOUCH_STATUS_UNKNOWN;
@@ -759,7 +759,7 @@ bool RootWindow::DispatchLongPressGestureEvent(ui::GestureEvent* event) {
}
bool RootWindow::DispatchCancelTouchEvent(ui::TouchEvent* event) {
- return OnHostTouchEvent(static_cast<ui::TouchEventImpl*>(event));
+ return OnHostTouchEvent(event);
}
ui::GestureEvent* RootWindow::CreateGestureEvent(
@@ -776,7 +776,7 @@ ui::TouchEvent* RootWindow::CreateTouchEvent(ui::EventType type,
const gfx::Point& location,
int touch_id,
base::TimeDelta time_stamp) {
- return new ui::TouchEventImpl(type, location, touch_id, time_stamp);
+ return new ui::TouchEvent(type, location, touch_id, time_stamp);
}
void RootWindow::OnLayerAnimationEnded(
@@ -856,7 +856,7 @@ bool RootWindow::OnHostScrollEvent(ui::ScrollEvent* event) {
return false;
}
-bool RootWindow::OnHostTouchEvent(ui::TouchEventImpl* event) {
+bool RootWindow::OnHostTouchEvent(ui::TouchEvent* event) {
DispatchHeldMouseMove();
switch (event->type()) {
case ui::ET_TOUCH_PRESSED:
@@ -886,7 +886,7 @@ bool RootWindow::OnHostTouchEvent(ui::TouchEventImpl* event) {
gesture_recognizer_->GetTouchLockedTarget(event));
if (!target) {
target = ConsumerToWindow(
- gesture_recognizer_->GetTargetForLocation(event->GetLocation()));
+ gesture_recognizer_->GetTargetForLocation(event->location()));
}
}
@@ -901,7 +901,7 @@ bool RootWindow::OnHostTouchEvent(ui::TouchEventImpl* event) {
return false;
}
- ui::TouchEventImpl translated_event(
+ ui::TouchEvent translated_event(
*event, static_cast<Window*>(this), target);
status = ProcessTouchEvent(target, &translated_event);
handled = status != ui::TOUCH_STATUS_UNKNOWN;
« no previous file with comments | « ui/aura/root_window.h ('k') | ui/aura/root_window_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698