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

Unified Diff: ui/app_list/views/apps_grid_view.h

Issue 553763002: Clean up of tile sizing code for the Apps Grid View. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ares_fix_drag_point
Patch Set: oopz Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/app_list/views/apps_grid_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/apps_grid_view.h
diff --git a/ui/app_list/views/apps_grid_view.h b/ui/app_list/views/apps_grid_view.h
index 17cb798b419876e5027def13d2faa6bae67c76c5..f509284b54e61b51c504acf79ee89fda1b968f8c 100644
--- a/ui/app_list/views/apps_grid_view.h
+++ b/ui/app_list/views/apps_grid_view.h
@@ -405,8 +405,12 @@ class APP_LIST_EXPORT AppsGridView : public views::View,
// is a valid item sits on the tile.
gfx::Rect GetTileBoundsForPoint(const gfx::Point& point, Index* tile_index);
- // Gets the bounds of the tile located at |row| and |col| on current page.
- gfx::Rect GetTileBounds(int row, int col) const;
+ // Returns the size of the entire tile grid.
+ gfx::Size GetTileGridSize() const;
+
+ // Gets the expected bounds of a tile located at |row| and |col| on the
+ // current page.
+ gfx::Rect GetExpectedTileBounds(int row, int col) const;
// Returns true if the slot of |index| is the last possible slot to drop
// an item, i.e. first empty slot next to the last item on the last page.
« no previous file with comments | « no previous file | ui/app_list/views/apps_grid_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698