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

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: fixes 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
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 7f784c2dc8d0f4c78e7858dcbe35c4eec84504ec..80144618bb1714db23a7d3e6e99ada3d4ea0e885 100644
--- a/ui/views/controls/button/custom_button_unittest.cc
+++ b/ui/views/controls/button/custom_button_unittest.cc
@@ -441,8 +441,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());
@@ -457,8 +456,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());

Powered by Google App Engine
This is Rietveld 408576698