| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_APP_LIST_APP_LIST_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 class Profile; | 10 class Profile; |
| 11 | 11 |
| 12 // Interface to allow the view delegate to call out to whatever is controlling | 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 | 13 // the app list. This will have different implementations for different |
| 14 // platforms. | 14 // platforms. |
| 15 class AppListControllerDelegate { | 15 class AppListControllerDelegate { |
| 16 public: | 16 public: |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 virtual void ActivateApp(Profile* profile, | 48 virtual void ActivateApp(Profile* profile, |
| 49 const std::string& extension_id, | 49 const std::string& extension_id, |
| 50 int event_flags) = 0; | 50 int event_flags) = 0; |
| 51 | 51 |
| 52 // Launch the app. | 52 // Launch the app. |
| 53 virtual void LaunchApp(Profile* profile, | 53 virtual void LaunchApp(Profile* profile, |
| 54 const std::string& extension_id, | 54 const std::string& extension_id, |
| 55 int event_flags) = 0; | 55 int event_flags) = 0; |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 namespace app_list_controller { | 58 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ |
| 59 | |
| 60 // Do any once off initialization needed for the app list. | |
| 61 void InitAppList(); | |
| 62 | |
| 63 // Show the app list. | |
| 64 void ShowAppList(); | |
| 65 | |
| 66 } // namespace app_list_controller | |
| 67 | |
| 68 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_H_ | |
| OLD | NEW |