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

Unified Diff: app/win_util.h

Issue 2867031: Supports High DPI mode.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 | « no previous file | app/win_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/win_util.h
===================================================================
--- app/win_util.h (revision 52071)
+++ app/win_util.h (working copy)
@@ -215,6 +215,13 @@
// do not group together on the Win7 task bar.
void SetAppIdForWindow(const std::wstring& app_id, HWND hwnd);
+// Calls SetProcessDPIAware() to declare this application is DPI-aware and to
+// disable the DPI virtualization of Windows. Unfortunately, calling this
+// function after creating a window confuses some APIs, i.e. some APIs still
+// have the DPI virtualization enabled after calling SetProcessDPIAware().
+// Therefore, we need to call this function before creating the first window.
+void CallSetProcessDPIAware();
+
} // namespace win_util
#endif // APP_WIN_UTIL_H_
« no previous file with comments | « no previous file | app/win_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698