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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | app/win_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef APP_WIN_UTIL_H_ 5 #ifndef APP_WIN_UTIL_H_
6 #define APP_WIN_UTIL_H_ 6 #define APP_WIN_UTIL_H_
7 7
8 #include <objbase.h> 8 #include <objbase.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 gfx::Font GetWindowTitleFont(); 208 gfx::Font GetWindowTitleFont();
209 209
210 // The thickness of an auto-hide taskbar in pixels. 210 // The thickness of an auto-hide taskbar in pixels.
211 extern const int kAutoHideTaskbarThicknessPx; 211 extern const int kAutoHideTaskbarThicknessPx;
212 212
213 // Sets the application id given as the Application Model ID for the window 213 // Sets the application id given as the Application Model ID for the window
214 // specified. This method is used to insure that different web applications 214 // specified. This method is used to insure that different web applications
215 // do not group together on the Win7 task bar. 215 // do not group together on the Win7 task bar.
216 void SetAppIdForWindow(const std::wstring& app_id, HWND hwnd); 216 void SetAppIdForWindow(const std::wstring& app_id, HWND hwnd);
217 217
218 // Calls SetProcessDPIAware() to declare this application is DPI-aware and to
219 // disable the DPI virtualization of Windows. Unfortunately, calling this
220 // function after creating a window confuses some APIs, i.e. some APIs still
221 // have the DPI virtualization enabled after calling SetProcessDPIAware().
222 // Therefore, we need to call this function before creating the first window.
223 void CallSetProcessDPIAware();
224
218 } // namespace win_util 225 } // namespace win_util
219 226
220 #endif // APP_WIN_UTIL_H_ 227 #endif // APP_WIN_UTIL_H_
OLDNEW
« 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