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 29 matching lines...) Expand all Loading... |
40 ash::ShelfMenuModel* | 40 ash::ShelfMenuModel* |
41 ArcAppDeferredLauncherItemController::CreateApplicationMenu(int event_flags) { | 41 ArcAppDeferredLauncherItemController::CreateApplicationMenu(int event_flags) { |
42 return nullptr; | 42 return nullptr; |
43 } | 43 } |
44 | 44 |
45 void ArcAppDeferredLauncherItemController::Close() { | 45 void ArcAppDeferredLauncherItemController::Close() { |
46 if (host_) | 46 if (host_) |
47 host_->Close(app_id()); | 47 host_->Close(app_id()); |
48 } | 48 } |
49 | 49 |
50 bool ArcAppDeferredLauncherItemController::IsVisible() const { | |
51 return true; | |
52 } | |
53 | |
54 void ArcAppDeferredLauncherItemController::Launch(ash::LaunchSource source, | 50 void ArcAppDeferredLauncherItemController::Launch(ash::LaunchSource source, |
55 int event_flags) {} | 51 int event_flags) {} |
56 | 52 |
57 ash::ShelfItemDelegate::PerformedAction | 53 ash::ShelfItemDelegate::PerformedAction |
58 ArcAppDeferredLauncherItemController::Activate(ash::LaunchSource source) { | 54 ArcAppDeferredLauncherItemController::Activate(ash::LaunchSource source) { |
59 return ash::ShelfItemDelegate::kNoAction; | 55 return ash::ShelfItemDelegate::kNoAction; |
60 } | 56 } |
61 | 57 |
62 ChromeLauncherAppMenuItems | 58 ChromeLauncherAppMenuItems |
63 ArcAppDeferredLauncherItemController::GetApplicationList(int event_flags) { | 59 ArcAppDeferredLauncherItemController::GetApplicationList(int event_flags) { |
64 return ChromeLauncherAppMenuItems(); | 60 return ChromeLauncherAppMenuItems(); |
65 } | 61 } |
OLD | NEW |