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

Unified Diff: ui/app_list/app_list_folder_item.h

Issue 136303008: Implement ui for re-parenting an item from an app list folder to another position or folder in the … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. Created 6 years, 10 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 | « ui/app_list/app_list.gyp ('k') | ui/app_list/app_list_folder_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/app_list_folder_item.h
diff --git a/ui/app_list/app_list_folder_item.h b/ui/app_list/app_list_folder_item.h
index 590613aec263fa7eeb6827b79e767d6900f62062..8cc2e65bbc3cec06f349bbfb4ee7fbe48283c0ed 100644
--- a/ui/app_list/app_list_folder_item.h
+++ b/ui/app_list/app_list_folder_item.h
@@ -36,6 +36,15 @@ class APP_LIST_EXPORT AppListFolderItem : public AppListItem,
// Returns the icon of one of the top items with |item_index|.
const gfx::ImageSkia& GetTopIcon(size_t item_index);
+ // Returns the target icon bounds for |item| to fly back to its parent folder
+ // icon in animation UI. If |item| is one of the top item icon, this will
+ // match its corresponding top item icon in the folder icon. Otherwise,
+ // the target icon bounds is centered at the |folder_icon_bounds| with
+ // the same size of the top item icon.
+ // The Rect returned is in the same coordinates of |folder_icon_bounds|.
+ gfx::Rect GetTargetIconRectInFolderForItem(
+ AppListItem* item, const gfx::Rect& folder_icon_bounds);
+
AppListItemList* item_list() { return item_list_.get(); }
const AppListItemList* item_list() const { return item_list_.get(); }
« no previous file with comments | « ui/app_list/app_list.gyp ('k') | ui/app_list/app_list_folder_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698