| OLD | NEW |
| 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 UI_AURA_SHELL_IMAGE_GRID_H_ | 5 #ifndef UI_AURA_SHELL_IMAGE_GRID_H_ |
| 6 #define UI_AURA_SHELL_IMAGE_GRID_H_ | 6 #define UI_AURA_SHELL_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 "ui/aura_shell/aura_shell_export.h" |
| 12 #include "ui/gfx/compositor/layer.h" | 13 #include "ui/gfx/compositor/layer.h" |
| 13 #include "ui/gfx/compositor/layer_delegate.h" | 14 #include "ui/gfx/compositor/layer_delegate.h" |
| 14 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
| 15 #include "ui/gfx/size.h" | 16 #include "ui/gfx/size.h" |
| 16 | 17 |
| 17 namespace gfx { | 18 namespace gfx { |
| 18 class Image; | 19 class Image; |
| 19 } // namespace gfx | 20 } // namespace gfx |
| 20 | 21 |
| 21 namespace aura_shell { | 22 namespace aura_shell { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 50 // | ..xxx|XXXXXXXXXXXXXXXXXX | 51 // | ..xxx|XXXXXXXXXXXXXXXXXX |
| 51 // | .xXXXXX|XXXXXXXXXXXXXXXXXX_____ | 52 // | .xXXXXX|XXXXXXXXXXXXXXXXXX_____ |
| 52 // | .xXX | ^ window's top edge | 53 // | .xXX | ^ window's top edge |
| 53 // | .xXX | | 54 // | .xXX | |
| 54 // +---------+ | 55 // +---------+ |
| 55 // | xXX| | 56 // | xXX| |
| 56 // | xXX|< window's left edge | 57 // | xXX|< window's left edge |
| 57 // | xXX| | 58 // | xXX| |
| 58 // ... | 59 // ... |
| 59 // | 60 // |
| 60 class ImageGrid { | 61 class AURA_SHELL_EXPORT ImageGrid { |
| 61 public: | 62 public: |
| 62 // Helper class for use by tests. | 63 // Helper class for use by tests. |
| 63 class TestAPI { | 64 class TestAPI { |
| 64 public: | 65 public: |
| 65 TestAPI(ImageGrid* grid) : grid_(grid) {} | 66 TestAPI(ImageGrid* grid) : grid_(grid) {} |
| 66 ui::Layer* top_left_layer() const { return grid_->top_left_layer_.get(); } | 67 ui::Layer* top_left_layer() const { return grid_->top_left_layer_.get(); } |
| 67 ui::Layer* top_layer() const { return grid_->top_layer_.get(); } | 68 ui::Layer* top_layer() const { return grid_->top_layer_.get(); } |
| 68 ui::Layer* top_right_layer() const { return grid_->top_right_layer_.get(); } | 69 ui::Layer* top_right_layer() const { return grid_->top_right_layer_.get(); } |
| 69 ui::Layer* left_layer() const { return grid_->left_layer_.get(); } | 70 ui::Layer* left_layer() const { return grid_->left_layer_.get(); } |
| 70 ui::Layer* center_layer() const { return grid_->center_layer_.get(); } | 71 ui::Layer* center_layer() const { return grid_->center_layer_.get(); } |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 scoped_ptr<ImagePainter> bottom_painter_; | 179 scoped_ptr<ImagePainter> bottom_painter_; |
| 179 scoped_ptr<ImagePainter> bottom_right_painter_; | 180 scoped_ptr<ImagePainter> bottom_right_painter_; |
| 180 | 181 |
| 181 DISALLOW_COPY_AND_ASSIGN(ImageGrid); | 182 DISALLOW_COPY_AND_ASSIGN(ImageGrid); |
| 182 }; | 183 }; |
| 183 | 184 |
| 184 } // namespace internal | 185 } // namespace internal |
| 185 } // namespace aura_shell | 186 } // namespace aura_shell |
| 186 | 187 |
| 187 #endif // UI_AURA_SHELL_IMAGE_GRID_H_ | 188 #endif // UI_AURA_SHELL_IMAGE_GRID_H_ |
| OLD | NEW |