Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5038)

Unified Diff: chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.cc

Issue 2282023002: arc: Support window recreation. (Closed)
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.cc b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.cc
index 7524f30c2d34bf140b4ea7a8c5599d8338cf2e98..8396f824efae272bc9ce648068547bc82e67a29c 100644
--- a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.cc
+++ b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.cc
@@ -24,6 +24,16 @@ ArcAppWindowLauncherItemController::ArcAppWindowLauncherItemController(
ArcAppWindowLauncherItemController::~ArcAppWindowLauncherItemController() {}
+ash::ShelfItemDelegate::PerformedAction
+ArcAppWindowLauncherItemController::ItemSelected(const ui::Event& eent) {
Mr4D (OOO till 08-26) 2016/08/26 22:54:43 eent -> event?
khmel 2016/08/29 16:41:04 Done.
+ if (window_count()) {
+ return AppWindowLauncherItemController::ItemSelected(eent);
+ } else {
+ Launch(ash::LAUNCH_FROM_UNKNOWN, 0);
+ return kNewWindowCreated;
+ }
+}
+
base::string16 ArcAppWindowLauncherItemController::GetTitle() {
ArcAppListPrefs* arc_prefs =
ArcAppListPrefs::Get(launcher_controller()->GetProfile());

Powered by Google App Engine
This is Rietveld 408576698