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..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); |
| }; |