| 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 12 matching lines...) Expand all Loading... |
| 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 ResetModel, | 25 class ResetScreen : public ResetModel, |
| 26 public UpdateEngineClient::Observer { | 26 public UpdateEngineClient::Observer { |
| 27 public: | 27 public: |
| 28 ResetScreen(BaseScreenDelegate* base_screen_delegate, | 28 ResetScreen(BaseScreenDelegate* base_screen_delegate, |
| 29 ResetView* view); | 29 ResetView* view); |
| 30 ~ResetScreen() override; | 30 ~ResetScreen() override; |
| 31 | 31 |
| 32 // ResetModel implementation: | 32 // ResetModel implementation: |
| 33 void PrepareToShow() override; | |
| 34 void Show() override; | 33 void Show() override; |
| 35 void Hide() override; | 34 void Hide() override; |
| 36 void OnViewDestroyed(ResetView* view) override; | 35 void OnViewDestroyed(ResetView* view) override; |
| 37 void OnUserAction(const std::string& action_id) override; | 36 void OnUserAction(const std::string& action_id) override; |
| 38 | 37 |
| 39 // UpdateEngineClient::Observer implementation: | 38 // UpdateEngineClient::Observer implementation: |
| 40 void UpdateStatusChanged(const UpdateEngineClient::Status& status) override; | 39 void UpdateStatusChanged(const UpdateEngineClient::Status& status) override; |
| 41 | 40 |
| 42 void OnRollbackCheck(bool can_rollback); | 41 void OnRollbackCheck(bool can_rollback); |
| 43 | 42 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 67 scoped_refptr<HelpAppLauncher> help_app_; | 66 scoped_refptr<HelpAppLauncher> help_app_; |
| 68 | 67 |
| 69 base::WeakPtrFactory<ResetScreen> weak_ptr_factory_; | 68 base::WeakPtrFactory<ResetScreen> weak_ptr_factory_; |
| 70 | 69 |
| 71 DISALLOW_COPY_AND_ASSIGN(ResetScreen); | 70 DISALLOW_COPY_AND_ASSIGN(ResetScreen); |
| 72 }; | 71 }; |
| 73 | 72 |
| 74 } // namespace chromeos | 73 } // namespace chromeos |
| 75 | 74 |
| 76 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_RESET_SCREEN_H_ | 75 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_RESET_SCREEN_H_ |
| OLD | NEW |