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

Unified Diff: ash/wm/system_gesture_event_filter_unittest.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 | « ash/wm/system_gesture_event_filter.cc ('k') | ash/wm/system_modal_container_event_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/system_gesture_event_filter_unittest.cc
diff --git a/ash/wm/system_gesture_event_filter_unittest.cc b/ash/wm/system_gesture_event_filter_unittest.cc
index ed838636a8c10612a6c50bf78ffe26471f485de4..638f2d9730333355d8fada9368ecfbb32534ea64 100644
--- a/ash/wm/system_gesture_event_filter_unittest.cc
+++ b/ash/wm/system_gesture_event_filter_unittest.cc
@@ -158,7 +158,7 @@ TEST_F(SystemGestureEventFilterTest, TapOutsideRootWindow) {
const int kTouchId = 5;
// A touch outside the root window will be associated with the root window
- ui::TouchEventImpl press(ui::ET_TOUCH_PRESSED, gfx::Point(-10, -10), kTouchId,
+ ui::TouchEvent press(ui::ET_TOUCH_PRESSED, gfx::Point(-10, -10), kTouchId,
base::Time::NowFromSystemTime() - base::Time());
root_window->AsRootWindowHostDelegate()->OnHostTouchEvent(&press);
@@ -214,7 +214,7 @@ TEST_F(SystemGestureEventFilterTest, DeviceControl) {
xpos = screen.right() + 40; // Make sure it is out of the screen.
}
// Get a target for kTouchId
- ui::TouchEventImpl press1(ui::ET_TOUCH_PRESSED,
+ ui::TouchEvent press1(ui::ET_TOUCH_PRESSED,
gfx::Point(-10, ypos + ypos_half),
kTouchId,
base::Time::NowFromSystemTime() - base::Time());
@@ -284,7 +284,7 @@ TEST_F(SystemGestureEventFilterTest, DeviceControl) {
EXPECT_TRUE(consumed);
EXPECT_EQ(3, delegate->handle_percent_count());
- ui::TouchEventImpl release1(
+ ui::TouchEvent release1(
ui::ET_TOUCH_RELEASED, gfx::Point(2 * xpos, ypos + ypos_half), kTouchId,
base::Time::NowFromSystemTime() - base::Time());
root_window->AsRootWindowHostDelegate()->OnHostTouchEvent(&release1);
@@ -330,7 +330,7 @@ TEST_F(SystemGestureEventFilterTest, ApplicationControl) {
aura::Window* active_window = ash::wm::GetActiveWindow();
// Get a target for kTouchId
- ui::TouchEventImpl press(ui::ET_TOUCH_PRESSED,
+ ui::TouchEvent press(ui::ET_TOUCH_PRESSED,
gfx::Point(-10, ypos + ypos_half),
kTouchId,
base::Time::NowFromSystemTime() - base::Time());
@@ -381,7 +381,7 @@ TEST_F(SystemGestureEventFilterTest, ApplicationControl) {
EXPECT_TRUE(consumed);
EXPECT_EQ(ash::wm::GetActiveWindow(), active_window);
- ui::TouchEventImpl release(
+ ui::TouchEvent release(
ui::ET_TOUCH_RELEASED, gfx::Point(2 * xpos, ypos + ypos_half), kTouchId,
base::Time::NowFromSystemTime() - base::Time());
root_window->AsRootWindowHostDelegate()->OnHostTouchEvent(&release);
@@ -413,7 +413,7 @@ TEST_F(SystemGestureEventFilterTest, LongPressAffordanceStateOnCaptureLoss) {
EXPECT_TRUE(window1->HasCapture());
// Send touch event to first window.
- ui::TouchEventImpl press(ui::ET_TOUCH_PRESSED, gfx::Point(10, 10), kTouchId,
+ ui::TouchEvent press(ui::ET_TOUCH_PRESSED, gfx::Point(10, 10), kTouchId,
base::Time::NowFromSystemTime() - base::Time());
root_window->AsRootWindowHostDelegate()->OnHostTouchEvent(&press);
EXPECT_TRUE(window1->HasCapture());
« no previous file with comments | « ash/wm/system_gesture_event_filter.cc ('k') | ash/wm/system_modal_container_event_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698