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 #include "ui/gfx/color_utils.h" |
8 | 9 |
9 BackgroundTheme::BackgroundTheme(const ui::ThemeProvider* provider) | 10 BackgroundTheme::BackgroundTheme(const ui::ThemeProvider* provider) |
10 : provider_(provider) { | 11 : provider_(provider) { |
11 NSColor* bgColor = [NSColor colorWithCalibratedRed:241/255.0 | 12 NSColor* bgColor = [NSColor colorWithCalibratedRed:241/255.0 |
12 green:245/255.0 | 13 green:245/255.0 |
13 blue:250/255.0 | 14 blue:250/255.0 |
14 alpha:77/255.0]; | 15 alpha:77/255.0]; |
15 NSColor* clickedColor = [NSColor colorWithCalibratedRed:239/255.0 | 16 NSColor* clickedColor = [NSColor colorWithCalibratedRed:239/255.0 |
16 green:245/255.0 | 17 green:245/255.0 |
17 blue:252/255.0 | 18 blue:252/255.0 |
(...skipping 22 matching lines...) Expand all Loading... |
40 } | 41 } |
41 | 42 |
42 gfx::ImageSkia* BackgroundTheme::GetImageSkiaNamed(int id) const { | 43 gfx::ImageSkia* BackgroundTheme::GetImageSkiaNamed(int id) const { |
43 return NULL; | 44 return NULL; |
44 } | 45 } |
45 | 46 |
46 SkColor BackgroundTheme::GetColor(int id) const { | 47 SkColor BackgroundTheme::GetColor(int id) const { |
47 return SkColor(); | 48 return SkColor(); |
48 } | 49 } |
49 | 50 |
| 51 color_utils::HSL BackgroundTheme::GetTint(int id) const { |
| 52 return color_utils::HSL(); |
| 53 } |
| 54 |
50 int BackgroundTheme::GetDisplayProperty(int id) const { | 55 int BackgroundTheme::GetDisplayProperty(int id) const { |
51 return -1; | 56 return -1; |
52 } | 57 } |
53 | 58 |
54 bool BackgroundTheme::ShouldUseNativeFrame() const { | 59 bool BackgroundTheme::ShouldUseNativeFrame() const { |
55 return false; | 60 return false; |
56 } | 61 } |
57 | 62 |
58 bool BackgroundTheme::HasCustomImage(int id) const { | 63 bool BackgroundTheme::HasCustomImage(int id) const { |
59 return false; | 64 return false; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 case ThemeProperties::GRADIENT_TOOLBAR_BUTTON_PRESSED_INACTIVE: | 98 case ThemeProperties::GRADIENT_TOOLBAR_BUTTON_PRESSED_INACTIVE: |
94 return buttonPressedGradient_.get(); | 99 return buttonPressedGradient_.get(); |
95 default: | 100 default: |
96 return provider_->GetNSGradient(id); | 101 return provider_->GetNSGradient(id); |
97 } | 102 } |
98 } | 103 } |
99 | 104 |
100 bool BackgroundTheme::ShouldIncreaseContrast() const { | 105 bool BackgroundTheme::ShouldIncreaseContrast() const { |
101 return false; | 106 return false; |
102 } | 107 } |
OLD | NEW |