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

Unified Diff: content/browser/renderer_host/input/web_input_event_builders_win.cc

Issue 1426933002: Refactor Windows DPI Point, Rect, and Size for Multiple Monitor DPI Awareness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Other Unit Tests - Moved Inner Classes Outside Created 4 years, 11 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/input/web_input_event_builders_win.cc
diff --git a/content/browser/renderer_host/input/web_input_event_builders_win.cc b/content/browser/renderer_host/input/web_input_event_builders_win.cc
index 33701fb1ab2e8fa70efcdba0cf28122d66912870..c57815c26579b4104c07689880db3bf5e752e69a 100644
--- a/content/browser/renderer_host/input/web_input_event_builders_win.cc
+++ b/content/browser/renderer_host/input/web_input_event_builders_win.cc
@@ -8,7 +8,7 @@
#include "content/browser/renderer_host/input/web_input_event_util.h"
#include "ui/events/blink/blink_event_util.h"
#include "ui/events/event_utils.h"
-#include "ui/gfx/win/dpi.h"
+#include "ui/gfx/screen_win.h"
using blink::WebInputEvent;
using blink::WebKeyboardEvent;
@@ -163,7 +163,7 @@ WebMouseEvent WebMouseEventBuilder::Build(HWND hwnd,
ClientToScreen(hwnd, &global_point);
// We need to convert the global point back to DIP before using it.
- gfx::Point dip_global_point = gfx::win::ScreenToDIPPoint(
+ gfx::Point dip_global_point = gfx::ScreenWin::ScreenToDIPPoint(
gfx::Point(global_point.x, global_point.y));
result.globalX = dip_global_point.x();

Powered by Google App Engine
This is Rietveld 408576698