fix: read ignoreMenuShortcuts per WebContents

This commit is contained in:
Cheng Zhao 2018-09-10 19:06:16 +09:00
parent dcd580b6cf
commit 13334d023d
4 changed files with 22 additions and 16 deletions

View file

@ -62,10 +62,6 @@ class CommonWebContentsDelegate
NativeWindow* owner_window() const { return owner_window_.get(); }
void set_ignore_menu_shortcuts(bool ignore) {
ignore_menu_shortcuts_ = ignore;
}
bool is_html_fullscreen() const { return html_fullscreen_; }
protected:
@ -157,7 +153,6 @@ class CommonWebContentsDelegate
base::WeakPtr<NativeWindow> owner_window_;
bool offscreen_ = false;
bool ignore_menu_shortcuts_ = false;
// Whether window is fullscreened by HTML5 api.
bool html_fullscreen_ = false;