| 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/arc_app_deferred_launcher_controller.h" | 5 #include "chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.h" |
| 6 | 6 |
| 7 #include "ash/shelf/shelf_model.h" | 7 #include "ash/public/cpp/shelf_model.h" |
| 8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
| 9 #include "base/threading/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
| 10 #include "chrome/browser/chromeos/arc/arc_util.h" | 10 #include "chrome/browser/chromeos/arc/arc_util.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/browser/ui/app_list/arc/arc_app_utils.h" | 12 #include "chrome/browser/ui/app_list/arc/arc_app_utils.h" |
| 13 #include "chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controll
er.h" | 13 #include "chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controll
er.h" |
| 14 #include "chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h" | 14 #include "chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h" |
| 15 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" | 15 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" |
| 16 #include "ui/gfx/canvas.h" | 16 #include "ui/gfx/canvas.h" |
| 17 #include "ui/gfx/image/canvas_image_source.h" | 17 #include "ui/gfx/image/canvas_image_source.h" |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 owner_->shelf_model()->SetShelfItemDelegate(shelf_id, | 213 owner_->shelf_model()->SetShelfItemDelegate(shelf_id, |
| 214 std::move(controller)); | 214 std::move(controller)); |
| 215 owner_->SetItemStatus(shelf_id, ash::STATUS_RUNNING); | 215 owner_->SetItemStatus(shelf_id, ash::STATUS_RUNNING); |
| 216 } | 216 } |
| 217 | 217 |
| 218 if (app_controller_map_.empty()) | 218 if (app_controller_map_.empty()) |
| 219 RegisterNextUpdate(); | 219 RegisterNextUpdate(); |
| 220 | 220 |
| 221 app_controller_map_[app_id] = item_controller; | 221 app_controller_map_[app_id] = item_controller; |
| 222 } | 222 } |
| OLD | NEW |