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

Side by Side Diff: ash/wm/image_grid.h

Issue 9033007: Rename the aura_shell namespace to ash (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
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 #ifndef ASH_WM_IMAGE_GRID_H_ 5 #ifndef ASH_WM_IMAGE_GRID_H_
6 #define ASH_WM_IMAGE_GRID_H_ 6 #define ASH_WM_IMAGE_GRID_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "ash/ash_export.h" 12 #include "ash/ash_export.h"
13 #include "ui/gfx/compositor/layer.h" 13 #include "ui/gfx/compositor/layer.h"
14 #include "ui/gfx/compositor/layer_delegate.h" 14 #include "ui/gfx/compositor/layer_delegate.h"
15 #include "ui/gfx/rect.h" 15 #include "ui/gfx/rect.h"
16 #include "ui/gfx/size.h" 16 #include "ui/gfx/size.h"
17 17
18 namespace gfx { 18 namespace gfx {
19 class Image; 19 class Image;
20 } // namespace gfx 20 } // namespace gfx
21 21
22 namespace aura_shell { 22 namespace ash {
23 namespace internal { 23 namespace internal {
24 24
25 // An ImageGrid is a 3x3 array of ui::Layers, each containing an image. 25 // An ImageGrid is a 3x3 array of ui::Layers, each containing an image.
26 // 26 //
27 // As the grid is resized, its images fill the requested space: 27 // As the grid is resized, its images fill the requested space:
28 // - corner images are not scaled 28 // - corner images are not scaled
29 // - top and bottom images are scaled horizontally 29 // - top and bottom images are scaled horizontally
30 // - left and right images are scaled vertically 30 // - left and right images are scaled vertically
31 // - the center image is scaled in both directions 31 // - the center image is scaled in both directions
32 // 32 //
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 scoped_ptr<ImagePainter> center_painter_; 200 scoped_ptr<ImagePainter> center_painter_;
201 scoped_ptr<ImagePainter> right_painter_; 201 scoped_ptr<ImagePainter> right_painter_;
202 scoped_ptr<ImagePainter> bottom_left_painter_; 202 scoped_ptr<ImagePainter> bottom_left_painter_;
203 scoped_ptr<ImagePainter> bottom_painter_; 203 scoped_ptr<ImagePainter> bottom_painter_;
204 scoped_ptr<ImagePainter> bottom_right_painter_; 204 scoped_ptr<ImagePainter> bottom_right_painter_;
205 205
206 DISALLOW_COPY_AND_ASSIGN(ImageGrid); 206 DISALLOW_COPY_AND_ASSIGN(ImageGrid);
207 }; 207 };
208 208
209 } // namespace internal 209 } // namespace internal
210 } // namespace aura_shell 210 } // namespace ash
211 211
212 #endif // ASH_WM_IMAGE_GRID_H_ 212 #endif // ASH_WM_IMAGE_GRID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698