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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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() { | 63 bool ArcAppDeferredLauncherItemController::IsDraggable() { |
64 return false; | 64 return false; |
65 } | 65 } |
66 | 66 |
67 bool ArcAppDeferredLauncherItemController::ShouldShowTooltip() { | |
68 return true; | |
69 } | |
70 | |
71 void ArcAppDeferredLauncherItemController::Close() { | 67 void ArcAppDeferredLauncherItemController::Close() { |
72 if (host_) | 68 if (host_) |
73 host_->Close(app_id()); | 69 host_->Close(app_id()); |
74 } | 70 } |
75 | 71 |
76 bool ArcAppDeferredLauncherItemController::IsVisible() const { | 72 bool ArcAppDeferredLauncherItemController::IsVisible() const { |
77 return true; | 73 return true; |
78 } | 74 } |
79 | 75 |
80 void ArcAppDeferredLauncherItemController::Launch(ash::LaunchSource source, | 76 void ArcAppDeferredLauncherItemController::Launch(ash::LaunchSource source, |
81 int event_flags) {} | 77 int event_flags) {} |
82 | 78 |
83 ash::ShelfItemDelegate::PerformedAction | 79 ash::ShelfItemDelegate::PerformedAction |
84 ArcAppDeferredLauncherItemController::Activate(ash::LaunchSource source) { | 80 ArcAppDeferredLauncherItemController::Activate(ash::LaunchSource source) { |
85 return ash::ShelfItemDelegate::kNoAction; | 81 return ash::ShelfItemDelegate::kNoAction; |
86 } | 82 } |
87 | 83 |
88 ChromeLauncherAppMenuItems | 84 ChromeLauncherAppMenuItems |
89 ArcAppDeferredLauncherItemController::GetApplicationList(int event_flags) { | 85 ArcAppDeferredLauncherItemController::GetApplicationList(int event_flags) { |
90 return ChromeLauncherAppMenuItems(); | 86 return ChromeLauncherAppMenuItems(); |
91 } | 87 } |
OLD | NEW |