Chromium Code Reviews| Index: chrome/browser/ui/webui/chromeos/login/arc_kiosk_splash_screen_handler.h |
| diff --git a/chrome/browser/ui/webui/chromeos/login/arc_kiosk_splash_screen_handler.h b/chrome/browser/ui/webui/chromeos/login/arc_kiosk_splash_screen_handler.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e4b6fe59dd59478a814465b32668d9f5faf51a46 |
| --- /dev/null |
| +++ b/chrome/browser/ui/webui/chromeos/login/arc_kiosk_splash_screen_handler.h |
| @@ -0,0 +1,54 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ARC_KIOSK_SPLASH_SCREEN_HANDLER_H_ |
| +#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ARC_KIOSK_SPLASH_SCREEN_HANDLER_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/macros.h" |
| +#include "chrome/browser/chromeos/login/screens/arc_kiosk_splash_screen_actor.h" |
| +#include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" |
| + |
| +namespace base { |
| +class DictionaryValue; |
| +} |
| + |
| +namespace chromeos { |
| + |
| +// A class that handles the WebUI hooks for the ARC kiosk splash screen. |
| +class ArcKioskSplashScreenHandler : public BaseScreenHandler, |
| + public ArcKioskSplashScreenActor { |
| + public: |
| + ArcKioskSplashScreenHandler(); |
| + ~ArcKioskSplashScreenHandler() override; |
| + |
| + // BaseScreenHandler implementation: |
|
achuithb
2017/02/03 00:35:00
Can you make everything below this private? I beli
Sergey Poromov
2017/02/03 15:15:36
Done.
|
| + void DeclareLocalizedValues( |
| + ::login::LocalizedValuesBuilder* builder) override; |
| + void Initialize() override; |
| + |
| + // WebUIMessageHandler implementation: |
| + void RegisterMessages() override; |
| + |
| + // ArcKioskSplashScreenActor implementation: |
| + void Show() override; |
| + void UpdateArcKioskState(ArcKioskState state) override; |
| + void SetDelegate(ArcKioskSplashScreenHandler::Delegate* delegate) override; |
| + |
| + private: |
| + void PopulateAppInfo(base::DictionaryValue* out_info); |
| + void SetLaunchText(const std::string& text); |
| + int GetProgressMessageFromState(ArcKioskState state); |
| + void HandleCancelArcKioskLaunch(); |
| + |
| + ArcKioskSplashScreenHandler::Delegate* delegate_; |
|
achuithb
2017/02/03 00:35:00
= nullptr;
Sergey Poromov
2017/02/03 15:15:36
Done.
|
| + bool show_on_init_; |
|
achuithb
2017/02/03 00:35:00
initialize this here rather than ctor
Sergey Poromov
2017/02/03 15:15:36
Done.
|
| + |
| + DISALLOW_COPY_AND_ASSIGN(ArcKioskSplashScreenHandler); |
| +}; |
| + |
| +} // namespace chromeos |
| + |
| +#endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ARC_KIOSK_SPLASH_SCREEN_HANDLER_H_ |