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

Unified Diff: ui/views/win/hwnd_message_handler.h

Issue 2574933002: Call EnableNonClientDpiScaling (Closed)
Patch Set: Fix Bad Test Created 4 years 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 | « ui/gfx/win/window_impl.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/win/hwnd_message_handler.h
diff --git a/ui/views/win/hwnd_message_handler.h b/ui/views/win/hwnd_message_handler.h
index 622696f2f30f52a54037eb7dedf2b826bbbb7602..0ae7bbfb522f021fb1128d1b982bc0d9c0f54f65 100644
--- a/ui/views/win/hwnd_message_handler.h
+++ b/ui/views/win/hwnd_message_handler.h
@@ -411,6 +411,7 @@ class VIEWS_EXPORT HWNDMessageHandler :
CR_MSG_WM_MOVE(OnMove)
CR_MSG_WM_MOVING(OnMoving)
CR_MSG_WM_NCCALCSIZE(OnNCCalcSize)
+ CR_MSG_WM_NCCREATE(OnNCCreate)
CR_MSG_WM_NCHITTEST(OnNCHitTest)
CR_MSG_WM_NCPAINT(OnNCPaint)
CR_MSG_WM_NOTIFY(OnNotify)
@@ -462,6 +463,7 @@ class VIEWS_EXPORT HWNDMessageHandler :
void OnMoving(UINT param, const RECT* new_bounds);
LRESULT OnNCActivate(UINT message, WPARAM w_param, LPARAM l_param);
LRESULT OnNCCalcSize(BOOL mode, LPARAM l_param);
+ LRESULT OnNCCreate(LPCREATESTRUCT lpCreateStruct);
LRESULT OnNCHitTest(const gfx::Point& point);
void OnNCPaint(HRGN rgn);
LRESULT OnNCUAHDrawCaption(UINT message, WPARAM w_param, LPARAM l_param);
@@ -577,6 +579,13 @@ class VIEWS_EXPORT HWNDMessageHandler :
// The current DPI.
int dpi_;
+ // Whether EnableNonClientDpiScaling was called successfully with this window.
+ // This flag exists because EnableNonClientDpiScaling must be called during
+ // WM_NCCREATE and EnableChildWindowDpiMessage is called after window
+ // creation. We don't want to call both, so this helps us determine if a call
+ // to EnableChildWindowDpiMessage is necessary.
+ bool called_enable_non_client_dpi_scaling_;
+
// Event handling ------------------------------------------------------------
// The flags currently being used with TrackMouseEvent to track mouse
« no previous file with comments | « ui/gfx/win/window_impl.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698