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

Unified Diff: content/child/npapi/webplugin_delegate_impl_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/child/npapi/webplugin_delegate_impl_win.cc
diff --git a/content/child/npapi/webplugin_delegate_impl_win.cc b/content/child/npapi/webplugin_delegate_impl_win.cc
index 5cd6e5c09ccbd49edc0d9780109a338fed89612b..15b9bc1cd4050a33e1fc9d6291ef85641e67a986 100644
--- a/content/child/npapi/webplugin_delegate_impl_win.cc
+++ b/content/child/npapi/webplugin_delegate_impl_win.cc
@@ -34,7 +34,7 @@
#include "content/public/common/content_constants.h"
#include "skia/ext/platform_canvas.h"
#include "third_party/WebKit/public/web/WebInputEvent.h"
-#include "ui/gfx/win/dpi.h"
+#include "ui/gfx/screen_win.h"
#include "ui/gfx/win/hwnd_util.h"
using blink::WebKeyboardEvent;
@@ -763,8 +763,10 @@ bool WebPluginDelegateImpl::WindowedReposition(
return false;
}
- gfx::Rect window_rect = gfx::win::DIPToScreenRect(window_rect_in_dip);
- gfx::Rect clip_rect = gfx::win::DIPToScreenRect(clip_rect_in_dip);
+ gfx::Rect window_rect = gfx::ScreenWin::DIPToScreenRect(windowed_handle_,
+ window_rect_in_dip);
+ gfx::Rect clip_rect = gfx::ScreenWin::DIPToScreenRect(windowed_handle_,
+ clip_rect_in_dip);
if (window_rect_ == window_rect && clip_rect_ == clip_rect)
return false;

Powered by Google App Engine
This is Rietveld 408576698