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

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

Issue 68173019: Remove static initializer from AppListView::SetNextPaintCallback(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: other nit Created 7 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/app_list_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
11 #include "base/callback_forward.h"
12 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
13 #include "chrome/browser/ui/host_desktop.h" 12 #include "chrome/browser/ui/host_desktop.h"
14 #include "ui/gfx/native_widget_types.h" 13 #include "ui/gfx/native_widget_types.h"
15 14
16 class AppListControllerDelegate; 15 class AppListControllerDelegate;
17 class CommandLine; 16 class CommandLine;
18 class PrefRegistrySimple; 17 class PrefRegistrySimple;
19 class Profile; 18 class Profile;
20 19
21 namespace base { 20 namespace base {
(...skipping 12 matching lines...) Expand all
34 33
35 // Call Init for all AppListService instances on this platform. 34 // Call Init for all AppListService instances on this platform.
36 static void InitAll(Profile* initial_profile); 35 static void InitAll(Profile* initial_profile);
37 36
38 static void RegisterPrefs(PrefRegistrySimple* registry); 37 static void RegisterPrefs(PrefRegistrySimple* registry);
39 38
40 static void RecordShowTimings(const CommandLine& command_line); 39 static void RecordShowTimings(const CommandLine& command_line);
41 40
42 // Indicates that |callback| should be called next time the app list is 41 // Indicates that |callback| should be called next time the app list is
43 // painted. 42 // painted.
44 virtual void SetAppListNextPaintCallback(const base::Closure& callback) = 0; 43 virtual void SetAppListNextPaintCallback(void (*callback)()) = 0;
45 44
46 // Perform Chrome first run logic. This is executed before Chrome's threads 45 // Perform Chrome first run logic. This is executed before Chrome's threads
47 // have been created. 46 // have been created.
48 virtual void HandleFirstRun() = 0; 47 virtual void HandleFirstRun() = 0;
49 48
50 virtual base::FilePath GetProfilePath( 49 virtual base::FilePath GetProfilePath(
51 const base::FilePath& user_data_dir) = 0; 50 const base::FilePath& user_data_dir) = 0;
52 virtual void SetProfilePath(const base::FilePath& profile_path) = 0; 51 virtual void SetProfilePath(const base::FilePath& profile_path) = 0;
53 52
54 // Show the app list for the profile configured in the user data dir for the 53 // Show the app list for the profile configured in the user data dir for the
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 virtual ~AppListService() {} 86 virtual ~AppListService() {}
88 87
89 // Do any once off initialization needed for the app list. 88 // Do any once off initialization needed for the app list.
90 virtual void Init(Profile* initial_profile) = 0; 89 virtual void Init(Profile* initial_profile) = 0;
91 90
92 private: 91 private:
93 DISALLOW_COPY_AND_ASSIGN(AppListService); 92 DISALLOW_COPY_AND_ASSIGN(AppListService);
94 }; 93 };
95 94
96 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ 95 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698