| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_MODEL_H_ | 5 #ifndef UI_APP_LIST_APP_LIST_MODEL_H_ |
| 6 #define UI_APP_LIST_APP_LIST_MODEL_H_ | 6 #define UI_APP_LIST_APP_LIST_MODEL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 const std::string& short_name); | 124 const std::string& short_name); |
| 125 | 125 |
| 126 // Deletes the item matching |id| from |top_level_item_list_| or from the | 126 // Deletes the item matching |id| from |top_level_item_list_| or from the |
| 127 // appropriate folder. | 127 // appropriate folder. |
| 128 void DeleteItem(const std::string& id); | 128 void DeleteItem(const std::string& id); |
| 129 | 129 |
| 130 // Wrapper around DeleteItem() which will also clean up if its parent folder | 130 // Wrapper around DeleteItem() which will also clean up if its parent folder |
| 131 // has a single child left. | 131 // has a single child left. |
| 132 void DeleteUninstalledItem(const std::string& id); | 132 void DeleteUninstalledItem(const std::string& id); |
| 133 | 133 |
| 134 // Call OnExtensionPreferenceChanged() for all items in the model. | |
| 135 void NotifyExtensionPreferenceChanged(); | |
| 136 | |
| 137 // Sets whether or not the folder UI should be enabled. If |folders_enabled| | 134 // Sets whether or not the folder UI should be enabled. If |folders_enabled| |
| 138 // is false, removes any non-OEM folders. | 135 // is false, removes any non-OEM folders. |
| 139 void SetFoldersEnabled(bool folders_enabled); | 136 void SetFoldersEnabled(bool folders_enabled); |
| 140 | 137 |
| 141 // Sets whether or not the custom launcher page should be enabled. | 138 // Sets whether or not the custom launcher page should be enabled. |
| 142 void SetCustomLauncherPageEnabled(bool enabled); | 139 void SetCustomLauncherPageEnabled(bool enabled); |
| 143 bool custom_launcher_page_enabled() const { | 140 bool custom_launcher_page_enabled() const { |
| 144 return custom_launcher_page_enabled_; | 141 return custom_launcher_page_enabled_; |
| 145 } | 142 } |
| 146 | 143 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 | 228 |
| 232 // The current number of subpages the custom launcher page has pushed. | 229 // The current number of subpages the custom launcher page has pushed. |
| 233 int custom_launcher_page_subpage_depth_; | 230 int custom_launcher_page_subpage_depth_; |
| 234 | 231 |
| 235 DISALLOW_COPY_AND_ASSIGN(AppListModel); | 232 DISALLOW_COPY_AND_ASSIGN(AppListModel); |
| 236 }; | 233 }; |
| 237 | 234 |
| 238 } // namespace app_list | 235 } // namespace app_list |
| 239 | 236 |
| 240 #endif // UI_APP_LIST_APP_LIST_MODEL_H_ | 237 #endif // UI_APP_LIST_APP_LIST_MODEL_H_ |
| OLD | NEW |