| 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 "base/threading/thread_task_runner_handle.h" |
| 7 #include "chrome/browser/chromeos/arc/arc_support_host.h" | 8 #include "chrome/browser/chromeos/arc/arc_support_host.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/ui/app_list/arc/arc_app_utils.h" | 10 #include "chrome/browser/ui/app_list/arc/arc_app_utils.h" |
| 10 #include "chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controll
er.h" | 11 #include "chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controll
er.h" |
| 11 #include "chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h" | 12 #include "chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h" |
| 12 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h" | 13 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h" |
| 13 #include "ui/gfx/canvas.h" | 14 #include "ui/gfx/canvas.h" |
| 14 #include "ui/gfx/image/canvas_image_source.h" | 15 #include "ui/gfx/image/canvas_image_source.h" |
| 15 #include "ui/gfx/image/image_skia_operations.h" | 16 #include "ui/gfx/image/image_skia_operations.h" |
| 16 #include "ui/gfx/paint_throbber.h" | 17 #include "ui/gfx/paint_throbber.h" |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 } else { | 210 } else { |
| 210 owner_->SetItemController(shelf_id, controller); | 211 owner_->SetItemController(shelf_id, controller); |
| 211 owner_->SetItemStatus(shelf_id, ash::STATUS_RUNNING); | 212 owner_->SetItemStatus(shelf_id, ash::STATUS_RUNNING); |
| 212 } | 213 } |
| 213 | 214 |
| 214 if (app_controller_map_.empty()) | 215 if (app_controller_map_.empty()) |
| 215 RegisterNextUpdate(); | 216 RegisterNextUpdate(); |
| 216 | 217 |
| 217 app_controller_map_[shelf_app_id] = controller; | 218 app_controller_map_[shelf_app_id] = controller; |
| 218 } | 219 } |
| OLD | NEW |