| 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/download/background_theme.h" | 5 #include "chrome/browser/ui/cocoa/download/background_theme.h" |
| 6 | 6 |
| 7 #import "chrome/browser/themes/theme_properties.h" | 7 #import "chrome/browser/themes/theme_properties.h" |
| 8 | 8 |
| 9 BackgroundTheme::BackgroundTheme(const ui::ThemeProvider* provider) | 9 BackgroundTheme::BackgroundTheme(const ui::ThemeProvider* provider) |
| 10 : provider_(provider) { | 10 : provider_(provider) { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 case ThemeProperties::GRADIENT_TOOLBAR_BUTTON: | 89 case ThemeProperties::GRADIENT_TOOLBAR_BUTTON: |
| 90 case ThemeProperties::GRADIENT_TOOLBAR_BUTTON_INACTIVE: | 90 case ThemeProperties::GRADIENT_TOOLBAR_BUTTON_INACTIVE: |
| 91 return buttonGradient_.get(); | 91 return buttonGradient_.get(); |
| 92 case ThemeProperties::GRADIENT_TOOLBAR_BUTTON_PRESSED: | 92 case ThemeProperties::GRADIENT_TOOLBAR_BUTTON_PRESSED: |
| 93 case ThemeProperties::GRADIENT_TOOLBAR_BUTTON_PRESSED_INACTIVE: | 93 case ThemeProperties::GRADIENT_TOOLBAR_BUTTON_PRESSED_INACTIVE: |
| 94 return buttonPressedGradient_.get(); | 94 return buttonPressedGradient_.get(); |
| 95 default: | 95 default: |
| 96 return provider_->GetNSGradient(id); | 96 return provider_->GetNSGradient(id); |
| 97 } | 97 } |
| 98 } | 98 } |
| 99 |
| 100 bool BackgroundTheme::ShouldIncreaseContrast() const { |
| 101 return false; |
| 102 } |
| OLD | NEW |