| 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 28 matching lines...) Expand all Loading... |
| 39 virtual void OnPasswordFetched(const std::string& tpm_password) override; | 39 virtual void OnPasswordFetched(const std::string& tpm_password) override; |
| 40 | 40 |
| 41 // BaseScreenHandler implementation: | 41 // BaseScreenHandler implementation: |
| 42 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) override; | 42 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) override; |
| 43 virtual void DeclareJSCallbacks() override; | 43 virtual void DeclareJSCallbacks() override; |
| 44 virtual void GetAdditionalParameters(base::DictionaryValue* dict) override; | 44 virtual void GetAdditionalParameters(base::DictionaryValue* dict) override; |
| 45 virtual void Initialize() override; | 45 virtual void Initialize() override; |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 // JS messages handlers. | 48 // JS messages handlers. |
| 49 void HandleAcceptButtonClicked(); | |
| 50 void HandleBackButtonClicked(); | |
| 51 void HandleOnLearnMore(); | 49 void HandleOnLearnMore(); |
| 52 void HandleOnChromeCredits(); | 50 void HandleOnChromeCredits(); |
| 53 void HandleOnChromeOSCredits(); | 51 void HandleOnChromeOSCredits(); |
| 54 void HandleOnInstallationSettingsPopupOpened(); | 52 void HandleOnInstallationSettingsPopupOpened(); |
| 55 | 53 |
| 56 EulaModel* model_; | 54 EulaModel* model_; |
| 57 CoreOobeActor* core_oobe_actor_; | 55 CoreOobeActor* core_oobe_actor_; |
| 58 | 56 |
| 59 // Help application used for help dialogs. | 57 // Help application used for help dialogs. |
| 60 scoped_refptr<HelpAppLauncher> help_app_; | 58 scoped_refptr<HelpAppLauncher> help_app_; |
| 61 | 59 |
| 62 // Keeps whether screen should be shown right after initialization. | 60 // Keeps whether screen should be shown right after initialization. |
| 63 bool show_on_init_; | 61 bool show_on_init_; |
| 64 | 62 |
| 65 DISALLOW_COPY_AND_ASSIGN(EulaScreenHandler); | 63 DISALLOW_COPY_AND_ASSIGN(EulaScreenHandler); |
| 66 }; | 64 }; |
| 67 | 65 |
| 68 } // namespace chromeos | 66 } // namespace chromeos |
| 69 | 67 |
| 70 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_EULA_SCREEN_HANDLER_H_ | 68 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_EULA_SCREEN_HANDLER_H_ |
| OLD | NEW |