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

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

Issue 2490063002: Remove ScreenCapturer and WindowCapturer (Closed)
Patch Set: 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/window_capturer.h
diff --git a/webrtc/modules/desktop_capture/window_capturer.h b/webrtc/modules/desktop_capture/window_capturer.h
deleted file mode 100644
index 5667702cba717b0cb5220f08394e6c2ac317341a..0000000000000000000000000000000000000000
--- a/webrtc/modules/desktop_capture/window_capturer.h
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-
-#ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_WINDOW_CAPTURER_H_
-#define WEBRTC_MODULES_DESKTOP_CAPTURE_WINDOW_CAPTURER_H_
-
-#include <string>
-#include <vector>
-
-#include "webrtc/base/constructormagic.h"
-#include "webrtc/modules/desktop_capture/desktop_capture_types.h"
-#include "webrtc/modules/desktop_capture/desktop_capturer.h"
-#include "webrtc/typedefs.h"
-
-namespace webrtc {
-
-class DesktopCaptureOptions;
-
-// TODO(zijiehe): Remove this class.
-class WindowCapturer : public DesktopCapturer {
- public:
- typedef webrtc::WindowId WindowId;
-
- struct Window {
- WindowId id;
-
- // Title of the window in UTF-8 encoding.
- std::string title;
- };
-
- typedef std::vector<Window> WindowList;
-
- // Consumers should use DesktopCapturer::CreateWindowCapturer.
- static WindowCapturer* Create(const DesktopCaptureOptions& options);
-
- ~WindowCapturer() override;
-
- // Deprecated, use GetSourceList().
- // Get list of windows. Returns false in case of a failure.
- virtual bool GetWindowList(WindowList* windows);
-
- // Deprecated, use SelectSource().
- // Select window to be captured. Returns false in case of a failure (e.g. if
- // there is no window with the specified id).
- virtual bool SelectWindow(WindowId id);
-
- // Deprecated, use FocusOnSelectedSource().
- // Bring the selected window to the front. Returns false in case of a
- // failure or no window selected.
- virtual bool BringSelectedWindowToFront();
-
- // DesktopCapturer interfaces.
- bool GetSourceList(SourceList* sources) override;
- bool SelectSource(SourceId id) override;
- bool FocusOnSelectedSource() override;
-};
-
-} // namespace webrtc
-
-#endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WINDOW_CAPTURER_H_
-
« no previous file with comments | « webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.h ('k') | webrtc/modules/desktop_capture/window_capturer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698