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

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

Issue 196063002: Move wm/core to wm namespace. (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
« no previous file with comments | « ui/wm/core/focus_rules.h ('k') | ui/wm/core/image_grid.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 #ifndef UI_WM_CORE_IMAGE_GRID_H_ 5 #ifndef UI_WM_CORE_IMAGE_GRID_H_
6 #define UI_WM_CORE_IMAGE_GRID_H_ 6 #define UI_WM_CORE_IMAGE_GRID_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "ui/compositor/layer.h" 11 #include "ui/compositor/layer.h"
12 #include "ui/compositor/layer_delegate.h" 12 #include "ui/compositor/layer_delegate.h"
13 #include "ui/gfx/rect.h" 13 #include "ui/gfx/rect.h"
14 #include "ui/gfx/size.h" 14 #include "ui/gfx/size.h"
15 #include "ui/wm/core/wm_core_export.h" 15 #include "ui/wm/core/wm_core_export.h"
16 16
17 namespace gfx { 17 namespace gfx {
18 class Image; 18 class Image;
19 } // namespace gfx 19 } // namespace gfx
20 20
21 namespace views { 21 namespace wm {
22 namespace corewm {
23 22
24 // An ImageGrid is a 3x3 array of ui::Layers, each containing an image. 23 // An ImageGrid is a 3x3 array of ui::Layers, each containing an image.
25 // 24 //
26 // As the grid is resized, its images fill the requested space: 25 // As the grid is resized, its images fill the requested space:
27 // - corner images are not scaled 26 // - corner images are not scaled
28 // - top and bottom images are scaled horizontally 27 // - top and bottom images are scaled horizontally
29 // - left and right images are scaled vertically 28 // - left and right images are scaled vertically
30 // - the center image is scaled in both directions 29 // - the center image is scaled in both directions
31 // 30 //
32 // If one of the non-center images is smaller than the largest images in its 31 // If one of the non-center images is smaller than the largest images in its
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 scoped_ptr<ImagePainter> left_painter_; 214 scoped_ptr<ImagePainter> left_painter_;
216 scoped_ptr<ImagePainter> center_painter_; 215 scoped_ptr<ImagePainter> center_painter_;
217 scoped_ptr<ImagePainter> right_painter_; 216 scoped_ptr<ImagePainter> right_painter_;
218 scoped_ptr<ImagePainter> bottom_left_painter_; 217 scoped_ptr<ImagePainter> bottom_left_painter_;
219 scoped_ptr<ImagePainter> bottom_painter_; 218 scoped_ptr<ImagePainter> bottom_painter_;
220 scoped_ptr<ImagePainter> bottom_right_painter_; 219 scoped_ptr<ImagePainter> bottom_right_painter_;
221 220
222 DISALLOW_COPY_AND_ASSIGN(ImageGrid); 221 DISALLOW_COPY_AND_ASSIGN(ImageGrid);
223 }; 222 };
224 223
225 } // namespace corewm 224 } // namespace wm
226 } // namespace views
227 225
228 #endif // UI_WM_CORE_IMAGE_GRID_H_ 226 #endif // UI_WM_CORE_IMAGE_GRID_H_
OLDNEW
« no previous file with comments | « ui/wm/core/focus_rules.h ('k') | ui/wm/core/image_grid.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698