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

Unified Diff: content/browser/renderer_host/render_widget_host_view_win.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: sync 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | content/test/test_renderer_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_win.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_win.cc b/content/browser/renderer_host/render_widget_host_view_win.cc
index cad5c9b7823503b95a83ae3d4bd3e8ddd61e3309..288439ea507f9633befd11c681b60cbce9afb3cd 100644
--- a/content/browser/renderer_host/render_widget_host_view_win.cc
+++ b/content/browser/renderer_host/render_widget_host_view_win.cc
@@ -389,8 +389,8 @@ void RenderWidgetHostViewWin::InitAsPopup(
void RenderWidgetHostViewWin::InitAsFullscreen(
RenderWidgetHostView* reference_host_view) {
- gfx::Rect pos = gfx::Screen::GetMonitorAreaNearestWindow(
- reference_host_view->GetNativeView());
+ gfx::Rect pos = gfx::Screen::GetMonitorNearestWindow(
+ reference_host_view->GetNativeView()).bounds();
is_fullscreen_ = true;
DoPopupOrFullscreenInit(GetDesktopWindow(), pos, 0);
}
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | content/test/test_renderer_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698