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

Side by Side Diff: ui/app_list/views/app_list_folder_view.h

Issue 1003393002: After uninstall, remove last item in Launcher folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another round of revisions Created 5 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 UI_APP_LIST_VIEWS_APP_LIST_FOLDER_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_FOLDER_VIEW_H_
6 #define UI_APP_LIST_VIEWS_APP_LIST_FOLDER_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_APP_LIST_FOLDER_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ui/app_list/app_list_item_list_observer.h" 10 #include "ui/app_list/app_list_item_list_observer.h"
(...skipping 21 matching lines...) Expand all
32 public AppListModelObserver, 32 public AppListModelObserver,
33 public ui::ImplicitAnimationObserver, 33 public ui::ImplicitAnimationObserver,
34 public AppsGridViewFolderDelegate { 34 public AppsGridViewFolderDelegate {
35 public: 35 public:
36 AppListFolderView(AppsContainerView* container_view, 36 AppListFolderView(AppsContainerView* container_view,
37 AppListModel* model, 37 AppListModel* model,
38 AppListMainView* app_list_main_view); 38 AppListMainView* app_list_main_view);
39 ~AppListFolderView() override; 39 ~AppListFolderView() override;
40 40
41 void SetAppListFolderItem(AppListFolderItem* folder); 41 void SetAppListFolderItem(AppListFolderItem* folder);
42 AppListFolderItem* folder_item() { return folder_item_; }
42 43
43 // Schedules an animation to show or hide the view. 44 // Schedules an animation to show or hide the view.
44 // If |show| is false, the view should be set to invisible after the 45 // If |show| is false, the view should be set to invisible after the
45 // animation is done unless |hide_for_reparent| is true. 46 // animation is done unless |hide_for_reparent| is true.
46 void ScheduleShowHideAnimation(bool show, bool hide_for_reparent); 47 void ScheduleShowHideAnimation(bool show, bool hide_for_reparent);
47 48
48 // Gets icon image bounds of the item at |index|, relative to 49 // Gets icon image bounds of the item at |index|, relative to
49 // AppListFolderView. 50 // AppListFolderView.
50 gfx::Rect GetItemIconBoundsAt(int index); 51 gfx::Rect GetItemIconBoundsAt(int index);
51 52
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 bool hide_for_reparent_; 118 bool hide_for_reparent_;
118 119
119 base::string16 accessible_name_; 120 base::string16 accessible_name_;
120 121
121 DISALLOW_COPY_AND_ASSIGN(AppListFolderView); 122 DISALLOW_COPY_AND_ASSIGN(AppListFolderView);
122 }; 123 };
123 124
124 } // namespace app_list 125 } // namespace app_list
125 126
126 #endif // UI_APP_LIST_VIEWS_APP_LIST_FOLDER_VIEW_H_ 127 #endif // UI_APP_LIST_VIEWS_APP_LIST_FOLDER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698