| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |