Fix cpplint warning.

This commit is contained in:
Cheng Zhao 2014-07-02 16:54:04 +08:00
parent 1722532e6d
commit 563d6e87ff
2 changed files with 6 additions and 4 deletions

View file

@ -10,6 +10,8 @@ namespace brightray {
class InspectableWebContentsViewMac;
}
using brightray::InspectableWebContentsViewMac;
@interface BRYInspectableWebContentsView : BaseView<NSWindowDelegate> {
@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;

View file

@ -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];