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

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

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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 #include "chrome/browser/ui/views/infobars/infobar_background.h" 5 #include "chrome/browser/ui/views/infobars/infobar_background.h"
6 6
7 #include "gfx/canvas.h"
8 #include "ui/base/resource/resource_bundle.h" 7 #include "ui/base/resource/resource_bundle.h"
8 #include "ui/gfx/canvas.h"
9 #include "views/view.h" 9 #include "views/view.h"
10 10
11 static const SkColor kWarningBackgroundColorTop = SkColorSetRGB(255, 242, 183); 11 static const SkColor kWarningBackgroundColorTop = SkColorSetRGB(255, 242, 183);
12 static const SkColor kWarningBackgroundColorBottom = 12 static const SkColor kWarningBackgroundColorBottom =
13 SkColorSetRGB(250, 230, 145); 13 SkColorSetRGB(250, 230, 145);
14 14
15 static const SkColor kPageActionBackgroundColorTop = 15 static const SkColor kPageActionBackgroundColorTop =
16 SkColorSetRGB(218, 231, 249); 16 SkColorSetRGB(218, 231, 249);
17 static const SkColor kPageActionBackgroundColorBottom = 17 static const SkColor kPageActionBackgroundColorBottom =
18 SkColorSetRGB(179, 202, 231); 18 SkColorSetRGB(179, 202, 231);
(...skipping 27 matching lines...) Expand all
46 46
47 void InfoBarBackground::Paint(gfx::Canvas* canvas, views::View* view) const { 47 void InfoBarBackground::Paint(gfx::Canvas* canvas, views::View* view) const {
48 // First paint the gradient background. 48 // First paint the gradient background.
49 gradient_background_->Paint(canvas, view); 49 gradient_background_->Paint(canvas, view);
50 50
51 // Now paint the separator line. 51 // Now paint the separator line.
52 canvas->FillRectInt(ResourceBundle::toolbar_separator_color, 0, 52 canvas->FillRectInt(ResourceBundle::toolbar_separator_color, 0,
53 view->height() - kSeparatorLineHeight, view->width(), 53 view->height() - kSeparatorLineHeight, view->width(),
54 kSeparatorLineHeight); 54 kSeparatorLineHeight);
55 } 55 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/infobars/extension_infobar.cc ('k') | chrome/browser/ui/views/infobars/infobar_button_border.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698