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 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 private app_list::AppListSyncableService::Observer { | 56 private app_list::AppListSyncableService::Observer { |
57 public: | 57 public: |
58 ChromeLauncherControllerImpl(Profile* profile, ash::ShelfModel* model); | 58 ChromeLauncherControllerImpl(Profile* profile, ash::ShelfModel* model); |
59 ~ChromeLauncherControllerImpl() override; | 59 ~ChromeLauncherControllerImpl() override; |
60 | 60 |
61 // ChromeLauncherController: | 61 // ChromeLauncherController: |
62 void Init() override; | 62 void Init() override; |
63 ash::ShelfID CreateAppLauncherItem(LauncherItemController* controller, | 63 ash::ShelfID CreateAppLauncherItem(LauncherItemController* controller, |
64 const std::string& app_id, | 64 const std::string& app_id, |
65 ash::ShelfItemStatus status) override; | 65 ash::ShelfItemStatus status) override; |
66 const ash::ShelfItem& GetItem(ash::ShelfID id) const override; | 66 const ash::ShelfItem* GetItem(ash::ShelfID id) const override; |
67 void SetItemType(ash::ShelfID id, ash::ShelfItemType type) override; | 67 void SetItemType(ash::ShelfID id, ash::ShelfItemType type) override; |
68 void SetItemStatus(ash::ShelfID id, ash::ShelfItemStatus status) override; | 68 void SetItemStatus(ash::ShelfID id, ash::ShelfItemStatus status) override; |
69 void SetItemController(ash::ShelfID id, | 69 void SetItemController(ash::ShelfID id, |
70 LauncherItemController* controller) override; | 70 LauncherItemController* controller) override; |
71 void CloseLauncherItem(ash::ShelfID id) override; | 71 void CloseLauncherItem(ash::ShelfID id) override; |
72 void Pin(ash::ShelfID id) override; | 72 void Pin(ash::ShelfID id) override; |
73 void Unpin(ash::ShelfID id) override; | 73 void Unpin(ash::ShelfID id) override; |
74 bool IsPinned(ash::ShelfID id) override; | 74 bool IsPinned(ash::ShelfID id) override; |
75 void TogglePinned(ash::ShelfID id) override; | 75 void TogglePinned(ash::ShelfID id) override; |
76 bool IsPinnable(ash::ShelfID id) const override; | 76 bool IsPinnable(ash::ShelfID id) const override; |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 typedef std::vector<std::string> RunningAppListIds; | 308 typedef std::vector<std::string> RunningAppListIds; |
309 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; | 309 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; |
310 RunningAppListIdMap last_used_running_application_order_; | 310 RunningAppListIdMap last_used_running_application_order_; |
311 | 311 |
312 base::WeakPtrFactory<ChromeLauncherControllerImpl> weak_ptr_factory_; | 312 base::WeakPtrFactory<ChromeLauncherControllerImpl> weak_ptr_factory_; |
313 | 313 |
314 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerImpl); | 314 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerImpl); |
315 }; | 315 }; |
316 | 316 |
317 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_ | 317 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_ |
OLD | NEW |