refactor: do not pass WebContents to NativeWindow
This commit is contained in:
parent
640877ebf8
commit
2b24b26e59
8 changed files with 36 additions and 41 deletions
|
@ -21,10 +21,6 @@
|
|||
@class CustomWindowButtonView;
|
||||
@class FullSizeContentView;
|
||||
|
||||
namespace views {
|
||||
class NativeViewHost;
|
||||
}
|
||||
|
||||
namespace atom {
|
||||
|
||||
class RootViewMac;
|
||||
|
@ -35,7 +31,7 @@ class NativeWindowMac : public NativeWindow {
|
|||
~NativeWindowMac() override;
|
||||
|
||||
// NativeWindow:
|
||||
void SetContentView(brightray::InspectableWebContents* web_contents) override;
|
||||
void SetContentView(views::View* view) override;
|
||||
void Close() override;
|
||||
void CloseImmediately() override;
|
||||
void Focus(bool focus) override;
|
||||
|
@ -144,7 +140,6 @@ class NativeWindowMac : public NativeWindow {
|
|||
};
|
||||
TitleBarStyle title_bar_style() const { return title_bar_style_; }
|
||||
|
||||
views::View* content_view() { return content_view_; }
|
||||
AtomPreviewItem* preview_item() const { return preview_item_.get(); }
|
||||
AtomTouchBar* touch_bar() const { return touch_bar_.get(); }
|
||||
bool zoom_to_page_width() const { return zoom_to_page_width_; }
|
||||
|
@ -178,9 +173,6 @@ class NativeWindowMac : public NativeWindow {
|
|||
// The view that fills the client area.
|
||||
std::unique_ptr<RootViewMac> root_view_;
|
||||
|
||||
// The content view, managed by widget_.
|
||||
views::NativeViewHost* content_view_;
|
||||
|
||||
bool is_kiosk_;
|
||||
bool was_fullscreen_;
|
||||
bool zoom_to_page_width_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue