| OLD | NEW |
| 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 #include "ui/gfx/win/dpi.h" | 5 #include "ui/gfx/win/dpi.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/win/scoped_hdc.h" | 9 #include "base/win/scoped_hdc.h" |
| 10 #include "base/win/windows_version.h" | 10 #include "base/win/windows_version.h" |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 return scale; | 239 return scale; |
| 240 } | 240 } |
| 241 | 241 |
| 242 double GetUndocumentedDPITouchScale() { | 242 double GetUndocumentedDPITouchScale() { |
| 243 static double scale = | 243 static double scale = |
| 244 (base::win::GetVersion() < base::win::VERSION_WIN8_1) ? | 244 (base::win::GetVersion() < base::win::VERSION_WIN8_1) ? |
| 245 GetUndocumentedDPIScale() : 1.0; | 245 GetUndocumentedDPIScale() : 1.0; |
| 246 return scale; | 246 return scale; |
| 247 } | 247 } |
| 248 | 248 |
| 249 bool IsDeviceScaleFactorSet() { |
| 250 return g_device_scale_factor != 0.0f; |
| 251 } |
| 252 |
| 249 } // namespace win | 253 } // namespace win |
| 250 } // namespace gfx | 254 } // namespace gfx |
| OLD | NEW |