OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_RESET_MODEL_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_RESET_MODEL_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "chrome/browser/chromeos/login/screens/base_screen.h" |
| 11 |
| 12 namespace chromeos { |
| 13 |
| 14 class BaseScreenDelegate; |
| 15 class ResetView; |
| 16 |
| 17 class ResetModel : public BaseScreen { |
| 18 public: |
| 19 static const char kUserActionCancelReset[]; |
| 20 static const char kUserActionResetRestartPressed[]; |
| 21 static const char kUserActionResetPowerwashPressed[]; |
| 22 static const char kUserActionResetLearnMorePressed[]; |
| 23 static const char kUserActionResetRollbackToggled[]; |
| 24 static const char kUserActionResetShowConfirmationPressed[]; |
| 25 static const char kUserActionResetResetConfirmationDismissed[]; |
| 26 static const char kContextKeyIsRestartRequired[]; |
| 27 static const char kContextKeyIsRollbackAvailable[]; |
| 28 static const char kContextKeyIsRollbackChecked[]; |
| 29 static const char kContextKeyIsConfirmational[]; |
| 30 static const char kContextKeyIsOfficialBuild[]; |
| 31 static const char kContextKeyScreenState[]; |
| 32 |
| 33 explicit ResetModel(BaseScreenDelegate* base_screen_delegate); |
| 34 ~ResetModel() override; |
| 35 |
| 36 // BaseScreen implementation: |
| 37 std::string GetName() const override; |
| 38 |
| 39 // Called when actor is destroyed so there's no dead reference to it. |
| 40 virtual void OnViewDestroyed(ResetView* view) = 0; |
| 41 }; |
| 42 |
| 43 } // namespace chromeos |
| 44 |
| 45 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_RESET_MODEL_H_ |
OLD | NEW |