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

Unified Diff: chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.h

Issue 2540433002: Reland "Propagate information about how ARC apps are launched" (Closed)
Patch Set: Fixed use-after-free Created 4 years 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_deferred_launcher_controller.h
diff --git a/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.h b/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.h
index 9d8cebb0898ba98a1c36cef660c963d76e3f45ad..d4491ca97740960d714ef3e4b1e5cb05e163e267 100644
--- a/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.h
+++ b/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_UI_ASH_LAUNCHER_ARC_APP_DEFERRED_LAUNCHER_CONTROLLER_H_
#include <map>
+#include <string>
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
@@ -17,6 +18,9 @@
class ArcAppDeferredLauncherItemController;
class ChromeLauncherControllerImpl;
+// ArcAppDeferredLauncherController displays visual feedback that the ARC
+// application the user has just activated is waiting for ARC to be ready, and
+// will be asynchronously launched as soon as it can.
class ArcAppDeferredLauncherController
: public ArcAppListPrefs::Observer,
public arc::ArcSessionManager::Observer {
@@ -29,8 +33,10 @@ class ArcAppDeferredLauncherController
base::TimeDelta GetActiveTime(const std::string& app_id) const;
- // Registers deferred Arc app launch.
- void RegisterDeferredLaunch(const std::string& app_id);
+ // Registers deferred ARC app launch. |app_id| is the app to be launched, and
+ // |event_flags| describes the original event flags that triggered the app's
+ // activation.
+ void RegisterDeferredLaunch(const std::string& app_id, int event_flags);
// Applies spinning effect if requested app is handled by deferred controller.
void MaybeApplySpinningEffect(const std::string& app_id,

Powered by Google App Engine
This is Rietveld 408576698