More code style fixing.
This commit is contained in:
parent
17628b3e40
commit
2cd6ad1a97
1 changed files with 13 additions and 7 deletions
|
@ -9,9 +9,13 @@
|
||||||
#include "ui/gfx/image/image.h"
|
#include "ui/gfx/image/image.h"
|
||||||
#include "ui/gfx/screen.h"
|
#include "ui/gfx/screen.h"
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
|
||||||
const CGFloat kStatusItemLength = 26;
|
const CGFloat kStatusItemLength = 26;
|
||||||
const CGFloat kMargin = 3;
|
const CGFloat kMargin = 3;
|
||||||
|
|
||||||
|
} // namespace
|
||||||
|
|
||||||
@interface StatusItemView : NSView {
|
@interface StatusItemView : NSView {
|
||||||
atom::TrayIconCocoa* trayIcon_; // weak
|
atom::TrayIconCocoa* trayIcon_; // weak
|
||||||
AtomMenuController* menuController_; // weak
|
AtomMenuController* menuController_; // weak
|
||||||
|
@ -108,6 +112,7 @@ const CGFloat kMargin = 3;
|
||||||
|
|
||||||
- (void)setImage:(NSImage*)image {
|
- (void)setImage:(NSImage*)image {
|
||||||
image_.reset([image copy]);
|
image_.reset([image copy]);
|
||||||
|
[self setNeedsDisplay:YES];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setAlternateImage:(NSImage*)image {
|
- (void)setAlternateImage:(NSImage*)image {
|
||||||
|
@ -120,6 +125,7 @@ const CGFloat kMargin = 3;
|
||||||
|
|
||||||
- (void)setTitle:(NSString*)title {
|
- (void)setTitle:(NSString*)title {
|
||||||
title_.reset([title copy]);
|
title_.reset([title copy]);
|
||||||
|
[self setNeedsDisplay:YES];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setMenuController:(AtomMenuController*)menu {
|
- (void)setMenuController:(AtomMenuController*)menu {
|
||||||
|
|
Loading…
Reference in a new issue