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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 // Show the app list for the profile configured in the user data dir for the | 71 // Show the app list for the profile configured in the user data dir for the |
72 // current browser process. | 72 // current browser process. |
73 virtual void Show() = 0; | 73 virtual void Show() = 0; |
74 | 74 |
75 // Show the app list for the given profile. If it differs from the profile the | 75 // Show the app list for the given profile. If it differs from the profile the |
76 // app list is currently showing, repopulate the app list and save the new | 76 // app list is currently showing, repopulate the app list and save the new |
77 // profile to local prefs as the default app list profile. | 77 // profile to local prefs as the default app list profile. |
78 virtual void ShowForProfile(Profile* requested_profile) = 0; | 78 virtual void ShowForProfile(Profile* requested_profile) = 0; |
79 | 79 |
| 80 // Shows the app list, and jump to voice search. Used by always-on hotwording. |
| 81 virtual void ShowForVoiceSearch(Profile* profile) = 0; |
| 82 |
80 // Shows the app list, and reveals the page that contains |extension_id|. This | 83 // Shows the app list, and reveals the page that contains |extension_id|. This |
81 // should only be called for things that show in the app list, and only when | 84 // should only be called for things that show in the app list, and only when |
82 // they begin or complete installing. If |start_discovery_tracking| is set, | 85 // they begin or complete installing. If |start_discovery_tracking| is set, |
83 // the app launcher will not actually be shown, but will start tracking UMA | 86 // the app launcher will not actually be shown, but will start tracking UMA |
84 // for app launcher discovery. | 87 // for app launcher discovery. |
85 virtual void ShowForAppInstall(Profile* profile, | 88 virtual void ShowForAppInstall(Profile* profile, |
86 const std::string& extension_id, | 89 const std::string& extension_id, |
87 bool start_discovery_tracking) = 0; | 90 bool start_discovery_tracking) = 0; |
88 | 91 |
89 // Dismiss the app list. | 92 // Dismiss the app list. |
(...skipping 24 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 |