| 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 25 matching lines...) Expand all Loading... |
| 36 const base::FilePath& user_data_dir); | 36 const base::FilePath& user_data_dir); |
| 37 | 37 |
| 38 // Show the app list. | 38 // Show the app list. |
| 39 virtual void ShowAppList(Profile* requested_profile); | 39 virtual void ShowAppList(Profile* requested_profile); |
| 40 | 40 |
| 41 // Dismiss the app list. | 41 // Dismiss the app list. |
| 42 virtual void DismissAppList(); | 42 virtual void DismissAppList(); |
| 43 | 43 |
| 44 virtual void SetAppListProfile(const base::FilePath& profile_file_path); | 44 virtual void SetAppListProfile(const base::FilePath& profile_file_path); |
| 45 | 45 |
| 46 virtual void ShowForSavedProfile(); |
| 47 |
| 46 // Get the profile the app list is currently showing. | 48 // Get the profile the app list is currently showing. |
| 47 virtual Profile* GetCurrentAppListProfile(); | 49 virtual Profile* GetCurrentAppListProfile(); |
| 48 | 50 |
| 49 // Returns true if the app list is visible. | 51 // Returns true if the app list is visible. |
| 50 virtual bool IsAppListVisible() const; | 52 virtual bool IsAppListVisible() const; |
| 51 | 53 |
| 52 // Enable the app list. What this does specifically will depend on the host | 54 // Enable the app list. What this does specifically will depend on the host |
| 53 // operating system and shell. | 55 // operating system and shell. |
| 54 virtual void EnableAppList(); | 56 virtual void EnableAppList(); |
| 55 | 57 |
| 56 // Exposed to allow testing of the controller delegate. | 58 // Exposed to allow testing of the controller delegate. |
| 57 virtual AppListControllerDelegate* CreateControllerDelegate(); | 59 virtual AppListControllerDelegate* CreateControllerDelegate(); |
| 58 | 60 |
| 59 protected: | 61 protected: |
| 60 AppListService() {} | 62 AppListService() {} |
| 61 virtual ~AppListService() {} | 63 virtual ~AppListService() {} |
| 62 | 64 |
| 63 // Do any once off initialization needed for the app list. | 65 // Do any once off initialization needed for the app list. |
| 64 virtual void Init(Profile* initial_profile); | 66 virtual void Init(Profile* initial_profile); |
| 65 | 67 |
| 66 private: | 68 private: |
| 67 DISALLOW_COPY_AND_ASSIGN(AppListService); | 69 DISALLOW_COPY_AND_ASSIGN(AppListService); |
| 68 }; | 70 }; |
| 69 | 71 |
| 70 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ | 72 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ |
| OLD | NEW |