| OLD | NEW |
| 1 // Copyright 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_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
| 11 | 11 |
| 12 class FilePath; |
| 12 class Profile; | 13 class Profile; |
| 13 | 14 |
| 14 namespace extensions { | 15 namespace extensions { |
| 15 class Extension; | 16 class Extension; |
| 16 } | 17 } |
| 17 | 18 |
| 18 // Interface to allow the view delegate to call out to whatever is controlling | 19 // Interface to allow the view delegate to call out to whatever is controlling |
| 19 // the app list. This will have different implementations for different | 20 // the app list. This will have different implementations for different |
| 20 // platforms. | 21 // platforms. |
| 21 class AppListControllerDelegate { | 22 class AppListControllerDelegate { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 virtual void ActivateApp(Profile* profile, | 58 virtual void ActivateApp(Profile* profile, |
| 58 const extensions::Extension* extension, | 59 const extensions::Extension* extension, |
| 59 int event_flags) = 0; | 60 int event_flags) = 0; |
| 60 | 61 |
| 61 // Launch the app. | 62 // Launch the app. |
| 62 virtual void LaunchApp(Profile* profile, | 63 virtual void LaunchApp(Profile* profile, |
| 63 const extensions::Extension* extension, | 64 const extensions::Extension* extension, |
| 64 int event_flags) = 0; | 65 int event_flags) = 0; |
| 65 }; | 66 }; |
| 66 | 67 |
| 68 namespace chrome { |
| 69 |
| 70 // Do any once off initialization needed for the app list. |
| 71 void InitAppList(Profile* default_profile); |
| 72 |
| 73 // Show the app list. |
| 74 void ShowAppList(Profile* default_profile); |
| 75 |
| 76 // Change the profile path used for populating the app list. |
| 77 void UpdateProfilePath(const FilePath& profile_file_path); |
| 78 |
| 79 } // namespace chrome |
| 80 |
| 67 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ | 81 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ |
| OLD | NEW |