| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_ASH_APP_LIST_APP_LIST_CONTROLLER_H_ | |
| 6 #define CHROME_BROWSER_UI_ASH_APP_LIST_APP_LIST_CONTROLLER_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 class Profile; | |
| 11 | |
| 12 // Interface to allow the view delegate to call out to whatever is controlling | |
| 13 // the app list. This will have different implementations for different | |
| 14 // platforms. | |
| 15 class AppListController { | |
| 16 public: | |
| 17 virtual ~AppListController() {} | |
| 18 | |
| 19 // Handle the controller being closed. | |
| 20 virtual void CloseView() = 0; | |
| 21 | |
| 22 // Control of pinning apps. | |
| 23 virtual bool IsAppPinned(const std::string& extension_id) = 0; | |
| 24 virtual void PinApp(const std::string& extension_id) = 0; | |
| 25 virtual void UnpinApp(const std::string& extension_id) = 0; | |
| 26 virtual bool CanPin() = 0; | |
| 27 | |
| 28 // App has been clicked on in the app list. | |
| 29 virtual void ActivateApp(Profile* profile, | |
| 30 const std::string& extension_id, | |
| 31 int event_flags) = 0; | |
| 32 }; | |
| 33 | |
| 34 #endif // CHROME_BROWSER_UI_ASH_APP_LIST_APP_LIST_CONTROLLER_H_ | |
| OLD | NEW |