Chromium Code Reviews| 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..0e4676127ff598c293c76c8aaff131157d8165d6 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() {} |
|
Luis Héctor Chávez
2017/01/24 18:40:24
nit: = default
Sergey Poromov
2017/01/25 14:29:21
Done.
|
| + }; |
| + |
| ArcKioskAppLauncher(content::BrowserContext* context, |
| ArcAppListPrefs* prefs, |
| - const std::string& app_id); |
| + const std::string& app_id, |
| + Delegate* delegate); |
| ~ArcKioskAppLauncher() override; |
| @@ -49,6 +58,7 @@ class ArcKioskAppLauncher : public ArcAppListPrefs::Observer, |
| ArcAppListPrefs* const prefs_; |
| int task_id_ = -1; |
| std::set<aura::Window*> windows_; |
| + Delegate* delegate_; |
|
Luis Héctor Chávez
2017/01/24 18:40:24
nit: Delegate* const delegate_;
Also note who own
Sergey Poromov
2017/01/25 14:29:21
Done.
|
| DISALLOW_COPY_AND_ASSIGN(ArcKioskAppLauncher); |
| }; |