feat: Add BrowserWindow option to hide window in Mission Control (macOS) (#36092)
* feat: Add BrowserWindow option to ignore Mission Control (macOS) * There are many circumstances when app developers may want to hide their windows from mission control. E.g., full screen overlays, small helper windows, dialogs, etc. * This PR adds the functionality, docs, and tests. * chore:Rename variables * Update shell/browser/native_window_mac.h Co-authored-by: Samuel Maddock <samuel.maddock@gmail.com> Co-authored-by: Samuel Maddock <samuel.maddock@gmail.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
This commit is contained in:
parent
8b430c9d26
commit
15540975ff
9 changed files with 77 additions and 1 deletions
|
@ -227,6 +227,12 @@ class NativeWindow : public base::SupportsUserData,
|
|||
virtual void UpdateFrame() = 0;
|
||||
#endif
|
||||
|
||||
// whether windows should be ignored by mission control
|
||||
#if BUILDFLAG(IS_MAC)
|
||||
virtual bool IsHiddenInMissionControl() = 0;
|
||||
virtual void SetHiddenInMissionControl(bool hidden) = 0;
|
||||
#endif
|
||||
|
||||
// Touchbar API
|
||||
virtual void SetTouchBar(std::vector<gin_helper::PersistentDictionary> items);
|
||||
virtual void RefreshTouchBarItem(const std::string& item_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue