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 #include "chrome/browser/ui/cocoa/infobars/infobar_gradient_view.h" | 5 #include "chrome/browser/ui/cocoa/infobars/infobar_gradient_view.h" |
6 | 6 |
7 #include "base/mac/scoped_nsobject.h" | 7 #include "base/mac/scoped_nsobject.h" |
8 #include "chrome/browser/infobars/infobar.h" | |
9 #import "chrome/browser/themes/theme_properties.h" | 8 #import "chrome/browser/themes/theme_properties.h" |
10 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 9 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
11 #import "chrome/browser/ui/cocoa/infobars/infobar_container_controller.h" | 10 #import "chrome/browser/ui/cocoa/infobars/infobar_container_controller.h" |
12 #import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" | 11 #import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" |
13 #import "chrome/browser/ui/cocoa/nsview_additions.h" | 12 #import "chrome/browser/ui/cocoa/nsview_additions.h" |
14 #import "chrome/browser/ui/cocoa/themed_window.h" | 13 #import "chrome/browser/ui/cocoa/themed_window.h" |
| 14 #include "components/infobars/core/infobar.h" |
15 #include "skia/ext/skia_utils_mac.h" | 15 #include "skia/ext/skia_utils_mac.h" |
16 #include "ui/base/theme_provider.h" | 16 #include "ui/base/theme_provider.h" |
17 | 17 |
18 @implementation InfoBarGradientView | 18 @implementation InfoBarGradientView |
19 | 19 |
20 @synthesize arrowHeight = arrowHeight_; | 20 @synthesize arrowHeight = arrowHeight_; |
21 @synthesize arrowHalfWidth = arrowHalfWidth_; | 21 @synthesize arrowHalfWidth = arrowHalfWidth_; |
22 @synthesize arrowX = arrowX_; | 22 @synthesize arrowX = arrowX_; |
23 @synthesize hasTip = hasTip_; | 23 @synthesize hasTip = hasTip_; |
24 | 24 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 } | 136 } |
137 | 137 |
138 - (void)setHasTip:(BOOL)hasTip { | 138 - (void)setHasTip:(BOOL)hasTip { |
139 if (hasTip_ == hasTip) | 139 if (hasTip_ == hasTip) |
140 return; | 140 return; |
141 hasTip_ = hasTip; | 141 hasTip_ = hasTip; |
142 [self setNeedsDisplay:YES]; | 142 [self setNeedsDisplay:YES]; |
143 } | 143 } |
144 | 144 |
145 @end | 145 @end |
OLD | NEW |