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

Side by Side Diff: chrome/browser/chromeos/login/username_view.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
« no previous file with comments | « chrome/browser/chromeos/login/user_view.cc ('k') | chrome/browser/chromeos/login/view_screen.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/username_view.h" 5 #include "chrome/browser/chromeos/login/username_view.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/chromeos/login/rounded_view.h" 9 #include "chrome/browser/chromeos/login/rounded_view.h"
10 #include "gfx/canvas.h"
11 #include "gfx/canvas_skia.h"
12 #include "gfx/gtk_util.h"
13 #include "gfx/rect.h"
14 #include "third_party/skia/include/core/SkColorShader.h" 10 #include "third_party/skia/include/core/SkColorShader.h"
15 #include "third_party/skia/include/core/SkComposeShader.h" 11 #include "third_party/skia/include/core/SkComposeShader.h"
16 #include "third_party/skia/include/effects/SkGradientShader.h" 12 #include "third_party/skia/include/effects/SkGradientShader.h"
13 #include "ui/gfx/canvas.h"
14 #include "ui/gfx/canvas_skia.h"
15 #include "ui/gfx/gtk_util.h"
16 #include "ui/gfx/rect.h"
17 17
18 namespace chromeos { 18 namespace chromeos {
19 19
20 namespace { 20 namespace {
21 // Username label background color. 21 // Username label background color.
22 const SkColor kLabelBackgoundColor = 0x55000000; 22 const SkColor kLabelBackgoundColor = 0x55000000;
23 // Holds margin to height ratio. 23 // Holds margin to height ratio.
24 const double kMarginRatio = 1.0 / 3.0; 24 const double kMarginRatio = 1.0 / 3.0;
25 // Holds the frame width for the small shaped username view. 25 // Holds the frame width for the small shaped username view.
26 const SkScalar kSmallShapeFrameWidth = SkIntToScalar(1); 26 const SkScalar kSmallShapeFrameWidth = SkIntToScalar(1);
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 image_shader->unref(); 176 image_shader->unref();
177 177
178 SkPaint paint; 178 SkPaint paint;
179 paint.setShader(composite_shader)->unref(); 179 paint.setShader(composite_shader)->unref();
180 canvas.drawPaint(paint); 180 canvas.drawPaint(paint);
181 text_image_.reset(new SkBitmap(canvas.ExtractBitmap())); 181 text_image_.reset(new SkBitmap(canvas.ExtractBitmap()));
182 } 182 }
183 } 183 }
184 184
185 } // namespace chromeos 185 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/user_view.cc ('k') | chrome/browser/chromeos/login/view_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698