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 <windows.h> |
7 #include <map> | 8 #include <map> |
8 #include <windows.h> | |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/macros.h" |
11 | 12 |
12 namespace { | 13 namespace { |
13 // TODO(jamiewalch): Use the correct DPI for the mode: http://crbug.com/172405. | 14 // TODO(jamiewalch): Use the correct DPI for the mode: http://crbug.com/172405. |
14 const int kDefaultDPI = 96; | 15 const int kDefaultDPI = 96; |
15 } // namespace | 16 } // namespace |
16 | 17 |
17 namespace remoting { | 18 namespace remoting { |
18 | 19 |
19 // Provide comparison operation for ScreenResolution so we can use it in | 20 // Provide comparison operation for ScreenResolution so we can use it in |
20 // std::map. | 21 // std::map. |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 return ScreenResolution( | 183 return ScreenResolution( |
183 webrtc::DesktopSize(mode.dmPelsWidth, mode.dmPelsHeight), | 184 webrtc::DesktopSize(mode.dmPelsWidth, mode.dmPelsHeight), |
184 webrtc::DesktopVector(kDefaultDPI, kDefaultDPI)); | 185 webrtc::DesktopVector(kDefaultDPI, kDefaultDPI)); |
185 } | 186 } |
186 | 187 |
187 scoped_ptr<DesktopResizer> DesktopResizer::Create() { | 188 scoped_ptr<DesktopResizer> DesktopResizer::Create() { |
188 return make_scoped_ptr(new DesktopResizerWin); | 189 return make_scoped_ptr(new DesktopResizerWin); |
189 } | 190 } |
190 | 191 |
191 } // namespace remoting | 192 } // namespace remoting |
OLD | NEW |