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

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

Issue 350883002: Refactor handling of --show-app-list command line. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase on crrev/362933002 Created 6 years, 5 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 | Annotate | Revision Log
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_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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 // Get the AppListService for the current platform and specified 45 // Get the AppListService for the current platform and specified
46 // |desktop_type|. 46 // |desktop_type|.
47 static AppListService* Get(chrome::HostDesktopType desktop_type); 47 static AppListService* Get(chrome::HostDesktopType desktop_type);
48 48
49 // Call Init for all AppListService instances on this platform. 49 // Call Init for all AppListService instances on this platform.
50 static void InitAll(Profile* initial_profile); 50 static void InitAll(Profile* initial_profile);
51 51
52 static void RegisterPrefs(PrefRegistrySimple* registry); 52 static void RegisterPrefs(PrefRegistrySimple* registry);
53 53
54 static void RecordShowTimings(const base::CommandLine& command_line); 54 // Initializes the AppListService, and returns true if |command_line| is for
55 // showing the app list.
56 static bool HandleLaunchCommandLine(const base::CommandLine& command_line,
57 Profile* launch_profile);
55 58
56 // Indicates that |callback| should be called next time the app list is 59 // Indicates that |callback| should be called next time the app list is
57 // painted. 60 // painted.
58 virtual void SetAppListNextPaintCallback(void (*callback)()) = 0; 61 virtual void SetAppListNextPaintCallback(void (*callback)()) = 0;
59 62
60 // Perform Chrome first run logic. This is executed before Chrome's threads 63 // Perform Chrome first run logic. This is executed before Chrome's threads
61 // have been created. 64 // have been created.
62 virtual void HandleFirstRun() = 0; 65 virtual void HandleFirstRun() = 0;
63 66
64 virtual base::FilePath GetProfilePath( 67 virtual base::FilePath GetProfilePath(
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 virtual ~AppListService() {} 114 virtual ~AppListService() {}
112 115
113 // Do any once off initialization needed for the app list. 116 // Do any once off initialization needed for the app list.
114 virtual void Init(Profile* initial_profile) = 0; 117 virtual void Init(Profile* initial_profile) = 0;
115 118
116 private: 119 private:
117 DISALLOW_COPY_AND_ASSIGN(AppListService); 120 DISALLOW_COPY_AND_ASSIGN(AppListService);
118 }; 121 };
119 122
120 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ 123 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/app_list_service.cc » ('j') | chrome/browser/ui/app_list/app_list_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698