OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/ui/infobar.h" |
| 6 |
| 7 namespace infobar { |
| 8 |
| 9 SkColor GetTopColor(InfoBarDelegate::Type infobar_type) { |
| 10 // Yellow |
| 11 static const SkColor kWarningBackgroundColorTop = |
| 12 SkColorSetRGB(255, 242, 183); |
| 13 // Gray |
| 14 static const SkColor kPageActionBackgroundColorTop = |
| 15 SkColorSetRGB(237, 237, 237); |
| 16 |
| 17 return (infobar_type == InfoBarDelegate::WARNING_TYPE) ? |
| 18 kWarningBackgroundColorTop : kPageActionBackgroundColorTop; |
| 19 } |
| 20 |
| 21 SkColor GetBottomColor(InfoBarDelegate::Type infobar_type) { |
| 22 // Yellow |
| 23 static const SkColor kWarningBackgroundColorBottom = |
| 24 SkColorSetRGB(250, 230, 145); |
| 25 // Gray |
| 26 static const SkColor kPageActionBackgroundColorBottom = |
| 27 SkColorSetRGB(217, 217, 217); |
| 28 |
| 29 return (infobar_type == InfoBarDelegate::WARNING_TYPE) ? |
| 30 kWarningBackgroundColorBottom : kPageActionBackgroundColorBottom; |
| 31 } |
| 32 |
| 33 } // namespace infobar |
OLD | NEW |