| 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 <Carbon/Carbon.h> | 7 #include <Carbon/Carbon.h> |
| 8 #include <stdint.h> |
| 8 | 9 |
| 9 #include "base/basictypes.h" | |
| 10 #include "base/mac/foundation_util.h" | 10 #include "base/mac/foundation_util.h" |
| 11 #include "base/mac/mac_util.h" | 11 #include "base/mac/mac_util.h" |
| 12 #include "base/mac/scoped_cftyperef.h" | 12 #include "base/mac/scoped_cftyperef.h" |
| 13 #include "base/macros.h" |
| 13 #include "remoting/base/logging.h" | 14 #include "remoting/base/logging.h" |
| 14 | 15 |
| 15 namespace { | 16 namespace { |
| 16 // TODO(jamiewalch): Use the correct DPI for the mode: http://crbug.com/172405. | 17 // TODO(jamiewalch): Use the correct DPI for the mode: http://crbug.com/172405. |
| 17 const int kDefaultDPI = 96; | 18 const int kDefaultDPI = 96; |
| 18 } // namespace | 19 } // namespace |
| 19 | 20 |
| 20 namespace remoting { | 21 namespace remoting { |
| 21 | 22 |
| 22 class DesktopResizerMac : public DesktopResizer { | 23 class DesktopResizerMac : public DesktopResizer { |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 } | 165 } |
| 165 *display = displays[0]; | 166 *display = displays[0]; |
| 166 return true; | 167 return true; |
| 167 } | 168 } |
| 168 | 169 |
| 169 scoped_ptr<DesktopResizer> DesktopResizer::Create() { | 170 scoped_ptr<DesktopResizer> DesktopResizer::Create() { |
| 170 return make_scoped_ptr(new DesktopResizerMac); | 171 return make_scoped_ptr(new DesktopResizerMac); |
| 171 } | 172 } |
| 172 | 173 |
| 173 } // namespace remoting | 174 } // namespace remoting |
| OLD | NEW |