OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include "webrtc/modules/desktop_capture/mac/desktop_configuration.h" | 11 #include "webrtc/modules/desktop_capture/mac/desktop_configuration.h" |
12 | 12 |
13 #include <math.h> | 13 #include <math.h> |
14 #include <algorithm> | 14 #include <algorithm> |
15 #include <Cocoa/Cocoa.h> | 15 #include <Cocoa/Cocoa.h> |
16 | 16 |
17 #include "webrtc/system_wrappers/interface/logging.h" | 17 #include "webrtc/system_wrappers/include/logging.h" |
18 | 18 |
19 #if !defined(MAC_OS_X_VERSION_10_7) || \ | 19 #if !defined(MAC_OS_X_VERSION_10_7) || \ |
20 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_7 | 20 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_7 |
21 | 21 |
22 @interface NSScreen (LionAPI) | 22 @interface NSScreen (LionAPI) |
23 - (CGFloat)backingScaleFactor; | 23 - (CGFloat)backingScaleFactor; |
24 - (NSRect)convertRectToBacking:(NSRect)aRect; | 24 - (NSRect)convertRectToBacking:(NSRect)aRect; |
25 @end | 25 @end |
26 | 26 |
27 #endif // MAC_OS_X_VERSION_10_7 | 27 #endif // MAC_OS_X_VERSION_10_7 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 CGDirectDisplayID id) { | 171 CGDirectDisplayID id) { |
172 for (MacDisplayConfigurations::const_iterator it = displays.begin(); | 172 for (MacDisplayConfigurations::const_iterator it = displays.begin(); |
173 it != displays.end(); ++it) { | 173 it != displays.end(); ++it) { |
174 if (it->id == id) | 174 if (it->id == id) |
175 return &(*it); | 175 return &(*it); |
176 } | 176 } |
177 return NULL; | 177 return NULL; |
178 } | 178 } |
179 | 179 |
180 } // namespace webrtc | 180 } // namespace webrtc |
OLD | NEW |