diff --git a/brightray/browser/mac/bry_inspectable_web_contents_view.h b/brightray/browser/mac/bry_inspectable_web_contents_view.h index d5761bb5eec..53ec00c8f3e 100644 --- a/brightray/browser/mac/bry_inspectable_web_contents_view.h +++ b/brightray/browser/mac/bry_inspectable_web_contents_view.h @@ -10,6 +10,8 @@ namespace brightray { class InspectableWebContentsViewMac; } +using brightray::InspectableWebContentsViewMac; + @interface BRYInspectableWebContentsView : BaseView { @private brightray::InspectableWebContentsViewMac* inspectableWebContentsView_; @@ -21,7 +23,7 @@ class InspectableWebContentsViewMac; DevToolsContentsResizingStrategy strategy_; } -- (instancetype)initWithInspectableWebContentsViewMac:(brightray::InspectableWebContentsViewMac*)inspectableWebContentsView; +- (instancetype)initWithInspectableWebContentsViewMac:(InspectableWebContentsViewMac*)view; - (void)setDevToolsVisible:(BOOL)visible; - (BOOL)isDevToolsVisible; - (void)setIsDocked:(BOOL)docked; diff --git a/brightray/browser/mac/bry_inspectable_web_contents_view.mm b/brightray/browser/mac/bry_inspectable_web_contents_view.mm index 64d94ef105b..99c2e4179a0 100644 --- a/brightray/browser/mac/bry_inspectable_web_contents_view.mm +++ b/brightray/browser/mac/bry_inspectable_web_contents_view.mm @@ -12,16 +12,16 @@ using namespace brightray; @implementation BRYInspectableWebContentsView -- (instancetype)initWithInspectableWebContentsViewMac:(InspectableWebContentsViewMac*)inspectableWebContentsView { +- (instancetype)initWithInspectableWebContentsViewMac:(InspectableWebContentsViewMac*)view { self = [super init]; if (!self) return nil; - inspectableWebContentsView_ = inspectableWebContentsView; + inspectableWebContentsView_ = view; devtools_visible_ = NO; devtools_docked_ = NO; - auto contents = inspectableWebContentsView->inspectable_web_contents()->GetWebContents(); + auto contents = inspectableWebContentsView_->inspectable_web_contents()->GetWebContents(); auto contentsView = contents->GetView()->GetNativeView(); [contentsView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable]; [self addSubview:contentsView];