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 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_BACKGROUND_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_BACKGROUND_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_BACKGROUND_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_BACKGROUND_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "chrome/browser/infobars/infobar_delegate.h" | 10 #include "chrome/browser/infobars/infobar_delegate.h" |
11 #include "views/background.h" | 11 #include "ui/views/background.h" |
12 | 12 |
13 class InfoBarBackground : public views::Background { | 13 class InfoBarBackground : public views::Background { |
14 public: | 14 public: |
15 explicit InfoBarBackground(InfoBarDelegate::Type infobar_type); | 15 explicit InfoBarBackground(InfoBarDelegate::Type infobar_type); |
16 virtual ~InfoBarBackground(); | 16 virtual ~InfoBarBackground(); |
17 | 17 |
18 void set_separator_color(SkColor color) { separator_color_ = color; } | 18 void set_separator_color(SkColor color) { separator_color_ = color; } |
19 | 19 |
20 private: | 20 private: |
21 // views::Background: | 21 // views::Background: |
22 virtual void Paint(gfx::Canvas* canvas, views::View* view) const OVERRIDE; | 22 virtual void Paint(gfx::Canvas* canvas, views::View* view) const OVERRIDE; |
23 | 23 |
24 SkColor separator_color_; | 24 SkColor separator_color_; |
25 SkColor top_color_; | 25 SkColor top_color_; |
26 SkColor bottom_color_; | 26 SkColor bottom_color_; |
27 | 27 |
28 DISALLOW_COPY_AND_ASSIGN(InfoBarBackground); | 28 DISALLOW_COPY_AND_ASSIGN(InfoBarBackground); |
29 }; | 29 }; |
30 | 30 |
31 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_BACKGROUND_H_ | 31 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_BACKGROUND_H_ |
OLD | NEW |