macOS: Use sheet window as modal window
This commit is contained in:
parent
1866dbe608
commit
e33e4be257
8 changed files with 81 additions and 112 deletions
|
@ -170,10 +170,7 @@ class Window : public mate::TrackableObject<Window>,
|
|||
void SetParentWindow(v8::Local<v8::Value> value, mate::Arguments* args);
|
||||
v8::Local<v8::Value> GetParentWindow() const;
|
||||
std::vector<v8::Local<v8::Object>> GetChildWindows() const;
|
||||
void SetModal(bool modal, mate::Arguments* args);
|
||||
bool IsModal() const;
|
||||
void BeginSheet(mate::Handle<Window> sheet, mate::Arguments* args);
|
||||
void EndSheet(mate::Handle<Window> sheet);
|
||||
v8::Local<v8::Value> GetNativeWindowHandle();
|
||||
|
||||
#if defined(OS_WIN)
|
||||
|
@ -209,9 +206,6 @@ class Window : public mate::TrackableObject<Window>,
|
|||
v8::Global<v8::Value> parent_window_;
|
||||
KeyWeakMap<int> child_windows_;
|
||||
|
||||
// Is current window modal.
|
||||
bool is_modal_;
|
||||
|
||||
api::WebContents* api_web_contents_;
|
||||
|
||||
std::unique_ptr<NativeWindow> window_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue