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

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: rework + fix tests 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 (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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 OnExtensionLoaded( 60 virtual void OnExtensionLoaded(
61 const extensions::Extension* extension) OVERRIDE; 61 const extensions::Extension* extension) OVERRIDE;
62 virtual void OnExtensionUnloaded( 62 virtual void OnExtensionUnloaded(
63 const extensions::Extension* extension) OVERRIDE; 63 const extensions::Extension* extension) OVERRIDE;
64 virtual void OnExtensionUninstalled( 64 virtual void OnExtensionUninstalled(
65 const extensions::Extension* extension) OVERRIDE; 65 const extensions::Extension* extension) OVERRIDE;
66 virtual void OnAppsReordered() OVERRIDE; 66 virtual void OnAppListReordered() OVERRIDE;
67 virtual void OnAppInstalledToAppList( 67 virtual void OnAppInstalledToAppList(
68 const std::string& extension_id) OVERRIDE; 68 const std::string& extension_id) OVERRIDE;
69 virtual void OnShutdown() OVERRIDE; 69 virtual void OnShutdown() OVERRIDE;
70 70
71 // Adds apps in |extensions| to |apps|. 71 // Adds apps in |extensions| to |apps|.
72 void AddApps(const ExtensionSet* extensions, Apps* apps); 72 void AddApps(const ExtensionSet* extensions, Apps* apps);
73 73
74 // Populates the model with apps. 74 // Populates the model with apps.
75 void PopulateApps(); 75 void PopulateApps();
76 76
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // True to ignore |model_| changes. 118 // True to ignore |model_| changes.
119 bool ignore_changes_; 119 bool ignore_changes_;
120 120
121 // We listen to this to show app installing progress. 121 // We listen to this to show app installing progress.
122 extensions::InstallTracker* tracker_; 122 extensions::InstallTracker* tracker_;
123 123
124 DISALLOW_COPY_AND_ASSIGN(AppsModelBuilder); 124 DISALLOW_COPY_AND_ASSIGN(AppsModelBuilder);
125 }; 125 };
126 126
127 #endif // CHROME_BROWSER_UI_APP_LIST_APPS_MODEL_BUILDER_H_ 127 #endif // CHROME_BROWSER_UI_APP_LIST_APPS_MODEL_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698