| OLD | NEW |
| 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 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 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 return grid_->top_right_painter_->clip_rect_; | 71 return grid_->top_right_painter_->clip_rect_; |
| 72 } | 72 } |
| 73 gfx::Rect bottom_left_clip_rect() const { | 73 gfx::Rect bottom_left_clip_rect() const { |
| 74 return grid_->bottom_left_painter_->clip_rect_; | 74 return grid_->bottom_left_painter_->clip_rect_; |
| 75 } | 75 } |
| 76 gfx::Rect bottom_right_clip_rect() const { | 76 gfx::Rect bottom_right_clip_rect() const { |
| 77 return grid_->bottom_right_painter_->clip_rect_; | 77 return grid_->bottom_right_painter_->clip_rect_; |
| 78 } | 78 } |
| 79 | 79 |
| 80 // Returns |layer|'s bounds after applying the layer's current transform. | 80 // Returns |layer|'s bounds after applying the layer's current transform. |
| 81 gfx::Rect GetTransformedLayerBounds(const ui::Layer& layer); | 81 gfx::RectF GetTransformedLayerBounds(const ui::Layer& layer); |
| 82 | 82 |
| 83 private: | 83 private: |
| 84 ImageGrid* grid_; // not owned | 84 ImageGrid* grid_; // not owned |
| 85 | 85 |
| 86 DISALLOW_COPY_AND_ASSIGN(TestAPI); | 86 DISALLOW_COPY_AND_ASSIGN(TestAPI); |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 ImageGrid(); | 89 ImageGrid(); |
| 90 ~ImageGrid(); | 90 ~ImageGrid(); |
| 91 | 91 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 scoped_ptr<ImagePainter> bottom_painter_; | 209 scoped_ptr<ImagePainter> bottom_painter_; |
| 210 scoped_ptr<ImagePainter> bottom_right_painter_; | 210 scoped_ptr<ImagePainter> bottom_right_painter_; |
| 211 | 211 |
| 212 DISALLOW_COPY_AND_ASSIGN(ImageGrid); | 212 DISALLOW_COPY_AND_ASSIGN(ImageGrid); |
| 213 }; | 213 }; |
| 214 | 214 |
| 215 } // namespace internal | 215 } // namespace internal |
| 216 } // namespace ash | 216 } // namespace ash |
| 217 | 217 |
| 218 #endif // ASH_WM_IMAGE_GRID_H_ | 218 #endif // ASH_WM_IMAGE_GRID_H_ |
| OLD | NEW |