| 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_APP_LIST_APP_LIST_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ |
| 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 // Show the app list for the profile configured in the user data dir for the | 47 // Show the app list for the profile configured in the user data dir for the |
| 48 // current browser process. | 48 // current browser process. |
| 49 virtual void Show() = 0; | 49 virtual void Show() = 0; |
| 50 | 50 |
| 51 // Show the app list for the given profile. If it differs from the profile the | 51 // Show the app list for the given profile. If it differs from the profile the |
| 52 // app list is currently showing, repopulate the app list and save the new | 52 // app list is currently showing, repopulate the app list and save the new |
| 53 // profile to local prefs as the default app list profile. | 53 // profile to local prefs as the default app list profile. |
| 54 virtual void ShowForProfile(Profile* requested_profile) = 0; | 54 virtual void ShowForProfile(Profile* requested_profile) = 0; |
| 55 | 55 |
| 56 // Shows the app list for the profile at the given index. If the profile has |
| 57 // not been loaded, this will load the profile and then show the app list. |
| 58 virtual void ShowForProfileAtIndex(size_t index) = 0; |
| 59 |
| 56 // Dismiss the app list. | 60 // Dismiss the app list. |
| 57 virtual void DismissAppList() = 0; | 61 virtual void DismissAppList() = 0; |
| 58 | 62 |
| 59 // Get the profile the app list is currently showing. | 63 // Get the profile the app list is currently showing. |
| 60 virtual Profile* GetCurrentAppListProfile() = 0; | 64 virtual Profile* GetCurrentAppListProfile() = 0; |
| 61 | 65 |
| 62 // Returns true if the app list is visible. | 66 // Returns true if the app list is visible. |
| 63 virtual bool IsAppListVisible() const = 0; | 67 virtual bool IsAppListVisible() const = 0; |
| 64 | 68 |
| 65 // Enable the app list. What this does specifically will depend on the host | 69 // Enable the app list. What this does specifically will depend on the host |
| (...skipping 11 matching lines...) Expand all Loading... |
| 77 virtual ~AppListService() {} | 81 virtual ~AppListService() {} |
| 78 | 82 |
| 79 // Do any once off initialization needed for the app list. | 83 // Do any once off initialization needed for the app list. |
| 80 virtual void Init(Profile* initial_profile) = 0; | 84 virtual void Init(Profile* initial_profile) = 0; |
| 81 | 85 |
| 82 private: | 86 private: |
| 83 DISALLOW_COPY_AND_ASSIGN(AppListService); | 87 DISALLOW_COPY_AND_ASSIGN(AppListService); |
| 84 }; | 88 }; |
| 85 | 89 |
| 86 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ | 90 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ |
| OLD | NEW |