Save browser_view_ in the NativeWindow

No need to store it separately in subclasses.
This commit is contained in:
Cheng Zhao 2018-03-06 15:04:40 +09:00
parent 503b0ba1b1
commit 3b3e69f8b2
8 changed files with 34 additions and 33 deletions

View file

@ -135,7 +135,6 @@ class NativeWindowMac : public NativeWindow {
bool zoom_to_page_width() const { return zoom_to_page_width_; }
bool fullscreen_window_title() const { return fullscreen_window_title_; }
bool simple_fullscreen() const { return always_simple_fullscreen_; }
NativeBrowserView* browser_view() const { return browser_view_; }
private:
void InternalSetParentWindow(NativeWindow* parent, bool attach);
@ -153,8 +152,6 @@ class NativeWindowMac : public NativeWindow {
// The view that will fill the whole frameless window.
base::scoped_nsobject<FullSizeContentView> content_view_;
NativeBrowserView* browser_view_;
bool is_kiosk_;
bool was_fullscreen_;