Use intptr_t to represent window IDs on all platforms.

Previously void* was used on windows which makes it harder to work
with the IDs in cross-platform code.

R=alexeypa@chromium.org

Review URL: https://webrtc-codereview.appspot.com/1672004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4237 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
sergeyu@chromium.org 2013-06-17 20:02:21 +00:00
parent 508a84b255
commit a590b41c9a
2 changed files with 2 additions and 6 deletions

View File

@ -22,11 +22,7 @@ namespace webrtc {
class WindowCapturer : public DesktopCapturer {
public:
#if defined(WEBRTC_LINUX) || defined(WEBRTC_MAC)
typedef unsigned int WindowId;
#elif defined(WEBRTC_WIN)
typedef void* WindowId;
#endif
typedef intptr_t WindowId;
struct Window {
WindowId id;

View File

@ -64,7 +64,7 @@ BOOL CALLBACK WindowsEnumerationHandler(HWND hwnd, LPARAM param) {
return TRUE;
WindowCapturer::Window window;
window.id = hwnd;
window.id = reinterpret_cast<WindowCapturer::WindowId>(hwnd);
const size_t kTitleLength = 500;
WCHAR window_title[kTitleLength];