Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Unified Diff: webrtc/modules/desktop_capture/desktop_capturer.h

Issue 2479553006: Remove GetWindowList / GetScreenList and SelectWindow / SelectScreen from WebRTC (Closed)
Patch Set: Resolve review comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/desktop_capture/desktop_capturer.h
diff --git a/webrtc/modules/desktop_capture/desktop_capturer.h b/webrtc/modules/desktop_capture/desktop_capturer.h
index ecae4cb2e092f2d5bb0518fe7842194407871f39..71834a96f0efdeb167c41f6c5a19b0edc8fd160a 100644
--- a/webrtc/modules/desktop_capture/desktop_capturer.h
+++ b/webrtc/modules/desktop_capture/desktop_capturer.h
@@ -16,6 +16,7 @@
#include <memory>
#include <string>
+#include <type_traits>
#include <vector>
#include "webrtc/modules/desktop_capture/desktop_frame.h"
@@ -59,6 +60,9 @@ class DesktopCapturer {
typedef intptr_t SourceId;
+ static_assert(std::is_same<SourceId, ScreenId>::value,
+ "SourceId should be a same type as ScreenId.");
+
struct Source {
// The unique id to represent a Source of current DesktopCapturer.
SourceId id;

Powered by Google App Engine
This is Rietveld 408576698