mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
refactor: add NativeWindow::IsActive() (#47148)
this was already present on macOS; use in NativeWindowViews too
This commit is contained in:
@@ -157,10 +157,10 @@ class NativeWindow : public base::SupportsUserData,
|
||||
virtual ui::ZOrderLevel GetZOrderLevel() const = 0;
|
||||
virtual void Center() = 0;
|
||||
virtual void Invalidate() = 0;
|
||||
[[nodiscard]] virtual bool IsActive() const = 0;
|
||||
#if BUILDFLAG(IS_MAC)
|
||||
virtual std::string GetAlwaysOnTopLevel() const = 0;
|
||||
virtual void SetActive(bool is_key) = 0;
|
||||
virtual bool IsActive() const = 0;
|
||||
virtual void RemoveChildFromParentWindow() = 0;
|
||||
virtual void RemoveChildWindow(NativeWindow* child) = 0;
|
||||
virtual void AttachChildren() = 0;
|
||||
|
||||
Reference in New Issue
Block a user