| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_EULA_SCREEN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_EULA_SCREEN_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_EULA_SCREEN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_EULA_SCREEN_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "chrome/browser/chromeos/login/screens/eula_view.h" | 10 #include "chrome/browser/chromeos/login/screens/eula_view.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 // EulaView implementation: | 33 // EulaView implementation: |
| 34 void PrepareToShow() override; | 34 void PrepareToShow() override; |
| 35 void Show() override; | 35 void Show() override; |
| 36 void Hide() override; | 36 void Hide() override; |
| 37 void Bind(EulaModel& model) override; | 37 void Bind(EulaModel& model) override; |
| 38 void Unbind() override; | 38 void Unbind() override; |
| 39 void OnPasswordFetched(const std::string& tpm_password) override; | 39 void OnPasswordFetched(const std::string& tpm_password) override; |
| 40 | 40 |
| 41 // BaseScreenHandler implementation: | 41 // BaseScreenHandler implementation: |
| 42 void DeclareLocalizedValues(LocalizedValuesBuilder* builder) override; | 42 void DeclareLocalizedValues( |
| 43 ::login::LocalizedValuesBuilder* builder) override; |
| 43 void DeclareJSCallbacks() override; | 44 void DeclareJSCallbacks() override; |
| 44 void GetAdditionalParameters(base::DictionaryValue* dict) override; | 45 void GetAdditionalParameters(base::DictionaryValue* dict) override; |
| 45 void Initialize() override; | 46 void Initialize() override; |
| 46 | 47 |
| 47 private: | 48 private: |
| 48 // JS messages handlers. | 49 // JS messages handlers. |
| 49 void HandleOnLearnMore(); | 50 void HandleOnLearnMore(); |
| 50 void HandleOnChromeCredits(); | 51 void HandleOnChromeCredits(); |
| 51 void HandleOnChromeOSCredits(); | 52 void HandleOnChromeOSCredits(); |
| 52 void HandleOnInstallationSettingsPopupOpened(); | 53 void HandleOnInstallationSettingsPopupOpened(); |
| 53 | 54 |
| 54 EulaModel* model_; | 55 EulaModel* model_; |
| 55 CoreOobeActor* core_oobe_actor_; | 56 CoreOobeActor* core_oobe_actor_; |
| 56 | 57 |
| 57 // Help application used for help dialogs. | 58 // Help application used for help dialogs. |
| 58 scoped_refptr<HelpAppLauncher> help_app_; | 59 scoped_refptr<HelpAppLauncher> help_app_; |
| 59 | 60 |
| 60 // Keeps whether screen should be shown right after initialization. | 61 // Keeps whether screen should be shown right after initialization. |
| 61 bool show_on_init_; | 62 bool show_on_init_; |
| 62 | 63 |
| 63 DISALLOW_COPY_AND_ASSIGN(EulaScreenHandler); | 64 DISALLOW_COPY_AND_ASSIGN(EulaScreenHandler); |
| 64 }; | 65 }; |
| 65 | 66 |
| 66 } // namespace chromeos | 67 } // namespace chromeos |
| 67 | 68 |
| 68 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_EULA_SCREEN_HANDLER_H_ | 69 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_EULA_SCREEN_HANDLER_H_ |
| OLD | NEW |