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

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

Issue 12207105: [win] Remove 'installing...' icons from the app list if the install fails. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac Created 7 years, 10 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 (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 26 matching lines...) Expand all
37 37
38 // Called when an extension starts installing. 38 // Called when an extension starts installing.
39 void OnBeginExtensionInstall(const std::string& extension_id, 39 void OnBeginExtensionInstall(const std::string& extension_id,
40 const std::string& extension_name, 40 const std::string& extension_name,
41 const gfx::ImageSkia& installing_icon); 41 const gfx::ImageSkia& installing_icon);
42 42
43 // Called when progress is made on an extension's download. 43 // Called when progress is made on an extension's download.
44 void OnDownloadProgress(const std::string& extension_id, 44 void OnDownloadProgress(const std::string& extension_id,
45 int percent_downloaded); 45 int percent_downloaded);
46 46
47 // Called when an extension fails to install.
48 void OnInstallFailure(const std::string& extension_id);
49
47 private: 50 private:
48 typedef std::vector<ExtensionAppItem*> Apps; 51 typedef std::vector<ExtensionAppItem*> Apps;
49 52
50 // Adds apps in |extensions| to |apps|. 53 // Adds apps in |extensions| to |apps|.
51 void AddApps(const ExtensionSet* extensions, Apps* apps); 54 void AddApps(const ExtensionSet* extensions, Apps* apps);
52 55
53 // Populates the model with apps. 56 // Populates the model with apps.
54 void PopulateApps(); 57 void PopulateApps();
55 58
56 // Re-sort apps in case app ordinal prefs are changed. 59 // Re-sort apps in case app ordinal prefs are changed.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // True to ignore |model_| changes. 96 // True to ignore |model_| changes.
94 bool ignore_changes_; 97 bool ignore_changes_;
95 98
96 content::NotificationRegistrar registrar_; 99 content::NotificationRegistrar registrar_;
97 PrefChangeRegistrar pref_change_registrar_; 100 PrefChangeRegistrar pref_change_registrar_;
98 101
99 DISALLOW_COPY_AND_ASSIGN(AppsModelBuilder); 102 DISALLOW_COPY_AND_ASSIGN(AppsModelBuilder);
100 }; 103 };
101 104
102 #endif // CHROME_BROWSER_UI_APP_LIST_APPS_MODEL_BUILDER_H_ 105 #endif // CHROME_BROWSER_UI_APP_LIST_APPS_MODEL_BUILDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_view_delegate.cc ('k') | chrome/browser/ui/app_list/apps_model_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698