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

Side by Side Diff: ui/views/painter.cc

Issue 8771006: views: Move the remaining file from views/ to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | « ui/views/painter.h ('k') | ui/views/repeat_controller.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) 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 "views/painter.h" 5 #include "ui/views/painter.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "third_party/skia/include/core/SkBitmap.h" 8 #include "third_party/skia/include/core/SkBitmap.h"
9 #include "third_party/skia/include/effects/SkGradientShader.h" 9 #include "third_party/skia/include/effects/SkGradientShader.h"
10 #include "ui/base/resource/resource_bundle.h" 10 #include "ui/base/resource/resource_bundle.h"
11 #include "ui/gfx/canvas.h" 11 #include "ui/gfx/canvas.h"
12 #include "ui/gfx/canvas_skia.h" 12 #include "ui/gfx/canvas_skia.h"
13 #include "ui/gfx/insets.h" 13 #include "ui/gfx/insets.h"
14 #include "ui/gfx/point.h" 14 #include "ui/gfx/point.h"
15 15
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 canvas->DrawBitmapInt(*images_[LEFT], 0, 0); 190 canvas->DrawBitmapInt(*images_[LEFT], 0, 0);
191 canvas->DrawBitmapInt(*images_[RIGHT], w - images_[RIGHT]->width(), 0); 191 canvas->DrawBitmapInt(*images_[RIGHT], w - images_[RIGHT]->width(), 0);
192 canvas->TileImageInt(*images_[CENTER], 192 canvas->TileImageInt(*images_[CENTER],
193 images_[LEFT]->width(), 193 images_[LEFT]->width(),
194 0, 194 0,
195 w - images_[LEFT]->width() - images_[RIGHT]->width(), 195 w - images_[LEFT]->width() - images_[RIGHT]->width(),
196 height_); 196 height_);
197 } 197 }
198 198
199 } // namespace views 199 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/painter.h ('k') | ui/views/repeat_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698