Bug 1042525 - Add missing null implementation for screensharing. r=gcp

This commit is contained in:
Randall Barker 2014-08-01 11:43:00 +02:00
parent 632a7eb2a2
commit 59d69dd939
3 changed files with 42 additions and 2 deletions

View File

@ -50,12 +50,12 @@ bool AppCapturerNull::GetAppList(AppList* apps) {
return false;
}
bool SelectApp(ProcessId id) {
bool AppCapturerNull::SelectApp(ProcessId id) {
// Not implemented yet: See Bug 1036653
return false;
}
bool BringAppToFront() {
bool AppCapturerNull::BringAppToFront() {
// Not implemented yet: See Bug 1036653
return false;
}

View File

@ -104,6 +104,8 @@
}],
['OS!="win" and OS!="mac" and use_x11==0', {
'sources': [
"app_capturer_null.cc",
"desktop_device_info_null.cc",
"mouse_cursor_monitor_null.cc",
"screen_capturer_null.cc",
"window_capturer_null.cc",

View File

@ -0,0 +1,38 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "webrtc/modules/desktop_capture/desktop_device_info.h"
namespace webrtc {
class DesktopDeviceInfoNull : public DesktopDeviceInfoImpl {
public:
DesktopDeviceInfoNull();
~DesktopDeviceInfoNull();
virtual int32_t Init();
};
DesktopDeviceInfo * DesktopDeviceInfoImpl::Create() {
DesktopDeviceInfoNull * pDesktopDeviceInfo = new DesktopDeviceInfoNull();
if (pDesktopDeviceInfo && pDesktopDeviceInfo->Init() != 0) {
delete pDesktopDeviceInfo;
pDesktopDeviceInfo = NULL;
}
return pDesktopDeviceInfo;
}
DesktopDeviceInfoNull::DesktopDeviceInfoNull() {
}
DesktopDeviceInfoNull::~DesktopDeviceInfoNull() {
}
int32_t
DesktopDeviceInfoNull::Init() {
initializeWindowList();
return 0;
}
} //namespace webrtc