OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_VOICE_INTERACTION_VALUE_PROP_SCRE
EN_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_VOICE_INTERACTION_VALUE_PROP_SCRE
EN_HANDLER_H_ |
| 7 |
| 8 #include <memory> |
| 9 #include <string> |
| 10 |
| 11 #include "base/macros.h" |
| 12 #include "chrome/browser/chromeos/login/screens/voice_interaction_value_prop_scr
een_view.h" |
| 13 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" |
| 14 |
| 15 namespace chromeos { |
| 16 |
| 17 class VoiceInteractionValuePropScreenHandler |
| 18 : public BaseScreenHandler, |
| 19 public VoiceInteractionValuePropScreenView { |
| 20 public: |
| 21 VoiceInteractionValuePropScreenHandler(); |
| 22 ~VoiceInteractionValuePropScreenHandler() override; |
| 23 |
| 24 // BaseScreenHandler: |
| 25 void DeclareLocalizedValues( |
| 26 ::login::LocalizedValuesBuilder* builder) override; |
| 27 |
| 28 // VoiceInteractionValuePropScreenView: |
| 29 void Bind(VoiceInteractionValuePropScreen* screen) override; |
| 30 void Unbind() override; |
| 31 void Show() override; |
| 32 void Hide() override; |
| 33 |
| 34 private: |
| 35 // BaseScreenHandler: |
| 36 void Initialize() override; |
| 37 |
| 38 VoiceInteractionValuePropScreen* screen_ = nullptr; |
| 39 |
| 40 // Whether the screen should be shown right after initialization. |
| 41 bool show_on_init_ = false; |
| 42 |
| 43 DISALLOW_COPY_AND_ASSIGN(VoiceInteractionValuePropScreenHandler); |
| 44 }; |
| 45 |
| 46 } // namespace chromeos |
| 47 |
| 48 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_VOICE_INTERACTION_VALUE_PROP_S
CREEN_HANDLER_H_ |
OLD | NEW |