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

Unified Diff: chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_launcher.h

Issue 2649103006: arc: Add splash screen for ARC++ Kiosk startup (Closed)
Patch Set: achuithb@ comments Created 3 years, 10 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
« no previous file with comments | « chrome/browser/chromeos/BUILD.gn ('k') | chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_launcher.h
diff --git a/chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_launcher.h b/chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_launcher.h
index f854a70b65153b3a0bdd1c6d1d313af0acf5371a..2dd97dbbc29588b361dfea64557658587a671a06 100644
--- a/chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_launcher.h
+++ b/chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_launcher.h
@@ -19,9 +19,22 @@ class ArcKioskAppLauncher : public ArcAppListPrefs::Observer,
public aura::EnvObserver,
public aura::WindowObserver {
public:
+ class Delegate {
+ public:
+ Delegate() = default;
+ virtual void OnAppWindowLaunched() = 0;
+
+ protected:
+ virtual ~Delegate() = default;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(Delegate);
+ };
+
ArcKioskAppLauncher(content::BrowserContext* context,
ArcAppListPrefs* prefs,
- const std::string& app_id);
+ const std::string& app_id,
+ Delegate* delegate);
~ArcKioskAppLauncher() override;
@@ -49,6 +62,8 @@ class ArcKioskAppLauncher : public ArcAppListPrefs::Observer,
ArcAppListPrefs* const prefs_;
int task_id_ = -1;
std::set<aura::Window*> windows_;
+ // Not owning the delegate, delegate owns this class.
+ Delegate* const delegate_;
DISALLOW_COPY_AND_ASSIGN(ArcKioskAppLauncher);
};
« no previous file with comments | « chrome/browser/chromeos/BUILD.gn ('k') | chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698