| 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/mac/foundation_util.h" | 8 #include "base/mac/foundation_util.h" |
| 9 #import "chrome/browser/ui/cocoa/info_bubble_window.h" | 9 #import "chrome/browser/ui/cocoa/info_bubble_window.h" |
| 10 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSBezierPath+RoundRect
.h" | 10 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSBezierPath+RoundRect
.h" |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 } | 122 } |
| 123 | 123 |
| 124 - (NSColor*)backgroundColor { | 124 - (NSColor*)backgroundColor { |
| 125 return backgroundColor_; | 125 return backgroundColor_; |
| 126 } | 126 } |
| 127 | 127 |
| 128 - (void)setBackgroundColor:(NSColor*)backgroundColor { | 128 - (void)setBackgroundColor:(NSColor*)backgroundColor { |
| 129 backgroundColor_.reset([backgroundColor retain]); | 129 backgroundColor_.reset([backgroundColor retain]); |
| 130 } | 130 } |
| 131 | 131 |
| 132 - (void)setArrowLocation:(info_bubble::BubbleArrowLocation)location { |
| 133 if (arrowLocation_ == location) |
| 134 return; |
| 135 |
| 136 arrowLocation_ = location; |
| 137 [self setNeedsDisplayInRect:[self bounds]]; |
| 138 } |
| 139 |
| 132 @end | 140 @end |
| OLD | NEW |