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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.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: content/browser/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index 0b7665ab6349945a6f9bf3aaaea6f870e191b9e2..a90fbc9bbd43ffa83a3dfd5e44fbb452980f1308 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -32,6 +32,7 @@
#include "ui/gfx/canvas.h"
#include "ui/gfx/compositor/compositor.h"
#include "ui/gfx/compositor/layer.h"
+#include "ui/gfx/monitor.h"
#include "ui/gfx/screen.h"
#include "ui/gfx/skia_util.h"
@@ -1250,7 +1251,7 @@ RenderWidgetHostView* RenderWidgetHostView::CreateViewForWidget(
// static
void content::RenderWidgetHostViewPort::GetDefaultScreenInfo(
WebKit::WebScreenInfo* results) {
- const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize();
+ const gfx::Size size = gfx::Screen::GetPrimaryMonitor()->GetBounds().size();
results->rect = WebKit::WebRect(0, 0, size.width(), size.height());
results->availableRect = results->rect;
// TODO(derat): Don't hardcode this?
Fady Samuel 2012/04/10 16:58:09 Drive-by: Could we please not hardcode this anymor
oshima 2012/04/10 21:31:46 Since it's unrelated to this CL, I'd prefer it to

Powered by Google App Engine
This is Rietveld 408576698