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

Unified Diff: ui/views/controls/native/native_view_host_aura_unittest.cc

Issue 2833163002: Change ui cursor identifiers to an enum class. (Closed)
Patch Set: OK, it can't be explicit for mac. Created 3 years, 8 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/ozone/public/cursor_factory_ozone.cc ('k') | ui/views/mus/desktop_window_tree_host_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/native/native_view_host_aura_unittest.cc
diff --git a/ui/views/controls/native/native_view_host_aura_unittest.cc b/ui/views/controls/native/native_view_host_aura_unittest.cc
index e263d29288e1e863fa48a607cdf3f8fb4f2b3dcd..047ef98074b84b41dd349ac027bdfdf5220596ad 100644
--- a/ui/views/controls/native/native_view_host_aura_unittest.cc
+++ b/ui/views/controls/native/native_view_host_aura_unittest.cc
@@ -158,12 +158,12 @@ TEST_F(NativeViewHostAuraTest, HostViewPropertyKey) {
TEST_F(NativeViewHostAuraTest, CursorForNativeView) {
CreateHost();
- toplevel()->SetCursor(ui::kCursorHand);
- child()->SetCursor(ui::kCursorWait);
+ toplevel()->SetCursor(ui::CursorType::kHand);
+ child()->SetCursor(ui::CursorType::kWait);
ui::MouseEvent move_event(ui::ET_MOUSE_MOVED, gfx::Point(0, 0),
gfx::Point(0, 0), ui::EventTimeForNow(), 0, 0);
- EXPECT_EQ(ui::kCursorWait, host()->GetCursor(move_event).native_type());
+ EXPECT_EQ(ui::CursorType::kWait, host()->GetCursor(move_event).native_type());
DestroyHost();
}
« no previous file with comments | « ui/ozone/public/cursor_factory_ozone.cc ('k') | ui/views/mus/desktop_window_tree_host_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698