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

Unified Diff: ui/views/controls/button/custom_button_unittest.cc

Issue 1608733002: Remove ui/gfx/screen_type_delegate.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-4
Patch Set: and another rebase Created 4 years, 11 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/views/cocoa/tooltip_manager_mac.mm ('k') | ui/views/controls/menu/menu_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/custom_button_unittest.cc
diff --git a/ui/views/controls/button/custom_button_unittest.cc b/ui/views/controls/button/custom_button_unittest.cc
index 41de3466d8f388672007120b832da0cc41e57715..0ff9f9513546bbb90ca0d368c92de3af7774f945 100644
--- a/ui/views/controls/button/custom_button_unittest.cc
+++ b/ui/views/controls/button/custom_button_unittest.cc
@@ -443,8 +443,7 @@ TEST_F(CustomButtonTest, AsCustomButton) {
// Note: Ink drop is not hidden upon release because CustomButton descendants
// may enter a different ink drop state.
TEST_F(CustomButtonTest, ButtonClickTogglesInkDrop) {
- gfx::Point old_cursor = gfx::Screen::GetScreenFor(
- widget()->GetNativeView())->GetCursorScreenPoint();
+ gfx::Point old_cursor = gfx::Screen::GetScreen()->GetCursorScreenPoint();
CreateButtonWithInkDrop();
ui::test::EventGenerator generator(GetContext(), widget()->GetNativeWindow());
@@ -459,8 +458,7 @@ TEST_F(CustomButtonTest, ButtonClickTogglesInkDrop) {
// Tests that pressing a button shows and releasing capture hides ink drop.
TEST_F(CustomButtonTest, CaptureLossHidesInkDrop) {
- gfx::Point old_cursor = gfx::Screen::GetScreenFor(
- widget()->GetNativeView())->GetCursorScreenPoint();
+ gfx::Point old_cursor = gfx::Screen::GetScreen()->GetCursorScreenPoint();
CreateButtonWithInkDrop();
ui::test::EventGenerator generator(GetContext(), widget()->GetNativeWindow());
« no previous file with comments | « ui/views/cocoa/tooltip_manager_mac.mm ('k') | ui/views/controls/menu/menu_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698