Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(697)

Side by Side Diff: chrome/browser/ui/views/infobars/infobar_background.h

Issue 7130001: Make infobar background gray (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "chrome/browser/tab_contents/infobar_delegate.h" 9 #include "chrome/browser/tab_contents/infobar_delegate.h"
10 #include "views/background.h" 10 #include "views/background.h"
11 11
12 class InfoBarBackground : public views::Background { 12 class InfoBarBackground : public views::Background {
13 public: 13 public:
14 explicit InfoBarBackground(InfoBarDelegate::Type infobar_type); 14 explicit InfoBarBackground(InfoBarDelegate::Type infobar_type);
15 virtual ~InfoBarBackground(); 15 virtual ~InfoBarBackground();
16 16
17 void set_separator_color(SkColor color) { separator_color_ = color; } 17 void set_separator_color(SkColor color) { separator_color_ = color; }
18 static SkColor GetTopColor(InfoBarDelegate::Type infobar_type);
19 static SkColor GetBottomColor(InfoBarDelegate::Type infobar_type);
20 18
21 private: 19 private:
22 // views::Background: 20 // views::Background:
23 virtual void Paint(gfx::Canvas* canvas, views::View* view) const; 21 virtual void Paint(gfx::Canvas* canvas, views::View* view) const;
24 22
25 SkColor separator_color_; 23 SkColor separator_color_;
26 SkColor top_color_; 24 SkColor top_color_;
27 SkColor bottom_color_; 25 SkColor bottom_color_;
28 26
29 DISALLOW_COPY_AND_ASSIGN(InfoBarBackground); 27 DISALLOW_COPY_AND_ASSIGN(InfoBarBackground);
30 }; 28 };
31 29
32 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_BACKGROUND_H_ 30 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_BACKGROUND_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/infobars/infobar_gtk.cc ('k') | chrome/browser/ui/views/infobars/infobar_background.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698