| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/ash/launcher/chrome_launcher_controller_mus.h" | 5 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.h" |
| 6 | 6 |
| 7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/profiles/profile_manager.h" | 9 #include "chrome/browser/profiles/profile_manager.h" |
| 10 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" | 10 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 NOTIMPLEMENTED(); | 268 NOTIMPLEMENTED(); |
| 269 return nullptr; | 269 return nullptr; |
| 270 } | 270 } |
| 271 | 271 |
| 272 const std::string& ChromeLauncherControllerMus::GetLaunchIDForShelfID( | 272 const std::string& ChromeLauncherControllerMus::GetLaunchIDForShelfID( |
| 273 ash::ShelfID id) { | 273 ash::ShelfID id) { |
| 274 NOTIMPLEMENTED(); | 274 NOTIMPLEMENTED(); |
| 275 return base::EmptyString(); | 275 return base::EmptyString(); |
| 276 } | 276 } |
| 277 | 277 |
| 278 const std::string& ChromeLauncherControllerMus::GetTitleForShelfID( |
| 279 ash::ShelfID id) { |
| 280 NOTIMPLEMENTED(); |
| 281 return base::EmptyString(); |
| 282 } |
| 283 |
| 278 void ChromeLauncherControllerMus::OnAppImageUpdated( | 284 void ChromeLauncherControllerMus::OnAppImageUpdated( |
| 279 const std::string& app_id, | 285 const std::string& app_id, |
| 280 const gfx::ImageSkia& image) { | 286 const gfx::ImageSkia& image) { |
| 281 if (ConnectToShelfController()) | 287 if (ConnectToShelfController()) |
| 282 shelf_controller()->SetItemImage(app_id, *image.bitmap()); | 288 shelf_controller()->SetItemImage(app_id, *image.bitmap()); |
| 283 } | 289 } |
| 284 | 290 |
| 285 void ChromeLauncherControllerMus::PinAppsFromPrefs() { | 291 void ChromeLauncherControllerMus::PinAppsFromPrefs() { |
| 286 if (!ConnectToShelfController()) | 292 if (!ConnectToShelfController()) |
| 287 return; | 293 return; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 310 app_id_to_item_delegate_.insert( | 316 app_id_to_item_delegate_.insert( |
| 311 std::make_pair(app_id, std::move(delegate))); | 317 std::make_pair(app_id, std::move(delegate))); |
| 312 | 318 |
| 313 AppIconLoader* app_icon_loader = GetAppIconLoaderForApp(app_id); | 319 AppIconLoader* app_icon_loader = GetAppIconLoaderForApp(app_id); |
| 314 if (app_icon_loader) { | 320 if (app_icon_loader) { |
| 315 app_icon_loader->FetchImage(app_id); | 321 app_icon_loader->FetchImage(app_id); |
| 316 app_icon_loader->UpdateImage(app_id); | 322 app_icon_loader->UpdateImage(app_id); |
| 317 } | 323 } |
| 318 } | 324 } |
| 319 } | 325 } |
| OLD | NEW |