| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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_CHROMEOS_LOGIN_SCREENS_RESET_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_RESET_SCREEN_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_RESET_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_RESET_SCREEN_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class ErrorScreen; | 21 class ErrorScreen; |
| 22 class ResetView; | 22 class ResetView; |
| 23 | 23 |
| 24 // Representation independent class that controls screen showing reset to users. | 24 // Representation independent class that controls screen showing reset to users. |
| 25 class ResetScreen : public BaseScreen, public UpdateEngineClient::Observer { | 25 class ResetScreen : public BaseScreen, public UpdateEngineClient::Observer { |
| 26 public: | 26 public: |
| 27 ResetScreen(BaseScreenDelegate* base_screen_delegate, | 27 ResetScreen(BaseScreenDelegate* base_screen_delegate, |
| 28 ResetView* view); | 28 ResetView* view); |
| 29 ~ResetScreen() override; | 29 ~ResetScreen() override; |
| 30 | 30 |
| 31 // Called when actor is destroyed so there's no dead reference to it. | 31 // Called when view is destroyed so there's no dead reference to it. |
| 32 void OnViewDestroyed(ResetView* view); | 32 void OnViewDestroyed(ResetView* view); |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 // BaseScreen implementation: | 35 // BaseScreen implementation: |
| 36 void Show() override; | 36 void Show() override; |
| 37 void Hide() override; | 37 void Hide() override; |
| 38 void OnUserAction(const std::string& action_id) override; | 38 void OnUserAction(const std::string& action_id) override; |
| 39 | 39 |
| 40 // UpdateEngineClient::Observer implementation: | 40 // UpdateEngineClient::Observer implementation: |
| 41 void UpdateStatusChanged(const UpdateEngineClient::Status& status) override; | 41 void UpdateStatusChanged(const UpdateEngineClient::Status& status) override; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 66 scoped_refptr<HelpAppLauncher> help_app_; | 66 scoped_refptr<HelpAppLauncher> help_app_; |
| 67 | 67 |
| 68 base::WeakPtrFactory<ResetScreen> weak_ptr_factory_; | 68 base::WeakPtrFactory<ResetScreen> weak_ptr_factory_; |
| 69 | 69 |
| 70 DISALLOW_COPY_AND_ASSIGN(ResetScreen); | 70 DISALLOW_COPY_AND_ASSIGN(ResetScreen); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace chromeos | 73 } // namespace chromeos |
| 74 | 74 |
| 75 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_RESET_SCREEN_H_ | 75 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_RESET_SCREEN_H_ |
| OLD | NEW |