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

Unified Diff: chrome/browser/chromeos/media/media_player.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: fix command line 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/chromeos/media/media_player.cc
diff --git a/chrome/browser/chromeos/media/media_player.cc b/chrome/browser/chromeos/media/media_player.cc
index 76130b8e7e17b5d7f7ab14653daeb8ec06cdb118..cf0f7a15712bdaa1e3a435c94c069880cc5fb3a7 100644
--- a/chrome/browser/chromeos/media/media_player.cc
+++ b/chrome/browser/chromeos/media/media_player.cc
@@ -18,6 +18,7 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/user_metrics.h"
#include "net/url_request/url_request_job.h"
+#include "ui/gfx/monitor.h"
#include "ui/gfx/screen.h"
using content::BrowserThread;
@@ -134,7 +135,7 @@ void MediaPlayer::PopupMediaPlayer(Browser* creator) {
return;
}
- const gfx::Size screen = gfx::Screen::GetPrimaryMonitorSize();
+ const gfx::Size screen = gfx::Screen::GetPrimaryMonitor()->GetSize();
const gfx::Rect bounds(screen.width() - kPopupRight - kPopupWidth,
screen.height() - kPopupBottom - kPopupHeight,
kPopupWidth,

Powered by Google App Engine
This is Rietveld 408576698