Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(720)

Unified Diff: chrome/browser/ui/ash/app_list/app_list_controller_ash.h

Issue 12207104: Refactor app_list_util.h into AppListService abstract base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: chrome builds on Windows, next: fix browsertest Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/ash/app_list/app_list_controller_ash.h
diff --git a/chrome/browser/ui/ash/app_list/app_list_controller_ash.h b/chrome/browser/ui/ash/app_list/app_list_controller_ash.h
index b8a50f5f4efd6ba831e4071ad688812ee7ccf237..13c778f6b4089b9f7be3c8779f70efcb48823ef6 100644
--- a/chrome/browser/ui/ash/app_list/app_list_controller_ash.h
+++ b/chrome/browser/ui/ash/app_list/app_list_controller_ash.h
@@ -8,6 +8,9 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "chrome/browser/ui/app_list/app_list_controller_delegate.h"
+#include "chrome/browser/ui/app_list_service.h"
+
+template <typename T> struct DefaultSingletonTraits;
class AppListControllerDelegateAsh : public AppListControllerDelegate {
public:
@@ -34,4 +37,21 @@ class AppListControllerDelegateAsh : public AppListControllerDelegate {
DISALLOW_COPY_AND_ASSIGN(AppListControllerDelegateAsh);
};
+class AppListServiceAsh : public AppListService {
+ public:
+ static AppListServiceAsh* GetInstance();
+
+ // AppListService overrides:
+ virtual void ShowAppList(Profile* default_profile) OVERRIDE;
+ virtual bool IsAppListVisible() OVERRIDE;
+ virtual void DismissAppList() OVERRIDE;
+
+ private:
+ AppListServiceAsh() {}
+
+ friend struct DefaultSingletonTraits<AppListServiceAsh>;
+
+ DISALLOW_COPY_AND_ASSIGN(AppListServiceAsh);
+};
+
#endif // CHROME_BROWSER_UI_ASH_APP_LIST_APP_LIST_CONTROLLER_ASH_H_

Powered by Google App Engine
This is Rietveld 408576698