OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 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 #ifndef WEBRTC_RTC_BASE_WINDOW_H_ | 11 #ifndef WEBRTC_RTC_BASE_WINDOW_H_ |
12 #define WEBRTC_RTC_BASE_WINDOW_H_ | 12 #define WEBRTC_RTC_BASE_WINDOW_H_ |
13 | 13 |
14 #include <stdint.h> | 14 #include <stdint.h> |
15 | 15 |
16 #include "webrtc/rtc_base/stringencode.h" | 16 #include "webrtc/base/stringencode.h" |
17 | 17 |
18 // Define platform specific window types. | 18 // Define platform specific window types. |
19 #if defined(WEBRTC_LINUX) && !defined(WEBRTC_ANDROID) | 19 #if defined(WEBRTC_LINUX) && !defined(WEBRTC_ANDROID) |
20 typedef unsigned long Window; // Avoid include <X11/Xlib.h>. | 20 typedef unsigned long Window; // Avoid include <X11/Xlib.h>. |
21 #elif defined(WEBRTC_WIN) | 21 #elif defined(WEBRTC_WIN) |
22 // We commonly include win32.h in webrtc/rtc_base so just include it here. | 22 // We commonly include win32.h in webrtc/base so just include it here. |
23 #include "webrtc/rtc_base/win32.h" // Include HWND, HMONITOR. | 23 #include "webrtc/base/win32.h" // Include HWND, HMONITOR. |
24 #elif defined(WEBRTC_MAC) && !defined(WEBRTC_IOS) | 24 #elif defined(WEBRTC_MAC) && !defined(WEBRTC_IOS) |
25 typedef unsigned int CGWindowID; | 25 typedef unsigned int CGWindowID; |
26 typedef unsigned int CGDirectDisplayID; | 26 typedef unsigned int CGDirectDisplayID; |
27 #endif | 27 #endif |
28 | 28 |
29 namespace rtc { | 29 namespace rtc { |
30 | 30 |
31 class WindowId { | 31 class WindowId { |
32 public: | 32 public: |
33 // Define WindowT for each platform. | 33 // Define WindowT for each platform. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 WindowT id_; | 69 WindowT id_; |
70 }; | 70 }; |
71 | 71 |
72 inline std::string ToString(const WindowId& window) { | 72 inline std::string ToString(const WindowId& window) { |
73 return ToString(window.id()); | 73 return ToString(window.id()); |
74 } | 74 } |
75 | 75 |
76 } // namespace rtc | 76 } // namespace rtc |
77 | 77 |
78 #endif // WEBRTC_RTC_BASE_WINDOW_H_ | 78 #endif // WEBRTC_RTC_BASE_WINDOW_H_ |
OLD | NEW |