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

Side by Side Diff: chrome/browser/ui/app_list/app_list_service_impl.h

Issue 20656002: Add profile selector menu to app list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo app_list_service_mac changes Created 7 years, 4 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
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_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 17 matching lines...) Expand all
28 } 28 }
29 29
30 // Parts of the AppListService implementation shared between platforms. 30 // Parts of the AppListService implementation shared between platforms.
31 class AppListServiceImpl : public AppListService, 31 class AppListServiceImpl : public AppListService,
32 public ProfileInfoCacheObserver, 32 public ProfileInfoCacheObserver,
33 public content::NotificationObserver { 33 public content::NotificationObserver {
34 public: 34 public:
35 static void RecordAppListLaunch(); 35 static void RecordAppListLaunch();
36 static void RecordAppListAppLaunch(); 36 static void RecordAppListAppLaunch();
37 static void SendAppListStats(); 37 static void SendAppListStats();
38 void ShowForProfileAtIndex(size_t index);
38 39
39 protected: 40 protected:
40 AppListServiceImpl(); 41 AppListServiceImpl();
41 virtual ~AppListServiceImpl(); 42 virtual ~AppListServiceImpl();
42 43
43 Profile* profile() const { return profile_; } 44 Profile* profile() const { return profile_; }
44 void SetProfile(Profile* new_profile); 45 void SetProfile(Profile* new_profile);
45 void InvalidatePendingProfileLoads(); 46 void InvalidatePendingProfileLoads();
46 ProfileLoader& profile_loader() { return profile_loader_; } 47 ProfileLoader& profile_loader() { return profile_loader_; }
47 const ProfileLoader& profile_loader() const { return profile_loader_; } 48 const ProfileLoader& profile_loader() const { return profile_loader_; }
48 49
49 // Process command line flags shared between desktop implementations of the 50 // Process command line flags shared between desktop implementations of the
50 // app list. Currently this allows for enabling or disabling the app list. 51 // app list. Currently this allows for enabling or disabling the app list.
51 void HandleCommandLineFlags(Profile* initial_profile); 52 void HandleCommandLineFlags(Profile* initial_profile);
52 53
54 // Shows the app list for the profile at the given index. If the profile has
tapted 2013/07/31 05:43:53 comment has become detached from the function. (an
calamity 2013/08/01 08:35:45 Done.
55 // not been loaded, this will load the profile and then show the app list.
koz (OOO until 15th September) 2013/07/31 03:01:42 This comment has become detached from its function
56
53 // Create a platform-specific shortcut for the app list. 57 // Create a platform-specific shortcut for the app list.
54 virtual void CreateShortcut(); 58 virtual void CreateShortcut();
55 59
56 // Called in response to observed successful and unsuccessful signin changes. 60 // Called in response to observed successful and unsuccessful signin changes.
57 virtual void OnSigninStatusChanged(); 61 virtual void OnSigninStatusChanged();
58 62
59 // AppListService overrides: 63 // AppListService overrides:
60 virtual void HandleFirstRun() OVERRIDE; 64 virtual void HandleFirstRun() OVERRIDE;
61 virtual void Init(Profile* initial_profile) OVERRIDE; 65 virtual void Init(Profile* initial_profile) OVERRIDE;
62 66
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 103
100 base::WeakPtrFactory<AppListServiceImpl> weak_factory_; 104 base::WeakPtrFactory<AppListServiceImpl> weak_factory_;
101 content::NotificationRegistrar registrar_; 105 content::NotificationRegistrar registrar_;
102 106
103 ProfileLoader profile_loader_; 107 ProfileLoader profile_loader_;
104 108
105 DISALLOW_COPY_AND_ASSIGN(AppListServiceImpl); 109 DISALLOW_COPY_AND_ASSIGN(AppListServiceImpl);
106 }; 110 };
107 111
108 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_ 112 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698