| 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" |
| 11 #include "ui/base/layout.h" | |
| 12 #include "base/win/registry.h" | 11 #include "base/win/registry.h" |
| 13 #include "ui/gfx/display.h" | 12 #include "ui/gfx/display.h" |
| 14 #include "ui/gfx/switches.h" | 13 #include "ui/gfx/switches.h" |
| 15 #include "ui/gfx/point_conversions.h" | 14 #include "ui/gfx/point_conversions.h" |
| 16 #include "ui/gfx/rect_conversions.h" | 15 #include "ui/gfx/rect_conversions.h" |
| 17 #include "ui/gfx/size_conversions.h" | 16 #include "ui/gfx/size_conversions.h" |
| 18 | 17 |
| 19 namespace { | 18 namespace { |
| 20 | 19 |
| 21 int kDefaultDPIX = 96; | 20 int kDefaultDPIX = 96; |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 double GetUndocumentedDPITouchScale() { | 165 double GetUndocumentedDPITouchScale() { |
| 167 static double scale = | 166 static double scale = |
| 168 (base::win::GetVersion() < base::win::VERSION_WIN8_1) ? | 167 (base::win::GetVersion() < base::win::VERSION_WIN8_1) ? |
| 169 GetUndocumentedDPIScale() : 1.0; | 168 GetUndocumentedDPIScale() : 1.0; |
| 170 return scale; | 169 return scale; |
| 171 } | 170 } |
| 172 | 171 |
| 173 | 172 |
| 174 } // namespace win | 173 } // namespace win |
| 175 } // namespace gfx | 174 } // namespace gfx |
| OLD | NEW |