| 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_item_controll
er.h" | 5 #include "chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controll
er.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 bool ArcAppDeferredLauncherItemController::CanPin() const { | 54 bool ArcAppDeferredLauncherItemController::CanPin() const { |
| 55 return true; | 55 return true; |
| 56 } | 56 } |
| 57 | 57 |
| 58 ash::ShelfMenuModel* | 58 ash::ShelfMenuModel* |
| 59 ArcAppDeferredLauncherItemController::CreateApplicationMenu(int event_flags) { | 59 ArcAppDeferredLauncherItemController::CreateApplicationMenu(int event_flags) { |
| 60 return nullptr; | 60 return nullptr; |
| 61 } | 61 } |
| 62 | 62 |
| 63 bool ArcAppDeferredLauncherItemController::IsDraggable() { | |
| 64 return false; | |
| 65 } | |
| 66 | |
| 67 void ArcAppDeferredLauncherItemController::Close() { | 63 void ArcAppDeferredLauncherItemController::Close() { |
| 68 if (host_) | 64 if (host_) |
| 69 host_->Close(app_id()); | 65 host_->Close(app_id()); |
| 70 } | 66 } |
| 71 | 67 |
| 72 bool ArcAppDeferredLauncherItemController::IsVisible() const { | 68 bool ArcAppDeferredLauncherItemController::IsVisible() const { |
| 73 return true; | 69 return true; |
| 74 } | 70 } |
| 75 | 71 |
| 76 void ArcAppDeferredLauncherItemController::Launch(ash::LaunchSource source, | 72 void ArcAppDeferredLauncherItemController::Launch(ash::LaunchSource source, |
| 77 int event_flags) {} | 73 int event_flags) {} |
| 78 | 74 |
| 79 ash::ShelfItemDelegate::PerformedAction | 75 ash::ShelfItemDelegate::PerformedAction |
| 80 ArcAppDeferredLauncherItemController::Activate(ash::LaunchSource source) { | 76 ArcAppDeferredLauncherItemController::Activate(ash::LaunchSource source) { |
| 81 return ash::ShelfItemDelegate::kNoAction; | 77 return ash::ShelfItemDelegate::kNoAction; |
| 82 } | 78 } |
| 83 | 79 |
| 84 ChromeLauncherAppMenuItems | 80 ChromeLauncherAppMenuItems |
| 85 ArcAppDeferredLauncherItemController::GetApplicationList(int event_flags) { | 81 ArcAppDeferredLauncherItemController::GetApplicationList(int event_flags) { |
| 86 return ChromeLauncherAppMenuItems(); | 82 return ChromeLauncherAppMenuItems(); |
| 87 } | 83 } |
| OLD | NEW |