Chromium Code Reviews| 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/search/webstore_result.h" | 5 #include "chrome/browser/ui/app_list/search/webstore_result.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 176 | 176 |
| 177 void WebstoreResult::OnInstallFailure(const std::string& extension_id) {} | 177 void WebstoreResult::OnInstallFailure(const std::string& extension_id) {} |
| 178 | 178 |
| 179 void WebstoreResult::OnExtensionInstalled( | 179 void WebstoreResult::OnExtensionInstalled( |
| 180 const extensions::Extension* extension) { | 180 const extensions::Extension* extension) { |
| 181 if (extension->id() != app_id_) | 181 if (extension->id() != app_id_) |
| 182 return; | 182 return; |
| 183 | 183 |
| 184 SetIsInstalling(false); | 184 SetIsInstalling(false); |
| 185 UpdateActions(); | 185 UpdateActions(); |
| 186 controller_->ShowAppsGrid(); | |
|
benwells
2013/08/01 22:53:12
Can the websore result take a reference to the vie
xiyuan
2013/08/01 23:18:28
Right now, the AppListModel is independent of AppL
| |
| 186 } | 187 } |
| 187 | 188 |
| 188 void WebstoreResult::OnExtensionLoaded( | 189 void WebstoreResult::OnExtensionLoaded( |
| 189 const extensions::Extension* extension) {} | 190 const extensions::Extension* extension) {} |
| 190 | 191 |
| 191 void WebstoreResult::OnExtensionUnloaded( | 192 void WebstoreResult::OnExtensionUnloaded( |
| 192 const extensions::Extension* extension) {} | 193 const extensions::Extension* extension) {} |
| 193 | 194 |
| 194 void WebstoreResult::OnExtensionUninstalled( | 195 void WebstoreResult::OnExtensionUninstalled( |
| 195 const extensions::Extension* extension) {} | 196 const extensions::Extension* extension) {} |
| 196 | 197 |
| 197 void WebstoreResult::OnAppsReordered() {} | 198 void WebstoreResult::OnAppsReordered() {} |
| 198 | 199 |
| 199 void WebstoreResult::OnAppInstalledToAppList(const std::string& extension_id) {} | 200 void WebstoreResult::OnAppInstalledToAppList(const std::string& extension_id) {} |
| 200 | 201 |
| 201 void WebstoreResult::OnShutdown() { | 202 void WebstoreResult::OnShutdown() { |
| 202 StopObservingInstall(); | 203 StopObservingInstall(); |
| 203 } | 204 } |
| 204 | 205 |
| 205 ChromeSearchResultType WebstoreResult::GetType() { | 206 ChromeSearchResultType WebstoreResult::GetType() { |
| 206 return SEARCH_WEBSTORE_SEARCH_RESULT; | 207 return SEARCH_WEBSTORE_SEARCH_RESULT; |
| 207 } | 208 } |
| 208 | 209 |
| 209 } // namespace app_list | 210 } // namespace app_list |
| OLD | NEW |