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

Unified Diff: ash/launcher/launcher_tooltip_manager_unittest.cc

Issue 10827145: Convert Aura to use ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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/launcher/launcher_tooltip_manager.cc ('k') | ash/launcher/launcher_view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/launcher_tooltip_manager_unittest.cc
===================================================================
--- ash/launcher/launcher_tooltip_manager_unittest.cc (revision 150582)
+++ ash/launcher/launcher_tooltip_manager_unittest.cc (working copy)
@@ -9,9 +9,9 @@
#include "ash/wm/window_util.h"
#include "base/string16.h"
#include "base/time.h"
-#include "ui/aura/event.h"
#include "ui/aura/event_filter.h"
#include "ui/aura/root_window.h"
+#include "ui/base/event.h"
#include "ui/base/events.h"
#include "ui/base/keycodes/keyboard_codes.h"
#include "ui/views/widget/widget.h"
@@ -141,12 +141,12 @@
aura::EventFilter* event_filter = GetEventFilter();
// Should not hide for key events.
- aura::KeyEvent key_event(ui::ET_KEY_PRESSED, ui::VKEY_A, ui::EF_NONE);
+ ui::KeyEvent key_event(ui::ET_KEY_PRESSED, ui::VKEY_A, ui::EF_NONE);
EXPECT_FALSE(event_filter->PreHandleKeyEvent(root_window, &key_event));
EXPECT_TRUE(TooltipIsVisible());
// Should hide for touch events.
- aura::TouchEvent touch_event(
+ ui::TouchEventImpl touch_event(
ui::ET_TOUCH_PRESSED, gfx::Point(), 0, base::TimeDelta());
EXPECT_EQ(ui::TOUCH_STATUS_UNKNOWN,
event_filter->PreHandleTouchEvent(root_window, &touch_event));
@@ -161,7 +161,7 @@
EXPECT_TRUE(TooltipIsVisible());
// Should hide for gesture events.
- aura::GestureEvent gesture_event(
+ ui::GestureEventImpl gesture_event(
ui::ET_GESTURE_BEGIN, 0, 0, ui::EF_NONE, base::Time(),
ui::GestureEventDetails(ui::ET_GESTURE_BEGIN, 0.0f, 0.0f), 0);
EXPECT_EQ(ui::GESTURE_STATUS_UNKNOWN,
@@ -181,9 +181,9 @@
ASSERT_FALSE(tooltip_rect.IsEmpty());
// Shouldn't hide if the mouse is in the tooltip.
- aura::MouseEvent mouse_event(ui::ET_MOUSE_MOVED, tooltip_rect.CenterPoint(),
- tooltip_rect.CenterPoint(), ui::EF_NONE);
- aura::LocatedEvent::TestApi test_api(&mouse_event);
+ ui::MouseEvent mouse_event(ui::ET_MOUSE_MOVED, tooltip_rect.CenterPoint(),
+ tooltip_rect.CenterPoint(), ui::EF_NONE);
+ ui::LocatedEvent::TestApi test_api(&mouse_event);
EXPECT_FALSE(event_filter->PreHandleMouseEvent(root_window, &mouse_event));
EXPECT_TRUE(TooltipIsVisible());
« no previous file with comments | « ash/launcher/launcher_tooltip_manager.cc ('k') | ash/launcher/launcher_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698