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

Side by Side Diff: ui/gfx/win/dpi.h

Issue 669213004: remove IsInHighDPIMode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_GFX_DPI_WIN_H_ 5 #ifndef UI_GFX_DPI_WIN_H_
6 #define UI_GFX_DPI_WIN_H_ 6 #define UI_GFX_DPI_WIN_H_
7 7
8 #include "ui/gfx/gfx_export.h" 8 #include "ui/gfx/gfx_export.h"
9 #include "ui/gfx/point.h" 9 #include "ui/gfx/point.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
(...skipping 10 matching lines...) Expand all
21 21
22 GFX_EXPORT Size GetDPI(); 22 GFX_EXPORT Size GetDPI();
23 23
24 // Gets the scale factor of the display. For example, if the display DPI is 24 // Gets the scale factor of the display. For example, if the display DPI is
25 // 96 then the scale factor is 1.0. 25 // 96 then the scale factor is 1.0.
26 GFX_EXPORT float GetDPIScale(); 26 GFX_EXPORT float GetDPIScale();
27 27
28 // Tests to see if the command line flag "--high-dpi-support" is set. 28 // Tests to see if the command line flag "--high-dpi-support" is set.
29 GFX_EXPORT bool IsHighDPIEnabled(); 29 GFX_EXPORT bool IsHighDPIEnabled();
30 30
31 GFX_EXPORT bool IsInHighDPIMode();
32
33 GFX_EXPORT void EnableHighDPISupport(); 31 GFX_EXPORT void EnableHighDPISupport();
34 32
35 GFX_EXPORT void ForceHighDPISupportForTesting(float scale); 33 GFX_EXPORT void ForceHighDPISupportForTesting(float scale);
36 34
37 // TODO(kevers|girard): Move above methods into win namespace. 35 // TODO(kevers|girard): Move above methods into win namespace.
38 36
39 namespace win { 37 namespace win {
40 38
41 GFX_EXPORT float GetDeviceScaleFactor(); 39 GFX_EXPORT float GetDeviceScaleFactor();
42 40
(...skipping 19 matching lines...) Expand all
62 // the process. 60 // the process.
63 GFX_EXPORT bool IsDeviceScaleFactorSet(); 61 GFX_EXPORT bool IsDeviceScaleFactorSet();
64 62
65 GFX_EXPORT extern const wchar_t kRegistryProfilePath[]; 63 GFX_EXPORT extern const wchar_t kRegistryProfilePath[];
66 GFX_EXPORT extern const wchar_t kHighDPISupportW[]; 64 GFX_EXPORT extern const wchar_t kHighDPISupportW[];
67 65
68 } // namespace win 66 } // namespace win
69 } // namespace gfx 67 } // namespace gfx
70 68
71 #endif // UI_GFX_DPI_WIN_H_ 69 #endif // UI_GFX_DPI_WIN_H_
OLDNEW
« ui/gfx/screen_win.cc ('K') | « ui/gfx/screen_win.cc ('k') | ui/gfx/win/dpi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698