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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 ash::ShelfID GetShelfIDForAppIDAndLaunchID(const std::string& app_id, | 122 ash::ShelfID GetShelfIDForAppIDAndLaunchID(const std::string& app_id, |
123 const std::string& launch_id); | 123 const std::string& launch_id); |
124 const std::string& GetAppIDForShelfID(ash::ShelfID id); | 124 const std::string& GetAppIDForShelfID(ash::ShelfID id); |
125 void PinAppWithID(const std::string& app_id); | 125 void PinAppWithID(const std::string& app_id); |
126 bool IsAppPinned(const std::string& app_id); | 126 bool IsAppPinned(const std::string& app_id); |
127 void UnpinAppWithID(const std::string& app_id); | 127 void UnpinAppWithID(const std::string& app_id); |
128 | 128 |
129 // LauncherAppUpdater::Delegate: | 129 // LauncherAppUpdater::Delegate: |
130 void OnAppInstalled(content::BrowserContext* browser_context, | 130 void OnAppInstalled(content::BrowserContext* browser_context, |
131 const std::string& app_id) override; | 131 const std::string& app_id) override; |
132 void OnAppUpdated(content::BrowserContext* browser_context, | |
133 const std::string& app_id) override; | |
134 void OnAppUninstalledPrepared(content::BrowserContext* browser_context, | 132 void OnAppUninstalledPrepared(content::BrowserContext* browser_context, |
135 const std::string& app_id) override; | 133 const std::string& app_id) override; |
136 | 134 |
137 protected: | 135 protected: |
138 // ChromeLauncherController: | 136 // ChromeLauncherController: |
139 void OnInit() override; | 137 void OnInit() override; |
140 | 138 |
141 // Creates a new app shortcut item and controller on the shelf at |index|. | 139 // Creates a new app shortcut item and controller on the shelf at |index|. |
142 ash::ShelfID CreateAppShortcutLauncherItem( | 140 ash::ShelfID CreateAppShortcutLauncherItem( |
143 const ash::AppLaunchId& app_launch_id, | 141 const ash::AppLaunchId& app_launch_id, |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 typedef std::vector<std::string> RunningAppListIds; | 275 typedef std::vector<std::string> RunningAppListIds; |
278 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; | 276 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; |
279 RunningAppListIdMap last_used_running_application_order_; | 277 RunningAppListIdMap last_used_running_application_order_; |
280 | 278 |
281 base::WeakPtrFactory<ChromeLauncherControllerImpl> weak_ptr_factory_; | 279 base::WeakPtrFactory<ChromeLauncherControllerImpl> weak_ptr_factory_; |
282 | 280 |
283 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerImpl); | 281 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerImpl); |
284 }; | 282 }; |
285 | 283 |
286 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_ | 284 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_ |
OLD | NEW |