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

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

Issue 237873003: Rename wm_core_export.h to wm_export.h and the wm_core target to just wm (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 8 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/input_method_event_filter.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) 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/wm_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 wm { 21 namespace wm {
22 22
23 // 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.
24 // 24 //
25 // As the grid is resized, its images fill the requested space: 25 // As the grid is resized, its images fill the requested space:
(...skipping 23 matching lines...) Expand all
49 // | ..xxx|XXXXXXXXXXXXXXXXXX 49 // | ..xxx|XXXXXXXXXXXXXXXXXX
50 // | .xXXXXX|XXXXXXXXXXXXXXXXXX_____ 50 // | .xXXXXX|XXXXXXXXXXXXXXXXXX_____
51 // | .xXX | ^ window's top edge 51 // | .xXX | ^ window's top edge
52 // | .xXX | 52 // | .xXX |
53 // +---------+ 53 // +---------+
54 // | xXX| 54 // | xXX|
55 // | xXX|< window's left edge 55 // | xXX|< window's left edge
56 // | xXX| 56 // | xXX|
57 // ... 57 // ...
58 // 58 //
59 class WM_CORE_EXPORT ImageGrid { 59 class WM_EXPORT ImageGrid {
60 public: 60 public:
61 // Helper class for use by tests. 61 // Helper class for use by tests.
62 class WM_CORE_EXPORT TestAPI { 62 class WM_EXPORT TestAPI {
63 public: 63 public:
64 TestAPI(ImageGrid* grid) : grid_(grid) {} 64 TestAPI(ImageGrid* grid) : grid_(grid) {}
65 65
66 gfx::Rect top_left_clip_rect() const { 66 gfx::Rect top_left_clip_rect() const {
67 return grid_->top_left_painter_->clip_rect_; 67 return grid_->top_left_painter_->clip_rect_;
68 } 68 }
69 gfx::Rect top_right_clip_rect() const { 69 gfx::Rect top_right_clip_rect() const {
70 return grid_->top_right_painter_->clip_rect_; 70 return grid_->top_right_painter_->clip_rect_;
71 } 71 }
72 gfx::Rect bottom_left_clip_rect() const { 72 gfx::Rect bottom_left_clip_rect() const {
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 scoped_ptr<ImagePainter> bottom_left_painter_; 217 scoped_ptr<ImagePainter> bottom_left_painter_;
218 scoped_ptr<ImagePainter> bottom_painter_; 218 scoped_ptr<ImagePainter> bottom_painter_;
219 scoped_ptr<ImagePainter> bottom_right_painter_; 219 scoped_ptr<ImagePainter> bottom_right_painter_;
220 220
221 DISALLOW_COPY_AND_ASSIGN(ImageGrid); 221 DISALLOW_COPY_AND_ASSIGN(ImageGrid);
222 }; 222 };
223 223
224 } // namespace wm 224 } // namespace wm
225 225
226 #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/input_method_event_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698