diff options
author | lanwei <lanwei@chromium.org> | 2014-09-13 22:24:07 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-14 05:27:38 +0000 |
commit | b5e408e7bffd3d1e6b60612f65c0538a90329c59 (patch) | |
tree | 9c4c45ed920c9c317d6c151e72c2a0bc581a8c53 /ash/system/overview/overview_button_tray_unittest.cc | |
parent | 8dc42c4dbf738d543362385bb0e2e2170a0b5edc (diff) | |
download | chromium_src-b5e408e7bffd3d1e6b60612f65c0538a90329c59.zip chromium_src-b5e408e7bffd3d1e6b60612f65c0538a90329c59.tar.gz chromium_src-b5e408e7bffd3d1e6b60612f65c0538a90329c59.tar.bz2 |
Clean up GestureEventDetails' constructors.
In one of the GestureEventDetails' constructors, the arguments
delta_x, delta_y sometime are not used, so we should make a new
constructor which only takes one argument EventType.
BUG=350942
Review URL: https://codereview.chromium.org/565583005
Cr-Commit-Position: refs/heads/master@{#294760}
Diffstat (limited to 'ash/system/overview/overview_button_tray_unittest.cc')
-rw-r--r-- | ash/system/overview/overview_button_tray_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ash/system/overview/overview_button_tray_unittest.cc b/ash/system/overview/overview_button_tray_unittest.cc index 2471533..27ff367 100644 --- a/ash/system/overview/overview_button_tray_unittest.cc +++ b/ash/system/overview/overview_button_tray_unittest.cc @@ -78,8 +78,8 @@ TEST_F(OverviewButtonTrayTest, PerformAction) { // Overview Mode only works when there is a window scoped_ptr<aura::Window> window( CreateTestWindowInShellWithBounds(gfx::Rect(5, 5, 20, 20))); - ui::GestureEvent tap(0, 0, 0, base::TimeDelta(), - ui::GestureEventDetails(ui::ET_GESTURE_TAP, 0.0f, 0.0f)); + ui::GestureEvent tap( + 0, 0, 0, base::TimeDelta(), ui::GestureEventDetails(ui::ET_GESTURE_TAP)); GetTray()->PerformAction(tap); EXPECT_TRUE(Shell::GetInstance()->window_selector_controller()-> IsSelecting()); |