OLD | NEW |
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_EXTENSION_APP_MODEL_BUILDER_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_MODEL_BUILDER_H_ |
6 #define CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_MODEL_BUILDER_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_MODEL_BUILDER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 // Builds the model with the current profile. | 53 // Builds the model with the current profile. |
54 void BuildModel(); | 54 void BuildModel(); |
55 | 55 |
56 // extensions::InstallObserver | 56 // extensions::InstallObserver |
57 virtual void OnBeginExtensionInstall( | 57 virtual void OnBeginExtensionInstall( |
58 const ExtensionInstallParams& params) OVERRIDE; | 58 const ExtensionInstallParams& params) OVERRIDE; |
59 virtual void OnDownloadProgress(const std::string& extension_id, | 59 virtual void OnDownloadProgress(const std::string& extension_id, |
60 int percent_downloaded) OVERRIDE; | 60 int percent_downloaded) OVERRIDE; |
61 virtual void OnInstallFailure(const std::string& extension_id) OVERRIDE; | 61 virtual void OnInstallFailure(const std::string& extension_id) OVERRIDE; |
62 virtual void OnExtensionInstalled( | |
63 const extensions::Extension* extension) OVERRIDE {} | |
64 virtual void OnExtensionLoaded( | 62 virtual void OnExtensionLoaded( |
65 const extensions::Extension* extension) OVERRIDE; | 63 const extensions::Extension* extension) OVERRIDE; |
66 virtual void OnExtensionUnloaded( | 64 virtual void OnExtensionUnloaded( |
67 const extensions::Extension* extension) OVERRIDE; | 65 const extensions::Extension* extension) OVERRIDE; |
68 virtual void OnExtensionUninstalled( | 66 virtual void OnExtensionUninstalled( |
69 const extensions::Extension* extension) OVERRIDE; | 67 const extensions::Extension* extension) OVERRIDE; |
70 virtual void OnAppsReordered() OVERRIDE; | |
71 virtual void OnAppInstalledToAppList( | 68 virtual void OnAppInstalledToAppList( |
72 const std::string& extension_id) OVERRIDE; | 69 const std::string& extension_id) OVERRIDE; |
73 virtual void OnShutdown() OVERRIDE; | 70 virtual void OnShutdown() OVERRIDE; |
74 | 71 |
75 // AppListItemListObserver | 72 // AppListItemListObserver |
76 virtual void OnListItemMoved(size_t from_index, | 73 virtual void OnListItemMoved(size_t from_index, |
77 size_t to_index, | 74 size_t to_index, |
78 app_list::AppListItem* item) OVERRIDE; | 75 app_list::AppListItem* item) OVERRIDE; |
79 | 76 |
80 scoped_ptr<ExtensionAppItem> CreateAppItem( | 77 scoped_ptr<ExtensionAppItem> CreateAppItem( |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 // if we try to highlight an app that doesn't exist in the list yet. | 129 // if we try to highlight an app that doesn't exist in the list yet. |
133 bool highlighted_app_pending_; | 130 bool highlighted_app_pending_; |
134 | 131 |
135 // We listen to this to show app installing progress. | 132 // We listen to this to show app installing progress. |
136 extensions::InstallTracker* tracker_; | 133 extensions::InstallTracker* tracker_; |
137 | 134 |
138 DISALLOW_COPY_AND_ASSIGN(ExtensionAppModelBuilder); | 135 DISALLOW_COPY_AND_ASSIGN(ExtensionAppModelBuilder); |
139 }; | 136 }; |
140 | 137 |
141 #endif // CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_MODEL_BUILDER_H_ | 138 #endif // CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_MODEL_BUILDER_H_ |
OLD | NEW |