Chromium Code Reviews| 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
|