2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
11 #include "webrtc/modules/desktop_capture/window_capturer.h"
15 #include "webrtc/modules/desktop_capture/desktop_frame.h"
21 class WindowCapturerNull : public WindowCapturer {
24 virtual ~WindowCapturerNull();
26 // WindowCapturer interface.
27 virtual bool GetWindowList(WindowList* windows) OVERRIDE;
28 virtual bool SelectWindow(WindowId id) OVERRIDE;
29 virtual bool BringSelectedWindowToFront() OVERRIDE;
31 // DesktopCapturer interface.
32 virtual void Start(Callback* callback) OVERRIDE;
33 virtual void Capture(const DesktopRegion& region) OVERRIDE;
38 DISALLOW_COPY_AND_ASSIGN(WindowCapturerNull);
41 WindowCapturerNull::WindowCapturerNull()
45 WindowCapturerNull::~WindowCapturerNull() {
48 bool WindowCapturerNull::GetWindowList(WindowList* windows) {
49 // Not implemented yet.
53 bool WindowCapturerNull::SelectWindow(WindowId id) {
54 // Not implemented yet.
58 bool WindowCapturerNull::BringSelectedWindowToFront() {
59 // Not implemented yet.
63 void WindowCapturerNull::Start(Callback* callback) {
70 void WindowCapturerNull::Capture(const DesktopRegion& region) {
71 // Not implemented yet.
72 callback_->OnCaptureCompleted(NULL);
78 WindowCapturer* WindowCapturer::Create(const DesktopCaptureOptions& options) {
79 return new WindowCapturerNull();