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(ui::ThemeProvider* provider) : | 9 BackgroundTheme::BackgroundTheme(ui::ThemeProvider* provider) : |
10 provider_(provider) { | 10 provider_(provider) { |
(...skipping 17 matching lines...) Expand all Loading... |
28 BackgroundTheme::~BackgroundTheme() {} | 28 BackgroundTheme::~BackgroundTheme() {} |
29 | 29 |
30 gfx::ImageSkia* BackgroundTheme::GetImageSkiaNamed(int id) const { | 30 gfx::ImageSkia* BackgroundTheme::GetImageSkiaNamed(int id) const { |
31 return NULL; | 31 return NULL; |
32 } | 32 } |
33 | 33 |
34 SkColor BackgroundTheme::GetColor(int id) const { | 34 SkColor BackgroundTheme::GetColor(int id) const { |
35 return SkColor(); | 35 return SkColor(); |
36 } | 36 } |
37 | 37 |
38 bool BackgroundTheme::GetDisplayProperty(int id, int* result) const { | 38 int BackgroundTheme::GetDisplayProperty(int id) const { |
39 return false; | 39 return -1; |
40 } | 40 } |
41 | 41 |
42 bool BackgroundTheme::ShouldUseNativeFrame() const { | 42 bool BackgroundTheme::ShouldUseNativeFrame() const { |
43 return false; | 43 return false; |
44 } | 44 } |
45 | 45 |
46 bool BackgroundTheme::HasCustomImage(int id) const { | 46 bool BackgroundTheme::HasCustomImage(int id) const { |
47 return false; | 47 return false; |
48 } | 48 } |
49 | 49 |
(...skipping 29 matching lines...) Expand all Loading... |
79 return buttonGradient_.get(); | 79 return buttonGradient_.get(); |
80 case ThemeProperties::GRADIENT_TOOLBAR_BUTTON_PRESSED: | 80 case ThemeProperties::GRADIENT_TOOLBAR_BUTTON_PRESSED: |
81 case ThemeProperties::GRADIENT_TOOLBAR_BUTTON_PRESSED_INACTIVE: | 81 case ThemeProperties::GRADIENT_TOOLBAR_BUTTON_PRESSED_INACTIVE: |
82 return buttonPressedGradient_.get(); | 82 return buttonPressedGradient_.get(); |
83 default: | 83 default: |
84 return provider_->GetNSGradient(id); | 84 return provider_->GetNSGradient(id); |
85 } | 85 } |
86 } | 86 } |
87 | 87 |
88 | 88 |
OLD | NEW |