OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #import "chrome/browser/ui/cocoa/info_bubble_view.h" | 5 #import "chrome/browser/ui/cocoa/info_bubble_view.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
9 #import "third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.h" | 9 #import "third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.h" |
10 | 10 |
11 @implementation InfoBubbleView | 11 @implementation InfoBubbleView |
12 | 12 |
13 @synthesize arrowLocation = arrowLocation_; | 13 @synthesize arrowLocation = arrowLocation_; |
14 @synthesize alignment = alignment_; | 14 @synthesize alignment = alignment_; |
15 @synthesize cornerFlags = cornerFlags_; | 15 @synthesize cornerFlags = cornerFlags_; |
16 | 16 |
17 - (id)initWithFrame:(NSRect)frameRect { | 17 - (id)initWithFrame:(NSRect)frameRect { |
18 if ((self = [super initWithFrame:frameRect])) { | 18 if ((self = [super initWithFrame:frameRect])) { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 - (NSColor*)backgroundColor { | 90 - (NSColor*)backgroundColor { |
91 return backgroundColor_; | 91 return backgroundColor_; |
92 } | 92 } |
93 | 93 |
94 - (void)setBackgroundColor:(NSColor*)backgroundColor { | 94 - (void)setBackgroundColor:(NSColor*)backgroundColor { |
95 backgroundColor_.reset([backgroundColor retain]); | 95 backgroundColor_.reset([backgroundColor retain]); |
96 } | 96 } |
97 | 97 |
98 @end | 98 @end |
OLD | NEW |