| 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_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 // Returns true if the item identified by |id| is pinned. | 172 // Returns true if the item identified by |id| is pinned. |
| 173 bool IsPinned(ash::ShelfID id); | 173 bool IsPinned(ash::ShelfID id); |
| 174 | 174 |
| 175 // Pins/unpins the specified id. | 175 // Pins/unpins the specified id. |
| 176 void TogglePinned(ash::ShelfID id); | 176 void TogglePinned(ash::ShelfID id); |
| 177 | 177 |
| 178 // Returns true if the specified item can be pinned or unpinned. Only apps can | 178 // Returns true if the specified item can be pinned or unpinned. Only apps can |
| 179 // be pinned. | 179 // be pinned. |
| 180 bool IsPinnable(ash::ShelfID id) const; | 180 bool IsPinnable(ash::ShelfID id) const; |
| 181 | 181 |
| 182 // Installs the specified id. Only valid if the id corresponds to an ephemeral |
| 183 // app. |
| 184 void Install(ash::ShelfID id); |
| 185 |
| 186 // Returns true if the specified item can be installed. Only true for |
| 187 // ephemeral apps. |
| 188 bool CanInstall(ash::ShelfID id); |
| 189 |
| 182 // If there is no shelf item in the shelf for application |app_id|, one | 190 // If there is no shelf item in the shelf for application |app_id|, one |
| 183 // gets created. The (existing or created) shelf items get then locked | 191 // gets created. The (existing or created) shelf items get then locked |
| 184 // against a users un-pinning removal. | 192 // against a users un-pinning removal. |
| 185 void LockV1AppWithID(const std::string& app_id); | 193 void LockV1AppWithID(const std::string& app_id); |
| 186 | 194 |
| 187 // A previously locked shelf item of type |app_id| gets unlocked. If the | 195 // A previously locked shelf item of type |app_id| gets unlocked. If the |
| 188 // lock count reaches 0 and the item is not pinned it will go away. | 196 // lock count reaches 0 and the item is not pinned it will go away. |
| 189 void UnlockV1AppWithID(const std::string& app_id); | 197 void UnlockV1AppWithID(const std::string& app_id); |
| 190 | 198 |
| 191 // Requests that the shelf item controller specified by |id| open a new | 199 // Requests that the shelf item controller specified by |id| open a new |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 // The list of running & un-pinned applications for different users on hidden | 590 // The list of running & un-pinned applications for different users on hidden |
| 583 // desktops. | 591 // desktops. |
| 584 typedef std::vector<std::string> RunningAppListIds; | 592 typedef std::vector<std::string> RunningAppListIds; |
| 585 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; | 593 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; |
| 586 RunningAppListIdMap last_used_running_application_order_; | 594 RunningAppListIdMap last_used_running_application_order_; |
| 587 | 595 |
| 588 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); | 596 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); |
| 589 }; | 597 }; |
| 590 | 598 |
| 591 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ | 599 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ |
| OLD | NEW |