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

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: use base::Bind for timer start Created 3 years, 11 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/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..6c48df8dea0cb5264810d0b364a534a4cd988e0e 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,18 @@ class ArcKioskAppLauncher : public ArcAppListPrefs::Observer,
public aura::EnvObserver,
public aura::WindowObserver {
public:
+ class Delegate {
+ public:
+ virtual void OnAppWindowLaunched() = 0;
+
+ protected:
+ virtual ~Delegate() = default;
achuithb 2017/02/03 00:35:00 Let's also have a private section with DISALLOW_CO
Sergey Poromov 2017/02/03 15:15:36 Done.
+ };
+
ArcKioskAppLauncher(content::BrowserContext* context,
ArcAppListPrefs* prefs,
- const std::string& app_id);
+ const std::string& app_id,
+ Delegate* delegate);
~ArcKioskAppLauncher() override;
@@ -49,6 +58,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);
};

Powered by Google App Engine
This is Rietveld 408576698