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/views/infobars/one_click_signin_infobar.h" | 5 #include "chrome/browser/ui/views/infobars/one_click_signin_infobar.h" |
6 | 6 |
7 #include "chrome/browser/defaults.h" | 7 #include "chrome/browser/defaults.h" |
8 #include "chrome/browser/ui/sync/one_click_signin_infobar_delegate.h" | 8 #include "chrome/browser/ui/sync/one_click_signin_infobar_delegate.h" |
9 #include "chrome/browser/ui/views/infobars/infobar_background.h" | 9 #include "chrome/browser/ui/views/infobars/infobar_background.h" |
10 #include "third_party/skia/include/core/SkColor.h" | 10 #include "third_party/skia/include/core/SkColor.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 one_click_delegate_->GetAlternateColors(&alt_colors); | 133 one_click_delegate_->GetAlternateColors(&alt_colors); |
134 if (!alt_colors.enabled) | 134 if (!alt_colors.enabled) |
135 return; | 135 return; |
136 | 136 |
137 set_background(new InfoBarBackground(alt_colors.infobar_top_color, | 137 set_background(new InfoBarBackground(alt_colors.infobar_top_color, |
138 alt_colors.infobar_bottom_color)); | 138 alt_colors.infobar_bottom_color)); |
139 ok_button()->set_border(new InfoBarColoredButtonBorder( | 139 ok_button()->set_border(new InfoBarColoredButtonBorder( |
140 alt_colors.button_background_color, | 140 alt_colors.button_background_color, |
141 alt_colors.button_border_color)); | 141 alt_colors.button_border_color)); |
142 ok_button()->SetEnabledColor(alt_colors.button_text_color); | 142 ok_button()->SetEnabledColor(alt_colors.button_text_color); |
143 ok_button()->SetHighlightColor(alt_colors.button_text_color); | |
144 ok_button()->SetHoverColor(alt_colors.button_text_color); | 143 ok_button()->SetHoverColor(alt_colors.button_text_color); |
145 } | 144 } |
OLD | NEW |