Fix cpplint warning.
This commit is contained in:
parent
1722532e6d
commit
563d6e87ff
2 changed files with 6 additions and 4 deletions
|
@ -10,6 +10,8 @@ namespace brightray {
|
||||||
class InspectableWebContentsViewMac;
|
class InspectableWebContentsViewMac;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
using brightray::InspectableWebContentsViewMac;
|
||||||
|
|
||||||
@interface BRYInspectableWebContentsView : BaseView<NSWindowDelegate> {
|
@interface BRYInspectableWebContentsView : BaseView<NSWindowDelegate> {
|
||||||
@private
|
@private
|
||||||
brightray::InspectableWebContentsViewMac* inspectableWebContentsView_;
|
brightray::InspectableWebContentsViewMac* inspectableWebContentsView_;
|
||||||
|
@ -21,7 +23,7 @@ class InspectableWebContentsViewMac;
|
||||||
DevToolsContentsResizingStrategy strategy_;
|
DevToolsContentsResizingStrategy strategy_;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (instancetype)initWithInspectableWebContentsViewMac:(brightray::InspectableWebContentsViewMac*)inspectableWebContentsView;
|
- (instancetype)initWithInspectableWebContentsViewMac:(InspectableWebContentsViewMac*)view;
|
||||||
- (void)setDevToolsVisible:(BOOL)visible;
|
- (void)setDevToolsVisible:(BOOL)visible;
|
||||||
- (BOOL)isDevToolsVisible;
|
- (BOOL)isDevToolsVisible;
|
||||||
- (void)setIsDocked:(BOOL)docked;
|
- (void)setIsDocked:(BOOL)docked;
|
||||||
|
|
|
@ -12,16 +12,16 @@ using namespace brightray;
|
||||||
|
|
||||||
@implementation BRYInspectableWebContentsView
|
@implementation BRYInspectableWebContentsView
|
||||||
|
|
||||||
- (instancetype)initWithInspectableWebContentsViewMac:(InspectableWebContentsViewMac*)inspectableWebContentsView {
|
- (instancetype)initWithInspectableWebContentsViewMac:(InspectableWebContentsViewMac*)view {
|
||||||
self = [super init];
|
self = [super init];
|
||||||
if (!self)
|
if (!self)
|
||||||
return nil;
|
return nil;
|
||||||
|
|
||||||
inspectableWebContentsView_ = inspectableWebContentsView;
|
inspectableWebContentsView_ = view;
|
||||||
devtools_visible_ = NO;
|
devtools_visible_ = NO;
|
||||||
devtools_docked_ = NO;
|
devtools_docked_ = NO;
|
||||||
|
|
||||||
auto contents = inspectableWebContentsView->inspectable_web_contents()->GetWebContents();
|
auto contents = inspectableWebContentsView_->inspectable_web_contents()->GetWebContents();
|
||||||
auto contentsView = contents->GetView()->GetNativeView();
|
auto contentsView = contents->GetView()->GetNativeView();
|
||||||
[contentsView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
|
[contentsView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
|
||||||
[self addSubview:contentsView];
|
[self addSubview:contentsView];
|
||||||
|
|
Loading…
Reference in a new issue