| 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_CORE_OOBE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_CORE_OOBE_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_CORE_OOBE_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_CORE_OOBE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" | 10 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 virtual void OnEnterpriseInfoUpdated( | 55 virtual void OnEnterpriseInfoUpdated( |
| 56 const std::string& message_text) override; | 56 const std::string& message_text) override; |
| 57 | 57 |
| 58 // Show or hide OOBE UI. | 58 // Show or hide OOBE UI. |
| 59 void ShowOobeUI(bool show); | 59 void ShowOobeUI(bool show); |
| 60 | 60 |
| 61 bool show_oobe_ui() const { | 61 bool show_oobe_ui() const { |
| 62 return show_oobe_ui_; | 62 return show_oobe_ui_; |
| 63 } | 63 } |
| 64 | 64 |
| 65 // If |shutdown_button_visible| is true, the shutdown button becomes visible |
| 66 // and the reboot button is hidden. Vice versa if |shutdown_button_visible| is |
| 67 // false. |
| 68 void UpdateShutdownButtonVisibility(bool shutdown_button_visible); |
| 69 |
| 65 private: | 70 private: |
| 66 // CoreOobeActor implementation: | 71 // CoreOobeActor implementation: |
| 67 virtual void ShowSignInError( | 72 virtual void ShowSignInError( |
| 68 int login_attempts, | 73 int login_attempts, |
| 69 const std::string& error_text, | 74 const std::string& error_text, |
| 70 const std::string& help_link_text, | 75 const std::string& help_link_text, |
| 71 HelpAppLauncher::HelpTopic help_topic_id) override; | 76 HelpAppLauncher::HelpTopic help_topic_id) override; |
| 72 virtual void ShowTpmError() override; | 77 virtual void ShowTpmError() override; |
| 73 virtual void ShowSignInUI(const std::string& email) override; | 78 virtual void ShowSignInUI(const std::string& email) override; |
| 74 virtual void ResetSignInUI(bool force_online) override; | 79 virtual void ResetSignInUI(bool force_online) override; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 scoped_ptr<AccessibilityStatusSubscription> accessibility_subscription_; | 151 scoped_ptr<AccessibilityStatusSubscription> accessibility_subscription_; |
| 147 | 152 |
| 148 DemoModeDetector demo_mode_detector_; | 153 DemoModeDetector demo_mode_detector_; |
| 149 | 154 |
| 150 DISALLOW_COPY_AND_ASSIGN(CoreOobeHandler); | 155 DISALLOW_COPY_AND_ASSIGN(CoreOobeHandler); |
| 151 }; | 156 }; |
| 152 | 157 |
| 153 } // namespace chromeos | 158 } // namespace chromeos |
| 154 | 159 |
| 155 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_CORE_OOBE_HANDLER_H_ | 160 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_CORE_OOBE_HANDLER_H_ |
| OLD | NEW |