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

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

Issue 308003020: Pass the device scale factor in the command line to renderer processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed presubmit warnings Created 6 years, 6 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
« no previous file with comments | « ui/base/resource/resource_bundle.cc ('k') | ui/gfx/win/dpi.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) 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // Returns the scale factor of the display, where 96 DPI is 1.0. 62 // Returns the scale factor of the display, where 96 DPI is 1.0.
63 // (Avoid this function... use GetDPIScale() instead.) 63 // (Avoid this function... use GetDPIScale() instead.)
64 // TODO(girard): Remove this once DPIAware is enabled - http://crbug.com/149881 64 // TODO(girard): Remove this once DPIAware is enabled - http://crbug.com/149881
65 GFX_EXPORT double GetUndocumentedDPIScale(); 65 GFX_EXPORT double GetUndocumentedDPIScale();
66 66
67 // Win7 and Win8 send touch events scaled according to the current DPI 67 // Win7 and Win8 send touch events scaled according to the current DPI
68 // scaling. Win8.1 corrects this, and sends touch events in DPI units. 68 // scaling. Win8.1 corrects this, and sends touch events in DPI units.
69 // This function returns the appropriate scaling factor for touch events. 69 // This function returns the appropriate scaling factor for touch events.
70 GFX_EXPORT double GetUndocumentedDPITouchScale(); 70 GFX_EXPORT double GetUndocumentedDPITouchScale();
71 71
72 // Returns true if the global device scale factor has been explicitly set for
73 // the process.
74 GFX_EXPORT bool IsDeviceScaleFactorSet();
75
72 } // namespace win 76 } // namespace win
73 } // namespace gfx 77 } // namespace gfx
74 78
75 #endif // UI_GFX_DPI_WIN_H_ 79 #endif // UI_GFX_DPI_WIN_H_
OLDNEW
« no previous file with comments | « ui/base/resource/resource_bundle.cc ('k') | ui/gfx/win/dpi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698