| 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/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
| 14 | 14 |
| 15 class AppListControllerDelegate; | 15 class AppListControllerDelegate; |
| 16 class PrefRegistrySimple; | 16 class PrefRegistrySimple; |
| 17 class Profile; | 17 class Profile; |
| 18 | 18 |
| 19 namespace base { | 19 namespace base { |
| 20 class CommandLine; | 20 class CommandLine; |
| 21 class FilePath; | 21 class FilePath; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace content { | 24 namespace content { |
| 25 struct SpeechRecognitionSessionPreamble; | 25 struct SpeechRecognitionSessionPreamble; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace gfx { | |
| 29 class ImageSkia; | |
| 30 } | |
| 31 | |
| 32 class AppListService { | 28 class AppListService { |
| 33 public: | 29 public: |
| 34 // Source that triggers the app launcher being enabled. This is used for UMA | 30 // Source that triggers the app launcher being enabled. This is used for UMA |
| 35 // to track discoverability of the app lancher shortcut after install. Also | 31 // to track discoverability of the app lancher shortcut after install. Also |
| 36 // used to provide custom install behavior (e.g. "always" enable). | 32 // used to provide custom install behavior (e.g. "always" enable). |
| 37 enum AppListEnableSource { | 33 enum AppListEnableSource { |
| 38 ENABLE_NOT_RECORDED, // Indicates app launcher not recently enabled. | 34 ENABLE_NOT_RECORDED, // Indicates app launcher not recently enabled. |
| 39 ENABLE_FOR_APP_INSTALL, // Triggered by a webstore packaged app install. | 35 ENABLE_FOR_APP_INSTALL, // Triggered by a webstore packaged app install. |
| 40 ENABLE_VIA_WEBSTORE_LINK, // Triggered by webstore explicitly via API. | 36 ENABLE_VIA_WEBSTORE_LINK, // Triggered by webstore explicitly via API. |
| 41 ENABLE_VIA_COMMAND_LINE, // Triggered by --enable-app-list. | 37 ENABLE_VIA_COMMAND_LINE, // Triggered by --enable-app-list. |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 virtual ~AppListService() {} | 126 virtual ~AppListService() {} |
| 131 | 127 |
| 132 // Do any once off initialization needed for the app list. | 128 // Do any once off initialization needed for the app list. |
| 133 virtual void Init(Profile* initial_profile) = 0; | 129 virtual void Init(Profile* initial_profile) = 0; |
| 134 | 130 |
| 135 private: | 131 private: |
| 136 DISALLOW_COPY_AND_ASSIGN(AppListService); | 132 DISALLOW_COPY_AND_ASSIGN(AppListService); |
| 137 }; | 133 }; |
| 138 | 134 |
| 139 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ | 135 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ |
| OLD | NEW |