| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/cocoa/infobar_gradient_view.h" | 5 #include "chrome/browser/cocoa/infobar_gradient_view.h" |
| 6 | 6 |
| 7 #include "base/scoped_nsobject.h" | 7 #include "base/scoped_nsobject.h" |
| 8 #import "chrome/browser/browser_theme_provider.h" | |
| 9 #import "chrome/browser/cocoa/themed_window.h" | 8 #import "chrome/browser/cocoa/themed_window.h" |
| 9 #import "chrome/browser/themes/browser_theme_provider.h" |
| 10 | 10 |
| 11 namespace { | 11 namespace { |
| 12 | 12 |
| 13 const double kBackgroundColorTop[3] = | 13 const double kBackgroundColorTop[3] = |
| 14 {255.0 / 255.0, 242.0 / 255.0, 183.0 / 255.0}; | 14 {255.0 / 255.0, 242.0 / 255.0, 183.0 / 255.0}; |
| 15 const double kBackgroundColorBottom[3] = | 15 const double kBackgroundColorBottom[3] = |
| 16 {250.0 / 255.0, 230.0 / 255.0, 145.0 / 255.0}; | 16 {250.0 / 255.0, 230.0 / 255.0, 145.0 / 255.0}; |
| 17 } | 17 } |
| 18 | 18 |
| 19 @implementation InfoBarGradientView | 19 @implementation InfoBarGradientView |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 } | 61 } |
| 62 | 62 |
| 63 - (id)accessibilityAttributeValue:(NSString*)attribute { | 63 - (id)accessibilityAttributeValue:(NSString*)attribute { |
| 64 if ([attribute isEqual:NSAccessibilityRoleAttribute]) | 64 if ([attribute isEqual:NSAccessibilityRoleAttribute]) |
| 65 return NSAccessibilityGroupRole; | 65 return NSAccessibilityGroupRole; |
| 66 | 66 |
| 67 return [super accessibilityAttributeValue:attribute]; | 67 return [super accessibilityAttributeValue:attribute]; |
| 68 } | 68 } |
| 69 | 69 |
| 70 @end | 70 @end |
| OLD | NEW |