| 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_APP_LIST_FOLDER_ITEM_H_ | 5 #ifndef UI_APP_LIST_APP_LIST_FOLDER_ITEM_H_ |
| 6 #define UI_APP_LIST_APP_LIST_FOLDER_ITEM_H_ | 6 #define UI_APP_LIST_APP_LIST_FOLDER_ITEM_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 const FolderImage& folder_image() const { return folder_image_; } | 62 const FolderImage& folder_image() const { return folder_image_; } |
| 63 | 63 |
| 64 FolderType folder_type() const { return folder_type_; } | 64 FolderType folder_type() const { return folder_type_; } |
| 65 | 65 |
| 66 // AppListItem overrides: | 66 // AppListItem overrides: |
| 67 void Activate(int event_flags) override; | 67 void Activate(int event_flags) override; |
| 68 const char* GetItemType() const override; | 68 const char* GetItemType() const override; |
| 69 ui::MenuModel* GetContextMenuModel() override; | 69 ui::MenuModel* GetContextMenuModel() override; |
| 70 AppListItem* FindChildItem(const std::string& id) override; | 70 AppListItem* FindChildItem(const std::string& id) override; |
| 71 size_t ChildItemCount() const override; | 71 size_t ChildItemCount() const override; |
| 72 void OnExtensionPreferenceChanged() override; | |
| 73 bool CompareForTest(const AppListItem* other) const override; | 72 bool CompareForTest(const AppListItem* other) const override; |
| 74 | 73 |
| 75 // Returns an id for a new folder. | 74 // Returns an id for a new folder. |
| 76 static std::string GenerateId(); | 75 static std::string GenerateId(); |
| 77 | 76 |
| 78 // FolderImageObserver overrides: | 77 // FolderImageObserver overrides: |
| 79 void OnFolderImageUpdated() override; | 78 void OnFolderImageUpdated() override; |
| 80 | 79 |
| 81 private: | 80 private: |
| 82 // The type of folder; may affect behavior of folder views. | 81 // The type of folder; may affect behavior of folder views. |
| 83 const FolderType folder_type_; | 82 const FolderType folder_type_; |
| 84 | 83 |
| 85 // List of items in the folder. | 84 // List of items in the folder. |
| 86 std::unique_ptr<AppListItemList> item_list_; | 85 std::unique_ptr<AppListItemList> item_list_; |
| 87 | 86 |
| 88 FolderImage folder_image_; | 87 FolderImage folder_image_; |
| 89 | 88 |
| 90 DISALLOW_COPY_AND_ASSIGN(AppListFolderItem); | 89 DISALLOW_COPY_AND_ASSIGN(AppListFolderItem); |
| 91 }; | 90 }; |
| 92 | 91 |
| 93 } // namespace app_list | 92 } // namespace app_list |
| 94 | 93 |
| 95 #endif // UI_APP_LIST_APP_LIST_FOLDER_ITEM_H_ | 94 #endif // UI_APP_LIST_APP_LIST_FOLDER_ITEM_H_ |
| OLD | NEW |