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

Side by Side Diff: ui/app_list/app_list_model.h

Issue 2787693002: Remove more dead app list code. (Closed)
Patch Set: updated comment Created 3 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
« no previous file with comments | « ui/app_list/app_list_item.cc ('k') | ui/app_list/app_list_model.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/app_list/app_list_item.cc ('k') | ui/app_list/app_list_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698