| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 virtual void Show() = 0; | 73 virtual void Show() = 0; |
| 74 | 74 |
| 75 // Create the app list UI, and maintain its state, but do not show it. | 75 // Create the app list UI, and maintain its state, but do not show it. |
| 76 virtual void CreateForProfile(Profile* requested_profile) = 0; | 76 virtual void CreateForProfile(Profile* requested_profile) = 0; |
| 77 | 77 |
| 78 // Show the app list for the given profile. If it differs from the profile the | 78 // Show the app list for the given profile. If it differs from the profile the |
| 79 // app list is currently showing, repopulate the app list and save the new | 79 // app list is currently showing, repopulate the app list and save the new |
| 80 // profile to local prefs as the default app list profile. | 80 // profile to local prefs as the default app list profile. |
| 81 virtual void ShowForProfile(Profile* requested_profile) = 0; | 81 virtual void ShowForProfile(Profile* requested_profile) = 0; |
| 82 | 82 |
| 83 // Shows the app list, and jump to voice search. Used by always-on hotwording. |
| 84 virtual void ShowForVoiceSearch(Profile* profile) = 0; |
| 85 |
| 83 // Show the app list due to a trigger which was not an explicit user action | 86 // Show the app list due to a trigger which was not an explicit user action |
| 84 // to show the app list. E.g. the auto-show when installing an app. This | 87 // to show the app list. E.g. the auto-show when installing an app. This |
| 85 // permits UMA to distinguish between a user discovering the app list shortcut | 88 // permits UMA to distinguish between a user discovering the app list shortcut |
| 86 // themselves versus having it shown for them automatically. | 89 // themselves versus having it shown for them automatically. |
| 87 virtual void AutoShowForProfile(Profile* requested_profile) = 0; | 90 virtual void AutoShowForProfile(Profile* requested_profile) = 0; |
| 88 | 91 |
| 89 // Dismiss the app list. | 92 // Dismiss the app list. |
| 90 virtual void DismissAppList() = 0; | 93 virtual void DismissAppList() = 0; |
| 91 | 94 |
| 92 // Get the profile the app list is currently showing. | 95 // Get the profile the app list is currently showing. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 114 virtual ~AppListService() {} | 117 virtual ~AppListService() {} |
| 115 | 118 |
| 116 // Do any once off initialization needed for the app list. | 119 // Do any once off initialization needed for the app list. |
| 117 virtual void Init(Profile* initial_profile) = 0; | 120 virtual void Init(Profile* initial_profile) = 0; |
| 118 | 121 |
| 119 private: | 122 private: |
| 120 DISALLOW_COPY_AND_ASSIGN(AppListService); | 123 DISALLOW_COPY_AND_ASSIGN(AppListService); |
| 121 }; | 124 }; |
| 122 | 125 |
| 123 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ | 126 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ |
| OLD | NEW |