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 CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_PER_BROWSER_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_PER_BROWSER_H_ |
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_PER_BROWSER_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_PER_BROWSER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // Returns true if the item identified by |id| is pinned. | 111 // Returns true if the item identified by |id| is pinned. |
112 virtual bool IsPinned(ash::LauncherID id) OVERRIDE; | 112 virtual bool IsPinned(ash::LauncherID id) OVERRIDE; |
113 | 113 |
114 // Pins/unpins the specified id. | 114 // Pins/unpins the specified id. |
115 virtual void TogglePinned(ash::LauncherID id) OVERRIDE; | 115 virtual void TogglePinned(ash::LauncherID id) OVERRIDE; |
116 | 116 |
117 // Returns true if the specified item can be pinned or unpinned. Only apps can | 117 // Returns true if the specified item can be pinned or unpinned. Only apps can |
118 // be pinned. | 118 // be pinned. |
119 virtual bool IsPinnable(ash::LauncherID id) const OVERRIDE; | 119 virtual bool IsPinnable(ash::LauncherID id) const OVERRIDE; |
120 | 120 |
| 121 // If there is no launcher item in the launcher for application |app_id|, one |
| 122 // gets created. The (existing or created) launcher items get then locked |
| 123 // against a users un-pinning removal. |
| 124 virtual void LockV1AppWithID(const std::string& app_id) OVERRIDE; |
| 125 |
| 126 // A previously locked launcher item of type |app_id| gets unlocked. If the |
| 127 // lock count reaches 0 and the item is not pinned it will go away. |
| 128 virtual void UnlockV1AppWithID(const std::string& app_id) OVERRIDE; |
| 129 |
121 // Requests that the launcher item controller specified by |id| open a new | 130 // Requests that the launcher item controller specified by |id| open a new |
122 // instance of the app. |event_flags| holds the flags of the event which | 131 // instance of the app. |event_flags| holds the flags of the event which |
123 // triggered this command. | 132 // triggered this command. |
124 virtual void Launch(ash::LauncherID id, int event_flags) OVERRIDE; | 133 virtual void Launch(ash::LauncherID id, int event_flags) OVERRIDE; |
125 | 134 |
126 // Closes the specified item. | 135 // Closes the specified item. |
127 virtual void Close(ash::LauncherID id) OVERRIDE; | 136 virtual void Close(ash::LauncherID id) OVERRIDE; |
128 | 137 |
129 // Returns true if the specified item is open. | 138 // Returns true if the specified item is open. |
130 virtual bool IsOpen(ash::LauncherID id) OVERRIDE; | 139 virtual bool IsOpen(ash::LauncherID id) OVERRIDE; |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 PrefChangeRegistrar pref_change_registrar_; | 372 PrefChangeRegistrar pref_change_registrar_; |
364 | 373 |
365 AppSyncUIState* app_sync_ui_state_; | 374 AppSyncUIState* app_sync_ui_state_; |
366 | 375 |
367 scoped_ptr<ExtensionEnableFlow> extension_enable_flow_; | 376 scoped_ptr<ExtensionEnableFlow> extension_enable_flow_; |
368 | 377 |
369 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerPerBrowser); | 378 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerPerBrowser); |
370 }; | 379 }; |
371 | 380 |
372 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_PER_BROWSER
_H_ | 381 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_PER_BROWSER
_H_ |
OLD | NEW |