| OLD | NEW |
| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <objbase.h> | 9 #include <objbase.h> |
| 10 | 10 |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 gfx::Font GetWindowTitleFont(); | 209 gfx::Font GetWindowTitleFont(); |
| 210 | 210 |
| 211 // The thickness of an auto-hide taskbar in pixels. | 211 // The thickness of an auto-hide taskbar in pixels. |
| 212 extern const int kAutoHideTaskbarThicknessPx; | 212 extern const int kAutoHideTaskbarThicknessPx; |
| 213 | 213 |
| 214 // Sets the application id given as the Application Model ID for the window | 214 // Sets the application id given as the Application Model ID for the window |
| 215 // specified. This method is used to insure that different web applications | 215 // specified. This method is used to insure that different web applications |
| 216 // do not group together on the Win7 task bar. | 216 // do not group together on the Win7 task bar. |
| 217 void SetAppIdForWindow(const std::wstring& app_id, HWND hwnd); | 217 void SetAppIdForWindow(const std::wstring& app_id, HWND hwnd); |
| 218 | 218 |
| 219 // Calls SetProcessDPIAware() to declare this application is DPI-aware and to | |
| 220 // disable the DPI virtualization of Windows. Unfortunately, calling this | |
| 221 // function after creating a window confuses some APIs, i.e. some APIs still | |
| 222 // have the DPI virtualization enabled after calling SetProcessDPIAware(). | |
| 223 // Therefore, we need to call this function before creating the first window. | |
| 224 void CallSetProcessDPIAware(); | |
| 225 | |
| 226 } // namespace win_util | 219 } // namespace win_util |
| 227 | 220 |
| 228 #endif // APP_WIN_UTIL_H_ | 221 #endif // APP_WIN_UTIL_H_ |
| OLD | NEW |