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

Side by Side Diff: ui/wm/core/image_grid.cc

Issue 194843004: Move files from ui/views/corewm to ui/wm/core (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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
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 "ui/views/corewm/image_grid.h" 5 #include "ui/wm/core/image_grid.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "third_party/skia/include/core/SkColor.h" 9 #include "third_party/skia/include/core/SkColor.h"
10 #include "third_party/skia/include/core/SkXfermode.h" 10 #include "third_party/skia/include/core/SkXfermode.h"
11 #include "ui/compositor/dip_util.h" 11 #include "ui/compositor/dip_util.h"
12 #include "ui/gfx/canvas.h" 12 #include "ui/gfx/canvas.h"
13 #include "ui/gfx/image/image.h" 13 #include "ui/gfx/image/image.h"
14 #include "ui/gfx/rect.h" 14 #include "ui/gfx/rect.h"
15 #include "ui/gfx/rect_conversions.h" 15 #include "ui/gfx/rect_conversions.h"
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 ui::Layer* layer, 299 ui::Layer* layer,
300 gfx::Transform& transform) { 300 gfx::Transform& transform) {
301 int layer_height = ConvertSizeToPixel(layer, 301 int layer_height = ConvertSizeToPixel(layer,
302 layer->bounds().size()).height(); 302 layer->bounds().size()).height();
303 float scale = static_cast<float>(center.height()) / layer_height; 303 float scale = static_cast<float>(center.height()) / layer_height;
304 transform.Scale(1.0, scale); 304 transform.Scale(1.0, scale);
305 } 305 }
306 306
307 } // namespace corewm 307 } // namespace corewm
308 } // namespace views 308 } // namespace views
OLDNEW
« ui/views/DEPS ('K') | « ui/wm/core/image_grid.h ('k') | ui/wm/core/image_grid_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698