fix: read ignoreMenuShortcuts per WebContents (#14538)

This commit is contained in:
Cheng Zhao 2018-09-11 16:52:04 +09:00 committed by Samuel Attard
parent 1b920c25af
commit 8950caaa85
4 changed files with 21 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;