OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "chrome/browser/ui/app_list/recommended_apps.h" | 5 #include "chrome/browser/ui/app_list/recommended_apps.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 const bool changed = apps_.size() != new_recommends.size() || | 92 const bool changed = apps_.size() != new_recommends.size() || |
93 !std::equal(apps_.begin(), apps_.end(), new_recommends.begin()); | 93 !std::equal(apps_.begin(), apps_.end(), new_recommends.begin()); |
94 if (changed) { | 94 if (changed) { |
95 apps_.swap(new_recommends); | 95 apps_.swap(new_recommends); |
96 FOR_EACH_OBSERVER( | 96 FOR_EACH_OBSERVER( |
97 RecommendedAppsObserver, observers_, OnRecommendedAppsChanged()); | 97 RecommendedAppsObserver, observers_, OnRecommendedAppsChanged()); |
98 } | 98 } |
99 } | 99 } |
100 | 100 |
101 void RecommendedApps::OnBeginExtensionInstall(const std::string& extension_id, | 101 void RecommendedApps::OnBeginExtensionInstall( |
102 const std::string& extension_name, | 102 const ExtensionInstallParams& params) {} |
103 const gfx::ImageSkia& installing_icon, | |
104 bool is_app, | |
105 bool is_platform_app) {} | |
106 | 103 |
107 void RecommendedApps::OnDownloadProgress(const std::string& extension_id, | 104 void RecommendedApps::OnDownloadProgress(const std::string& extension_id, |
108 int percent_downloaded) {} | 105 int percent_downloaded) {} |
109 | 106 |
110 void RecommendedApps::OnInstallFailure(const std::string& extension_id) {} | 107 void RecommendedApps::OnInstallFailure(const std::string& extension_id) {} |
111 | 108 |
112 void RecommendedApps::OnExtensionInstalled( | 109 void RecommendedApps::OnExtensionInstalled( |
113 const extensions::Extension* extension) { | 110 const extensions::Extension* extension) { |
114 Update(); | 111 Update(); |
115 } | 112 } |
(...skipping 14 matching lines...) Expand all Loading... |
130 } | 127 } |
131 | 128 |
132 void RecommendedApps::OnAppsReordered() {} | 129 void RecommendedApps::OnAppsReordered() {} |
133 | 130 |
134 void RecommendedApps::OnAppInstalledToAppList( | 131 void RecommendedApps::OnAppInstalledToAppList( |
135 const std::string& extension_id) {} | 132 const std::string& extension_id) {} |
136 | 133 |
137 void RecommendedApps::OnShutdown() {} | 134 void RecommendedApps::OnShutdown() {} |
138 | 135 |
139 } // namespace app_list | 136 } // namespace app_list |
OLD | NEW |