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

Side by Side Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h

Issue 2317523003: [Merge-M54] arc: Don't sync app list change caused by Arc opt out. (Closed)
Patch Set: Created 4 years, 3 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 CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 const std::string& app_id, 203 const std::string& app_id,
204 int index, 204 int index,
205 ash::ShelfItemType shelf_item_type); 205 ash::ShelfItemType shelf_item_type);
206 206
207 // Invoked when the associated browser or app is closed. 207 // Invoked when the associated browser or app is closed.
208 void LauncherItemClosed(ash::ShelfID id); 208 void LauncherItemClosed(ash::ShelfID id);
209 209
210 // Internal helpers for pinning and unpinning that handle both 210 // Internal helpers for pinning and unpinning that handle both
211 // client-triggered and internal pinning operations. 211 // client-triggered and internal pinning operations.
212 void DoPinAppWithID(const std::string& app_id); 212 void DoPinAppWithID(const std::string& app_id);
213 void DoUnpinAppWithID(const std::string& app_id); 213 void DoUnpinAppWithID(const std::string& app_id, bool update_prefs);
214 214
215 // Pin a running app with |shelf_id| internally to |index|. It returns 215 // Pin a running app with |shelf_id| internally to |index|. It returns
216 // the index where the item was pinned. 216 // the index where the item was pinned.
217 int PinRunningAppInternal(int index, ash::ShelfID shelf_id); 217 int PinRunningAppInternal(int index, ash::ShelfID shelf_id);
218 218
219 // Unpin a locked application. This is an internal call which converts the 219 // Unpin a locked application. This is an internal call which converts the
220 // model type of the given app index from a shortcut into an unpinned running 220 // model type of the given app index from a shortcut into an unpinned running
221 // app. 221 // app.
222 void UnpinRunningAppInternal(int index); 222 void UnpinRunningAppInternal(int index);
223 223
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 // AppSyncUIStateObserver: 301 // AppSyncUIStateObserver:
302 void OnAppSyncUIStatusChanged() override; 302 void OnAppSyncUIStatusChanged() override;
303 303
304 // AppIconLoaderDelegate: 304 // AppIconLoaderDelegate:
305 void OnAppImageUpdated(const std::string& app_id, 305 void OnAppImageUpdated(const std::string& app_id,
306 const gfx::ImageSkia& image) override; 306 const gfx::ImageSkia& image) override;
307 307
308 // app_list::AppListSyncableService::Observer: 308 // app_list::AppListSyncableService::Observer:
309 void OnSyncModelUpdated() override; 309 void OnSyncModelUpdated() override;
310 310
311 // Unpins shelf item and optionally updates pin prefs when |update_prefs| is
312 // set to true.
313 void UnpinAndUpdatePrefs(ash::ShelfID id, bool update_prefs);
314
311 ash::ShelfModel* model_; 315 ash::ShelfModel* model_;
312 316
313 // Profile used for prefs and loading extensions. This is NOT necessarily the 317 // Profile used for prefs and loading extensions. This is NOT necessarily the
314 // profile new windows are created with. 318 // profile new windows are created with.
315 Profile* profile_; 319 Profile* profile_;
316 320
317 // Controller items in this map are owned by |ShelfModel|. 321 // Controller items in this map are owned by |ShelfModel|.
318 IDToItemControllerMap id_to_item_controller_map_; 322 IDToItemControllerMap id_to_item_controller_map_;
319 323
320 // Direct access to app_id for a web contents. 324 // Direct access to app_id for a web contents.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 // The list of running & un-pinned applications for different users on hidden 358 // The list of running & un-pinned applications for different users on hidden
355 // desktops. 359 // desktops.
356 typedef std::vector<std::string> RunningAppListIds; 360 typedef std::vector<std::string> RunningAppListIds;
357 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; 361 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap;
358 RunningAppListIdMap last_used_running_application_order_; 362 RunningAppListIdMap last_used_running_application_order_;
359 363
360 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerImpl); 364 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerImpl);
361 }; 365 };
362 366
363 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_ 367 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698