| 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 "remoting/host/desktop_resizer.h" | 5 #include "remoting/host/desktop_resizer.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <windows.h> |
| 8 | 9 |
| 9 #include "base/logging.h" | 10 #include "base/logging.h" |
| 10 | 11 |
| 11 namespace { | 12 namespace { |
| 12 // TODO(jamiewalch): Use the correct DPI for the mode: http://crbug.com/172405. | 13 // TODO(jamiewalch): Use the correct DPI for the mode: http://crbug.com/172405. |
| 13 const int kDefaultDPI = 96; | 14 const int kDefaultDPI = 96; |
| 14 } // namespace | 15 } // namespace |
| 15 | 16 |
| 16 namespace remoting { | 17 namespace remoting { |
| 17 | 18 |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 return ScreenResolution( | 182 return ScreenResolution( |
| 182 webrtc::DesktopSize(mode.dmPelsWidth, mode.dmPelsHeight), | 183 webrtc::DesktopSize(mode.dmPelsWidth, mode.dmPelsHeight), |
| 183 webrtc::DesktopVector(kDefaultDPI, kDefaultDPI)); | 184 webrtc::DesktopVector(kDefaultDPI, kDefaultDPI)); |
| 184 } | 185 } |
| 185 | 186 |
| 186 scoped_ptr<DesktopResizer> DesktopResizer::Create() { | 187 scoped_ptr<DesktopResizer> DesktopResizer::Create() { |
| 187 return scoped_ptr<DesktopResizer>(new DesktopResizerWin); | 188 return scoped_ptr<DesktopResizer>(new DesktopResizerWin); |
| 188 } | 189 } |
| 189 | 190 |
| 190 } // namespace remoting | 191 } // namespace remoting |
| OLD | NEW |