| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 const std::string& app_id, | 129 const std::string& app_id, |
| 130 const std::string& launch_id) override; | 130 const std::string& launch_id) override; |
| 131 const std::string& GetAppIDForShelfID(ash::ShelfID id) override; | 131 const std::string& GetAppIDForShelfID(ash::ShelfID id) override; |
| 132 void PinAppWithID(const std::string& app_id) override; | 132 void PinAppWithID(const std::string& app_id) override; |
| 133 bool IsAppPinned(const std::string& app_id) override; | 133 bool IsAppPinned(const std::string& app_id) override; |
| 134 void UnpinAppWithID(const std::string& app_id) override; | 134 void UnpinAppWithID(const std::string& app_id) override; |
| 135 | 135 |
| 136 // LauncherAppUpdater::Delegate: | 136 // LauncherAppUpdater::Delegate: |
| 137 void OnAppInstalled(content::BrowserContext* browser_context, | 137 void OnAppInstalled(content::BrowserContext* browser_context, |
| 138 const std::string& app_id) override; | 138 const std::string& app_id) override; |
| 139 void OnAppUpdated(content::BrowserContext* browser_context, | |
| 140 const std::string& app_id) override; | |
| 141 void OnAppUninstalledPrepared(content::BrowserContext* browser_context, | 139 void OnAppUninstalledPrepared(content::BrowserContext* browser_context, |
| 142 const std::string& app_id) override; | 140 const std::string& app_id) override; |
| 143 | 141 |
| 144 protected: | 142 protected: |
| 145 // ChromeLauncherController: | 143 // ChromeLauncherController: |
| 146 void OnInit() override; | 144 void OnInit() override; |
| 147 | 145 |
| 148 // Creates a new app shortcut item and controller on the shelf at |index|. | 146 // Creates a new app shortcut item and controller on the shelf at |index|. |
| 149 ash::ShelfID CreateAppShortcutLauncherItem( | 147 ash::ShelfID CreateAppShortcutLauncherItem( |
| 150 const ash::AppLaunchId& app_launch_id, | 148 const ash::AppLaunchId& app_launch_id, |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 typedef std::vector<std::string> RunningAppListIds; | 282 typedef std::vector<std::string> RunningAppListIds; |
| 285 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; | 283 typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap; |
| 286 RunningAppListIdMap last_used_running_application_order_; | 284 RunningAppListIdMap last_used_running_application_order_; |
| 287 | 285 |
| 288 base::WeakPtrFactory<ChromeLauncherControllerImpl> weak_ptr_factory_; | 286 base::WeakPtrFactory<ChromeLauncherControllerImpl> weak_ptr_factory_; |
| 289 | 287 |
| 290 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerImpl); | 288 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerImpl); |
| 291 }; | 289 }; |
| 292 | 290 |
| 293 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_ | 291 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_IMPL_H_ |
| OLD | NEW |