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

Unified Diff: content/browser/renderer_host/legacy_render_widget_host_win.cc

Issue 659883002: Enable hidpi on Linux, refactor a bit on Windows to share Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: constants Created 6 years, 2 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/legacy_render_widget_host_win.cc
diff --git a/content/browser/renderer_host/legacy_render_widget_host_win.cc b/content/browser/renderer_host/legacy_render_widget_host_win.cc
index 327e0b9b43e73df9a7280366ecd5d05eed899ba2..af2ccfa2b390f751224628e2d24508a2a6ad9563 100644
--- a/content/browser/renderer_host/legacy_render_widget_host_win.cc
+++ b/content/browser/renderer_host/legacy_render_widget_host_win.cc
@@ -17,8 +17,8 @@
#include "ui/base/view_prop.h"
#include "ui/base/win/internal_constants.h"
#include "ui/base/win/window_event_target.h"
+#include "ui/gfx/dpi.h"
#include "ui/gfx/geometry/rect.h"
-#include "ui/gfx/win/dpi.h"
namespace content {
@@ -80,7 +80,7 @@ void LegacyRenderWidgetHostHWND::Hide() {
}
void LegacyRenderWidgetHostHWND::SetBounds(const gfx::Rect& bounds) {
- gfx::Rect bounds_in_pixel = gfx::win::DIPToScreenRect(bounds);
+ gfx::Rect bounds_in_pixel = gfx::DIPToScreenRect(bounds);
::SetWindowPos(hwnd(), NULL, bounds_in_pixel.x(), bounds_in_pixel.y(),
bounds_in_pixel.width(), bounds_in_pixel.height(),
SWP_NOREDRAW);

Powered by Google App Engine
This is Rietveld 408576698