mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 1042525 - Add missing null implementation for screensharing. r=gcp
This commit is contained in:
parent
632a7eb2a2
commit
59d69dd939
@ -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;
|
||||
}
|
||||
|
@ -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",
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user