| 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" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 void GetAdditionalParameters(base::DictionaryValue* dict) override; | 45 void GetAdditionalParameters(base::DictionaryValue* dict) override; |
| 46 void Initialize() override; | 46 void Initialize() override; |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 // JS messages handlers. | 49 // JS messages handlers. |
| 50 void HandleOnLearnMore(); | 50 void HandleOnLearnMore(); |
| 51 void HandleOnChromeCredits(); | 51 void HandleOnChromeCredits(); |
| 52 void HandleOnChromeOSCredits(); | 52 void HandleOnChromeOSCredits(); |
| 53 void HandleOnInstallationSettingsPopupOpened(); | 53 void HandleOnInstallationSettingsPopupOpened(); |
| 54 | 54 |
| 55 void UpdateLocalizedValues(); |
| 56 |
| 55 EulaScreen* screen_ = nullptr; | 57 EulaScreen* screen_ = nullptr; |
| 56 CoreOobeView* core_oobe_view_ = nullptr; | 58 CoreOobeView* core_oobe_view_ = nullptr; |
| 57 | 59 |
| 58 // Help application used for help dialogs. | 60 // Help application used for help dialogs. |
| 59 scoped_refptr<HelpAppLauncher> help_app_; | 61 scoped_refptr<HelpAppLauncher> help_app_; |
| 60 | 62 |
| 61 // Keeps whether screen should be shown right after initialization. | 63 // Keeps whether screen should be shown right after initialization. |
| 62 bool show_on_init_ = false; | 64 bool show_on_init_ = false; |
| 63 | 65 |
| 66 base::WeakPtrFactory<EulaScreenHandler> weak_factory_; |
| 67 |
| 64 DISALLOW_COPY_AND_ASSIGN(EulaScreenHandler); | 68 DISALLOW_COPY_AND_ASSIGN(EulaScreenHandler); |
| 65 }; | 69 }; |
| 66 | 70 |
| 67 } // namespace chromeos | 71 } // namespace chromeos |
| 68 | 72 |
| 69 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_EULA_SCREEN_HANDLER_H_ | 73 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_EULA_SCREEN_HANDLER_H_ |
| OLD | NEW |