refactor: do not pass WebContents to NativeWindow

This commit is contained in:
Cheng Zhao 2018-05-08 12:51:27 +09:00
parent 640877ebf8
commit 2b24b26e59
8 changed files with 36 additions and 41 deletions

View file

@ -109,6 +109,8 @@ class BrowserWindow : public TopLevelWindow,
v8::Global<v8::Value> web_contents_;
api::WebContents* api_web_contents_;
v8::Global<v8::Value> web_contents_view_;
base::WeakPtrFactory<BrowserWindow> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(BrowserWindow);