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

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

Issue 11359172: ui: Remove implicit flooring in skia rect conversion methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make root window transform in tests produce an integer result Created 8 years, 1 month 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 | « no previous file | ash/wm/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 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/image_grid.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698