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

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

Issue 6598057: Split infobar_delegate.[cc,h] into separate pieces for the different classes defined within, so that (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix wrong include Created 9 years, 9 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 "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "chrome/browser/tab_contents/infobar_delegate.h" 10 #include "content/browser/tab_contents/infobar_delegate.h"
11 #include "views/background.h" 11 #include "views/background.h"
12 12
13 class InfoBarBackground : public views::Background { 13 class InfoBarBackground : public views::Background {
14 public: 14 public:
15 static const int kSeparatorLineHeight; 15 static const int kSeparatorLineHeight;
16 16
17 explicit InfoBarBackground(InfoBarDelegate::Type infobar_type); 17 explicit InfoBarBackground(InfoBarDelegate::Type infobar_type);
18 virtual ~InfoBarBackground(); 18 virtual ~InfoBarBackground();
19 19
20 static SkColor GetTopColor(InfoBarDelegate::Type infobar_type); 20 static SkColor GetTopColor(InfoBarDelegate::Type infobar_type);
21 static SkColor GetBottomColor(InfoBarDelegate::Type infobar_type); 21 static SkColor GetBottomColor(InfoBarDelegate::Type infobar_type);
22 22
23 private: 23 private:
24 // views::Background: 24 // views::Background:
25 virtual void Paint(gfx::Canvas* canvas, views::View* view) const; 25 virtual void Paint(gfx::Canvas* canvas, views::View* view) const;
26 26
27 scoped_ptr<views::Background> gradient_background_; 27 scoped_ptr<views::Background> gradient_background_;
28 28
29 DISALLOW_COPY_AND_ASSIGN(InfoBarBackground); 29 DISALLOW_COPY_AND_ASSIGN(InfoBarBackground);
30 }; 30 };
31 31
32 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_BACKGROUND_H_ 32 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_BACKGROUND_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/infobars/confirm_infobar.cc ('k') | chrome/browser/ui/views/infobars/infobar_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698