Fix building on OS X
This commit is contained in:
parent
c3e1ceaf61
commit
eb709a9a8f
3 changed files with 5 additions and 8 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
#import <AppKit/AppKit.h>
|
#import <AppKit/AppKit.h>
|
||||||
|
|
||||||
|
#include "base/strings/sys_string_conversions.h"
|
||||||
#include "browser/inspectable_web_contents.h"
|
#include "browser/inspectable_web_contents.h"
|
||||||
#include "browser/inspectable_web_contents_view_delegate.h"
|
#include "browser/inspectable_web_contents_view_delegate.h"
|
||||||
#import "browser/mac/bry_inspectable_web_contents_view.h"
|
#import "browser/mac/bry_inspectable_web_contents_view.h"
|
||||||
|
@ -51,7 +52,7 @@ void InspectableWebContentsViewMac::SetContentsResizingStrategy(
|
||||||
}
|
}
|
||||||
|
|
||||||
void InspectableWebContentsViewMac::SetTitle(const base::string16& title) {
|
void InspectableWebContentsViewMac::SetTitle(const base::string16& title) {
|
||||||
[view_ setTitle:title];
|
[view_ setTitle:base::SysUTF16ToNSString(title)];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,6 +32,6 @@ using brightray::InspectableWebContentsViewMac;
|
||||||
- (BOOL)isDevToolsVisible;
|
- (BOOL)isDevToolsVisible;
|
||||||
- (void)setIsDocked:(BOOL)docked;
|
- (void)setIsDocked:(BOOL)docked;
|
||||||
- (void)setContentsResizingStrategy:(const DevToolsContentsResizingStrategy&)strategy;
|
- (void)setContentsResizingStrategy:(const DevToolsContentsResizingStrategy&)strategy;
|
||||||
- (void)setTitle:(const base::string16&)title;
|
- (void)setTitle:(NSString*)title;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
#import <QuartzCore/QuartzCore.h>
|
#import <QuartzCore/QuartzCore.h>
|
||||||
|
|
||||||
#include "base/strings/sys_string_conversions.h"
|
|
||||||
#include "browser/inspectable_web_contents_impl.h"
|
#include "browser/inspectable_web_contents_impl.h"
|
||||||
#include "browser/inspectable_web_contents_view_mac.h"
|
#include "browser/inspectable_web_contents_view_mac.h"
|
||||||
|
|
||||||
|
@ -175,11 +174,8 @@ const CGFloat kRoundedCornerRadius = 4;
|
||||||
[contentsView setFrame:[self flipRectToNSRect:new_contents_bounds]];
|
[contentsView setFrame:[self flipRectToNSRect:new_contents_bounds]];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setTitle:(const base::string16&)title {
|
- (void)setTitle:(NSString*)title {
|
||||||
if (devtools_window_) {
|
[devtools_window_ setTitle:title];
|
||||||
NSString* title_string = base::SysUTF16ToNSString(title);
|
|
||||||
[devtools_window_ setTitle:title_string];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Creates a path whose bottom two corners are rounded.
|
// Creates a path whose bottom two corners are rounded.
|
||||||
|
|
Loading…
Reference in a new issue