| 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_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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |