mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: Update comment for desktop_capturer (#19848)
* chore: Update comment for desktop_capturer * Guard TopLevelWindow::MoveAbove with ENABLE_DESKTOP_CAPTURER * Fix lint errors
This commit is contained in:
committed by
Shelley Vohr
parent
4bc7b3b1a4
commit
46b6bcd99b
@@ -555,8 +555,12 @@ std::vector<int> TopLevelWindow::GetPosition() {
|
||||
}
|
||||
void TopLevelWindow::MoveAbove(const std::string& sourceId,
|
||||
mate::Arguments* args) {
|
||||
#if BUILDFLAG(ENABLE_DESKTOP_CAPTURER)
|
||||
if (!window_->MoveAbove(sourceId))
|
||||
args->ThrowError("Invalid media source id");
|
||||
#else
|
||||
args->ThrowError("enable_desktop_capturer=true to use this feature");
|
||||
#endif
|
||||
}
|
||||
|
||||
void TopLevelWindow::MoveTop() {
|
||||
|
||||
Reference in New Issue
Block a user