| 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/screen_win.h" | 5 #include "ui/gfx/screen_win.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 | 8 |
| 9 #include "base/hash.h" | 9 #include "base/hash.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "base/win/win_util.h" | 12 #include "base/win/win_util.h" |
| 13 #include "ui/gfx/display.h" | 13 #include "ui/gfx/display.h" |
| 14 #include "ui/gfx/dpi_win.h" | 14 #include "ui/gfx/win/dpi.h" |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 MONITORINFOEX GetMonitorInfoForMonitor(HMONITOR monitor) { | 18 MONITORINFOEX GetMonitorInfoForMonitor(HMONITOR monitor) { |
| 19 MONITORINFOEX monitor_info; | 19 MONITORINFOEX monitor_info; |
| 20 ZeroMemory(&monitor_info, sizeof(MONITORINFOEX)); | 20 ZeroMemory(&monitor_info, sizeof(MONITORINFOEX)); |
| 21 monitor_info.cbSize = sizeof(monitor_info); | 21 monitor_info.cbSize = sizeof(monitor_info); |
| 22 base::win::GetMonitorInfoWrapper(monitor, &monitor_info); | 22 base::win::GetMonitorInfoWrapper(monitor, &monitor_info); |
| 23 return monitor_info; | 23 return monitor_info; |
| 24 } | 24 } |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 #endif // USE_AURA | 162 #endif // USE_AURA |
| 163 } | 163 } |
| 164 | 164 |
| 165 #if !defined(USE_AURA) | 165 #if !defined(USE_AURA) |
| 166 Screen* CreateNativeScreen() { | 166 Screen* CreateNativeScreen() { |
| 167 return new ScreenWin; | 167 return new ScreenWin; |
| 168 } | 168 } |
| 169 #endif // !USE_AURA | 169 #endif // !USE_AURA |
| 170 | 170 |
| 171 } // namespace gfx | 171 } // namespace gfx |
| OLD | NEW |