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

Side by Side Diff: chrome/browser/ui/app_list/app_list_service.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: rebase for r184604=r184636 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "chrome/browser/profiles/profile_info_cache_observer.h"
13
14 class PrefRegistrySimple;
15 class Profile;
16
17 namespace base {
18 class FilePath;
19 }
20
21 namespace gfx {
22 class ImageSkia;
23 }
24
25 class AppListService : public ProfileInfoCacheObserver {
26 public:
27 // Get the AppListService for the current platform and desktop type.
28 static AppListService* Get();
29
30 // Call Init for all AppListService instances on this platform.
31 static void InitAll(Profile* initial_profile);
32
33 static void RegisterPrefs(PrefRegistrySimple* registry);
34
35 virtual base::FilePath GetAppListProfilePath(
36 const base::FilePath& user_data_dir);
37
38 // Show the app list.
39 virtual void ShowAppList(Profile* profile);
40
41 // Dismiss the app list.
42 virtual void DismissAppList();
43
44 virtual void SetAppListProfile(const base::FilePath& profile_file_path);
45
46 // Get the profile the app list is currently showing.
47 virtual Profile* GetCurrentAppListProfile();
48
49 // Returns true if the app list is visible.
50 virtual bool IsAppListVisible() const;
51
52 // ProfileInfoCacheObserver overrides:
53 virtual void OnProfileAdded(const base::FilePath& profilePath) OVERRIDE;
54 virtual void OnProfileWillBeRemoved(
55 const base::FilePath& profile_path) OVERRIDE;
56 virtual void OnProfileWasRemoved(const base::FilePath& profile_path,
57 const string16& profile_name) OVERRIDE;
58 virtual void OnProfileNameChanged(const base::FilePath& profile_path,
59 const string16& profile_name) OVERRIDE;
60 virtual void OnProfileAvatarChanged(
61 const base::FilePath& profile_path) OVERRIDE;
62
63 protected:
64 AppListService() {}
65 virtual ~AppListService() {}
66
67 // Do any once off initialization needed for the app list.
68 virtual void Init(Profile* initial_profile);
69
70 private:
71 DISALLOW_COPY_AND_ASSIGN(AppListService);
72 };
73
74 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_controller_browsertest.cc ('k') | chrome/browser/ui/app_list/app_list_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698