OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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/infobar_background.h" | 5 #include "chrome/browser/ui/views/infobars/infobar_background.h" |
6 | 6 |
7 #include "gfx/canvas.h" | |
8 #include "ui/base/resource/resource_bundle.h" | 7 #include "ui/base/resource/resource_bundle.h" |
| 8 #include "ui/gfx/canvas.h" |
9 #include "views/view.h" | 9 #include "views/view.h" |
10 | 10 |
11 static const SkColor kWarningBackgroundColorTop = SkColorSetRGB(255, 242, 183); | 11 static const SkColor kWarningBackgroundColorTop = SkColorSetRGB(255, 242, 183); |
12 static const SkColor kWarningBackgroundColorBottom = | 12 static const SkColor kWarningBackgroundColorBottom = |
13 SkColorSetRGB(250, 230, 145); | 13 SkColorSetRGB(250, 230, 145); |
14 | 14 |
15 static const SkColor kPageActionBackgroundColorTop = | 15 static const SkColor kPageActionBackgroundColorTop = |
16 SkColorSetRGB(218, 231, 249); | 16 SkColorSetRGB(218, 231, 249); |
17 static const SkColor kPageActionBackgroundColorBottom = | 17 static const SkColor kPageActionBackgroundColorBottom = |
18 SkColorSetRGB(179, 202, 231); | 18 SkColorSetRGB(179, 202, 231); |
(...skipping 27 matching lines...) Expand all Loading... |
46 | 46 |
47 void InfoBarBackground::Paint(gfx::Canvas* canvas, views::View* view) const { | 47 void InfoBarBackground::Paint(gfx::Canvas* canvas, views::View* view) const { |
48 // First paint the gradient background. | 48 // First paint the gradient background. |
49 gradient_background_->Paint(canvas, view); | 49 gradient_background_->Paint(canvas, view); |
50 | 50 |
51 // Now paint the separator line. | 51 // Now paint the separator line. |
52 canvas->FillRectInt(ResourceBundle::toolbar_separator_color, 0, | 52 canvas->FillRectInt(ResourceBundle::toolbar_separator_color, 0, |
53 view->height() - kSeparatorLineHeight, view->width(), | 53 view->height() - kSeparatorLineHeight, view->width(), |
54 kSeparatorLineHeight); | 54 kSeparatorLineHeight); |
55 } | 55 } |
OLD | NEW |