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

Side by Side Diff: chrome/browser/chromeos/login/rounded_rect_painter.cc

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more two win fixes Created 8 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
« no previous file with comments | « ash/app_list/drop_shadow_label.cc ('k') | chrome/browser/download/download_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chromeos/login/rounded_rect_painter.h" 5 #include "chrome/browser/chromeos/login/rounded_rect_painter.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/chromeos/login/helper.h" 8 #include "chrome/browser/chromeos/login/helper.h"
9 #include "third_party/skia/include/effects/SkBlurMaskFilter.h" 9 #include "third_party/skia/include/effects/SkBlurMaskFilter.h"
10 #include "third_party/skia/include/effects/SkGradientShader.h" 10 #include "third_party/skia/include/effects/SkGradientShader.h"
11 #include "ui/gfx/canvas_skia.h" 11 #include "ui/gfx/canvas.h"
12 #include "ui/gfx/skia_util.h" 12 #include "ui/gfx/skia_util.h"
13 #include "ui/views/border.h" 13 #include "ui/views/border.h"
14 #include "ui/views/painter.h" 14 #include "ui/views/painter.h"
15 15
16 namespace chromeos { 16 namespace chromeos {
17 17
18 namespace { 18 namespace {
19 19
20 const SkColor kScreenTopColor = SkColorSetRGB(250, 251, 251); 20 const SkColor kScreenTopColor = SkColorSetRGB(250, 251, 251);
21 const SkColor kScreenBottomColor = SkColorSetRGB(204, 209, 212); 21 const SkColor kScreenBottomColor = SkColorSetRGB(204, 209, 212);
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 212
213 views::Background* CreateRoundedBackground(int corner_radius, 213 views::Background* CreateRoundedBackground(int corner_radius,
214 int stroke_width, 214 int stroke_width,
215 SkColor background_color, 215 SkColor background_color,
216 SkColor stroke_color) { 216 SkColor stroke_color) {
217 return new RoundedBackground( 217 return new RoundedBackground(
218 corner_radius, stroke_width, background_color, stroke_color); 218 corner_radius, stroke_width, background_color, stroke_color);
219 } 219 }
220 220
221 } // namespace chromeos 221 } // namespace chromeos
OLDNEW
« no previous file with comments | « ash/app_list/drop_shadow_label.cc ('k') | chrome/browser/download/download_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698