[Extensions] Make extension message bubble factory platform-abstract
[chromium-blink-merge.git] / chrome / browser / ui / views / infobars / infobar_background.h
blobf21538c516b328c5dd3aa7f63e39d95b06611c00
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.
5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_BACKGROUND_H_
6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_BACKGROUND_H_
8 #include "base/compiler_specific.h"
9 #include "components/infobars/core/infobar_delegate.h"
10 #include "ui/views/background.h"
12 class InfoBarBackground : public views::Background {
13 public:
14 explicit InfoBarBackground(infobars::InfoBarDelegate::Type infobar_type);
15 ~InfoBarBackground() override;
17 void set_separator_color(SkColor color) { separator_color_ = color; }
19 private:
20 // views::Background:
21 void Paint(gfx::Canvas* canvas, views::View* view) const override;
23 SkColor separator_color_;
24 SkColor top_color_;
25 SkColor bottom_color_;
27 DISALLOW_COPY_AND_ASSIGN(InfoBarBackground);
30 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_BACKGROUND_H_