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

Side by Side Diff: views/painter.cc

Issue 1132006: Move app/gfx/canvas and app/gfx/font to gfx/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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 | « views/drag_utils_win.cc ('k') | views/view.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "views/painter.h" 5 #include "views/painter.h"
6 6
7 #include "app/gfx/canvas.h"
8 #include "app/resource_bundle.h" 7 #include "app/resource_bundle.h"
9 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "gfx/canvas.h"
10 #include "gfx/insets.h" 10 #include "gfx/insets.h"
11 #include "third_party/skia/include/core/SkBitmap.h" 11 #include "third_party/skia/include/core/SkBitmap.h"
12 #include "third_party/skia/include/effects/SkGradientShader.h" 12 #include "third_party/skia/include/effects/SkGradientShader.h"
13 13
14 namespace views { 14 namespace views {
15 15
16 namespace { 16 namespace {
17 17
18 class GradientPainter : public Painter { 18 class GradientPainter : public Painter {
19 public: 19 public:
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 canvas->DrawBitmapInt(*images_[LEFT], 0, 0); 187 canvas->DrawBitmapInt(*images_[LEFT], 0, 0);
188 canvas->DrawBitmapInt(*images_[RIGHT], w - images_[RIGHT]->width(), 0); 188 canvas->DrawBitmapInt(*images_[RIGHT], w - images_[RIGHT]->width(), 0);
189 canvas->TileImageInt(*images_[CENTER], 189 canvas->TileImageInt(*images_[CENTER],
190 images_[LEFT]->width(), 190 images_[LEFT]->width(),
191 0, 191 0,
192 w - images_[LEFT]->width() - images_[RIGHT]->width(), 192 w - images_[LEFT]->width() - images_[RIGHT]->width(),
193 height_); 193 height_);
194 } 194 }
195 195
196 } // namespace views 196 } // namespace views
OLDNEW
« no previous file with comments | « views/drag_utils_win.cc ('k') | views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698