| 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/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "chrome/browser/chromeos/login/screens/eula_view.h" | 11 #include "chrome/browser/chromeos/login/screens/eula_view.h" |
| 12 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" | 12 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" |
| 13 #include "chromeos/tpm/tpm_password_fetcher.h" | 13 #include "chromeos/tpm/tpm_password_fetcher.h" |
| 14 #include "components/login/secure_module_util_chromeos.h" |
| 14 #include "content/public/browser/web_ui.h" | 15 #include "content/public/browser/web_ui.h" |
| 15 | 16 |
| 16 namespace base { | 17 namespace base { |
| 17 class DictionaryValue; | 18 class DictionaryValue; |
| 18 } | 19 } |
| 19 | 20 |
| 20 namespace chromeos { | 21 namespace chromeos { |
| 21 | 22 |
| 22 class CoreOobeView; | 23 class CoreOobeView; |
| 23 class HelpAppLauncher; | 24 class HelpAppLauncher; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 45 void GetAdditionalParameters(base::DictionaryValue* dict) override; | 46 void GetAdditionalParameters(base::DictionaryValue* dict) override; |
| 46 void Initialize() override; | 47 void Initialize() override; |
| 47 | 48 |
| 48 private: | 49 private: |
| 49 // JS messages handlers. | 50 // JS messages handlers. |
| 50 void HandleOnLearnMore(); | 51 void HandleOnLearnMore(); |
| 51 void HandleOnChromeCredits(); | 52 void HandleOnChromeCredits(); |
| 52 void HandleOnChromeOSCredits(); | 53 void HandleOnChromeOSCredits(); |
| 53 void HandleOnInstallationSettingsPopupOpened(); | 54 void HandleOnInstallationSettingsPopupOpened(); |
| 54 | 55 |
| 56 void UpdateLocalizedValues(::login::SecureModuleUsed secure_module_used); |
| 57 |
| 55 EulaScreen* screen_ = nullptr; | 58 EulaScreen* screen_ = nullptr; |
| 56 CoreOobeView* core_oobe_view_ = nullptr; | 59 CoreOobeView* core_oobe_view_ = nullptr; |
| 57 | 60 |
| 58 // Help application used for help dialogs. | 61 // Help application used for help dialogs. |
| 59 scoped_refptr<HelpAppLauncher> help_app_; | 62 scoped_refptr<HelpAppLauncher> help_app_; |
| 60 | 63 |
| 61 // Keeps whether screen should be shown right after initialization. | 64 // Keeps whether screen should be shown right after initialization. |
| 62 bool show_on_init_ = false; | 65 bool show_on_init_ = false; |
| 63 | 66 |
| 67 base::WeakPtrFactory<EulaScreenHandler> weak_factory_; |
| 68 |
| 64 DISALLOW_COPY_AND_ASSIGN(EulaScreenHandler); | 69 DISALLOW_COPY_AND_ASSIGN(EulaScreenHandler); |
| 65 }; | 70 }; |
| 66 | 71 |
| 67 } // namespace chromeos | 72 } // namespace chromeos |
| 68 | 73 |
| 69 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_EULA_SCREEN_HANDLER_H_ | 74 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_EULA_SCREEN_HANDLER_H_ |
| OLD | NEW |