Chromium Code Reviews| Index: ui/base/win/dpi_setup.h |
| diff --git a/ui/base/win/dpi_setup.h b/ui/base/win/dpi_setup.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9f83855f98205cb478eed788fc19005f0e9e7ff2 |
| --- /dev/null |
| +++ b/ui/base/win/dpi_setup.h |
| @@ -0,0 +1,22 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_BASE_WIN_DPI_SETUP_H_ |
| +#define UI_BASE_WIN_DPI_SETUP_H_ |
| + |
| +#include "ui/base/ui_export.h" |
| + |
| +namespace ui { |
| +namespace win { |
| + |
| +// Initializes the device scale factor. If support is enabled, this will return |
|
sky
2013/09/25 19:28:15
return->set
|
| +// the best available scale based on the screen's pixel density. This can be |
| +// affected (overridden) by --force-device-scale-factor=x |
| +// This function can be called only once for the lifetime of a process. |
| +UI_EXPORT void InitDeviceScaleFactor(); |
| + |
| +} // namespace win |
| +} // namespace ui |
| + |
| +#endif // UI_BASE_WIN_DPI_SETUP_H_ |