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

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

Issue 17038002: Separate the NTP app ordering from the app list app ordering (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add sync test Created 7 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_APPS_MODEL_BUILDER_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APPS_MODEL_BUILDER_H_
6 #define CHROME_BROWSER_UI_APP_LIST_APPS_MODEL_BUILDER_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_APPS_MODEL_BUILDER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 virtual void OnDownloadProgress(const std::string& extension_id, 54 virtual void OnDownloadProgress(const std::string& extension_id,
55 int percent_downloaded) OVERRIDE; 55 int percent_downloaded) OVERRIDE;
56 56
57 virtual void OnInstallFailure(const std::string& extension_id) OVERRIDE; 57 virtual void OnInstallFailure(const std::string& extension_id) OVERRIDE;
58 virtual void OnExtensionInstalled( 58 virtual void OnExtensionInstalled(
59 const extensions::Extension* extension) OVERRIDE; 59 const extensions::Extension* extension) OVERRIDE;
60 virtual void OnExtensionUninstalled( 60 virtual void OnExtensionUninstalled(
61 const extensions::Extension* extension) OVERRIDE; 61 const extensions::Extension* extension) OVERRIDE;
62 virtual void OnExtensionDisabled( 62 virtual void OnExtensionDisabled(
63 const extensions::Extension* extension) OVERRIDE; 63 const extensions::Extension* extension) OVERRIDE;
64 virtual void OnAppsReordered() OVERRIDE; 64 virtual void OnAppListReordered() OVERRIDE;
65 virtual void OnAppInstalledToAppList( 65 virtual void OnAppInstalledToAppList(
66 const std::string& extension_id) OVERRIDE; 66 const std::string& extension_id) OVERRIDE;
67 virtual void OnShutdown() OVERRIDE; 67 virtual void OnShutdown() OVERRIDE;
68 68
69 // Adds apps in |extensions| to |apps|. 69 // Adds apps in |extensions| to |apps|.
70 void AddApps(const ExtensionSet* extensions, Apps* apps); 70 void AddApps(const ExtensionSet* extensions, Apps* apps);
71 71
72 // Populates the model with apps. 72 // Populates the model with apps.
73 void PopulateApps(); 73 void PopulateApps();
74 74
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // True to ignore |model_| changes. 116 // True to ignore |model_| changes.
117 bool ignore_changes_; 117 bool ignore_changes_;
118 118
119 // We listen to this to show app installing progress. 119 // We listen to this to show app installing progress.
120 extensions::InstallTracker* tracker_; 120 extensions::InstallTracker* tracker_;
121 121
122 DISALLOW_COPY_AND_ASSIGN(AppsModelBuilder); 122 DISALLOW_COPY_AND_ASSIGN(AppsModelBuilder);
123 }; 123 };
124 124
125 #endif // CHROME_BROWSER_UI_APP_LIST_APPS_MODEL_BUILDER_H_ 125 #endif // CHROME_BROWSER_UI_APP_LIST_APPS_MODEL_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698