blob: 9c1e127723555b1ebf57be64a095862d0df33894 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_BACKGROUND_H_
#define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_BACKGROUND_H_
#pragma once
#include "base/scoped_ptr.h"
#include "content/browser/tab_contents/infobar_delegate.h"
#include "views/background.h"
class InfoBarBackground : public views::Background {
public:
static const int kSeparatorLineHeight;
explicit InfoBarBackground(InfoBarDelegate::Type infobar_type);
virtual ~InfoBarBackground();
static SkColor GetTopColor(InfoBarDelegate::Type infobar_type);
static SkColor GetBottomColor(InfoBarDelegate::Type infobar_type);
private:
// views::Background:
virtual void Paint(gfx::Canvas* canvas, views::View* view) const;
scoped_ptr<views::Background> gradient_background_;
DISALLOW_COPY_AND_ASSIGN(InfoBarBackground);
};
#endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_BACKGROUND_H_
|