feat: add window removeMenu() method (#16570)

* feat: add window removeMenu() method

* chore: remove original method from docs and code

* retain backwards compatibility
This commit is contained in:
Shelley Vohr 2019-01-31 10:58:23 -08:00 committed by GitHub
parent 2f35c98e76
commit c8c1be7ae5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 3 deletions

View file

@ -165,6 +165,7 @@ class TopLevelWindow : public mate::TrackableObject<TopLevelWindow>,
void SetContentProtection(bool enable);
void SetFocusable(bool focusable);
void SetMenu(v8::Isolate* isolate, v8::Local<v8::Value> menu);
void RemoveMenu();
void SetParentWindow(v8::Local<v8::Value> value, mate::Arguments* args);
virtual void SetBrowserView(v8::Local<v8::Value> value);
virtual void AddBrowserView(v8::Local<v8::Value> value);