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

Side by Side Diff: chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.cc

Issue 2860503002: mash: Replace int ShelfIDs with AppLaunchID strings. (Closed)
Patch Set: Fix struct traits typo. Created 3 years, 7 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 unified diff | Download patch
OLDNEW
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"
11 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h" 11 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h"
12 #include "chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.h" 12 #include "chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.h"
13 #include "chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h" 13 #include "chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h"
14 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" 14 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h"
15 15
16 ArcAppDeferredLauncherItemController::ArcAppDeferredLauncherItemController( 16 ArcAppDeferredLauncherItemController::ArcAppDeferredLauncherItemController(
17 const std::string& arc_app_id, 17 const std::string& arc_app_id,
18 int event_flags, 18 int event_flags,
19 const base::WeakPtr<ArcAppDeferredLauncherController>& host) 19 const base::WeakPtr<ArcAppDeferredLauncherController>& host)
20 : ash::ShelfItemDelegate(ash::AppLaunchId(arc_app_id)), 20 : ash::ShelfItemDelegate(ash::ShelfID(arc_app_id)),
21 event_flags_(event_flags), 21 event_flags_(event_flags),
22 host_(host), 22 host_(host),
23 start_time_(base::Time::Now()) {} 23 start_time_(base::Time::Now()) {}
24 24
25 ArcAppDeferredLauncherItemController::~ArcAppDeferredLauncherItemController() { 25 ArcAppDeferredLauncherItemController::~ArcAppDeferredLauncherItemController() {
26 if (host_) 26 if (host_)
27 host_->Remove(app_id()); 27 host_->Remove(app_id());
28 } 28 }
29 29
30 base::TimeDelta ArcAppDeferredLauncherItemController::GetActiveTime() const { 30 base::TimeDelta ArcAppDeferredLauncherItemController::GetActiveTime() const {
(...skipping 11 matching lines...) Expand all
42 void ArcAppDeferredLauncherItemController::ExecuteCommand(uint32_t command_id, 42 void ArcAppDeferredLauncherItemController::ExecuteCommand(uint32_t command_id,
43 int32_t event_flags) { 43 int32_t event_flags) {
44 // This delegate does not support showing an application menu. 44 // This delegate does not support showing an application menu.
45 NOTIMPLEMENTED(); 45 NOTIMPLEMENTED();
46 } 46 }
47 47
48 void ArcAppDeferredLauncherItemController::Close() { 48 void ArcAppDeferredLauncherItemController::Close() {
49 if (host_) 49 if (host_)
50 host_->Close(app_id()); 50 host_->Close(app_id());
51 } 51 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698