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

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

Issue 140203003: Implement animation UI for opening/closing an app list folder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address code review comments. Created 6 years, 11 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_folder_item.cc ('k') | ui/app_list/views/app_list_folder_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/app_list_folder_view.h
diff --git a/ui/app_list/views/app_list_folder_view.h b/ui/app_list/views/app_list_folder_view.h
index 85400696bfbf578baa3e846f1a8b200f7f33590d..151054c06aed2834b5b4c6d401da6f5e8af5ef65 100644
--- a/ui/app_list/views/app_list_folder_view.h
+++ b/ui/app_list/views/app_list_folder_view.h
@@ -7,6 +7,7 @@
#include "ui/app_list/views/folder_header_view.h"
#include "ui/app_list/views/folder_header_view_delegate.h"
+#include "ui/compositor/layer_animation_observer.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/view.h"
@@ -29,7 +30,8 @@ class FolderHeaderView;
class PaginationModel;
class AppListFolderView : public views::View,
- public FolderHeaderViewDelegate {
+ public FolderHeaderViewDelegate,
+ public ui::ImplicitAnimationObserver {
public:
AppListFolderView(AppsContainerView* container_view,
AppListModel* model,
@@ -39,11 +41,21 @@ class AppListFolderView : public views::View,
void SetAppListFolderItem(AppListFolderItem* folder);
- // Overridden from views::View:
+ // Schedules an animation to show or hide the view.
+ void ScheduleShowHideAnimation(bool show);
+
+ // Gets icon image bounds of the item at |index|, relative to
+ // AppListFolderView.
+ gfx::Rect GetItemIconBoundsAt(int index);
+
+ // views::View overrides:
virtual gfx::Size GetPreferredSize() OVERRIDE;
virtual void Layout() OVERRIDE;
virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE;
+ // ui::ImplicitAnimationObserver overrides:
+ virtual void OnImplicitAnimationsCompleted() OVERRIDE;
+
private:
void CalculateIdealBounds();
« no previous file with comments | « ui/app_list/app_list_folder_item.cc ('k') | ui/app_list/views/app_list_folder_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698