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

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

Issue 644813004: Move the ShouldUseDirectWrite function from sandbox_win.cc/.h to ui/gfx/win/dpi.cc/.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // GetSystemMetrics for the given |metric|, then converts the result to DIP. 58 // GetSystemMetrics for the given |metric|, then converts the result to DIP.
59 GFX_EXPORT int GetSystemMetricsInDIP(int metric); 59 GFX_EXPORT int GetSystemMetricsInDIP(int metric);
60 60
61 // Returns true if the global device scale factor has been explicitly set for 61 // Returns true if the global device scale factor has been explicitly set for
62 // the process. 62 // the process.
63 GFX_EXPORT bool IsDeviceScaleFactorSet(); 63 GFX_EXPORT bool IsDeviceScaleFactorSet();
64 64
65 GFX_EXPORT extern const wchar_t kRegistryProfilePath[]; 65 GFX_EXPORT extern const wchar_t kRegistryProfilePath[];
66 GFX_EXPORT extern const wchar_t kHighDPISupportW[]; 66 GFX_EXPORT extern const wchar_t kHighDPISupportW[];
67 67
68 // Returns whether DirectWrite font rendering should be used.
69 GFX_EXPORT bool ShouldUseDirectWrite();
scottmg 2014/10/09 23:16:27 seems a bit odd to have it in dpi.{h,cc}?
ananta 2014/10/10 01:18:31 will look into moving this a new file possibly
ananta 2014/10/10 18:45:36 Moved to ui/gfx/win/direct_write.h/.cc
70
68 } // namespace win 71 } // namespace win
69 } // namespace gfx 72 } // namespace gfx
70 73
71 #endif // UI_GFX_DPI_WIN_H_ 74 #endif // UI_GFX_DPI_WIN_H_
OLDNEW
« ui/gfx/switches.h ('K') | « ui/gfx/switches.cc ('k') | ui/gfx/win/dpi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698