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

Unified Diff: chrome/browser/ui/panels/panel_browsertest.cc

Issue 9960042: Refactor screen/monitor so that gfx::Screen returns monitor object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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
Index: chrome/browser/ui/panels/panel_browsertest.cc
diff --git a/chrome/browser/ui/panels/panel_browsertest.cc b/chrome/browser/ui/panels/panel_browsertest.cc
index f29b25498d6990cb2932033a5a5982a1a0c9862a..2c0b4642d4151a0b569730563650532016927184 100644
--- a/chrome/browser/ui/panels/panel_browsertest.cc
+++ b/chrome/browser/ui/panels/panel_browsertest.cc
@@ -1642,7 +1642,7 @@ class PanelAndNotificationTest : public PanelBrowserTest {
// The position returned by the notification balloon is based on Mac's
// vertically inverted orientation. We need to flip it so that it can
// be compared against the position returned by the panel.
- gfx::Size screen_size = gfx::Screen::GetPrimaryMonitorSize();
+ gfx::Size screen_size = gfx::Screen::GetPrimaryMonitorBounds().size();
return screen_size.height() - balloon->GetPosition().y();
#else
return balloon->GetPosition().y() + balloon->GetViewSize().height();

Powered by Google App Engine
This is Rietveld 408576698