You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.0 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. // Copyright 2010 Google Inc. All Rights Reserved
  2. #ifndef TALK_BASE_WIN32WINDOWPICKER_H_
  3. #define TALK_BASE_WIN32WINDOWPICKER_H_
  4. #include "talk/base/win32.h"
  5. #include "talk/base/windowpicker.h"
  6. namespace talk_base {
  7. class Win32WindowPicker : public WindowPicker {
  8. public:
  9. Win32WindowPicker();
  10. virtual bool Init();
  11. virtual bool IsVisible(const WindowId& id);
  12. virtual bool MoveToFront(const WindowId& id);
  13. virtual bool GetWindowList(WindowDescriptionList* descriptions);
  14. virtual bool GetDesktopList(DesktopDescriptionList* descriptions);
  15. virtual bool GetDesktopDimensions(const DesktopId& id, int* width,
  16. int* height);
  17. protected:
  18. static BOOL CALLBACK EnumProc(HWND hwnd, LPARAM l_param);
  19. static BOOL CALLBACK MonitorEnumProc(HMONITOR h_monitor,
  20. HDC hdc_monitor,
  21. LPRECT lprc_monitor,
  22. LPARAM l_param);
  23. };
  24. } // namespace talk_base
  25. #endif // TALK_BASE_WIN32WINDOWPICKER_H_