Chromium Code Reviews| 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 kContextKeyIsRestartRequired[]; | |
| 26 static const char kContextKeyIsRollbackAvailable[]; | |
| 27 static const char kContextKeyIsRollbackChecked[]; | |
| 28 static const char kContextKeyIsConfirmational[]; | |
| 29 static const char kContextKeyIsOfficialBuild[]; | |
| 30 static const char kContextKeyScreenState[]; | |
| 31 | |
| 32 explicit ResetModel(BaseScreenDelegate* base_screen_delegate); | |
| 33 ~ResetModel() override; | |
| 34 | |
| 35 // BaseScreen implementation: | |
| 36 std::string GetName() const override; | |
| 37 | |
| 38 // Called when user pushes cancel or ESC button. | |
|
dzhioev (left Google)
2015/02/11 12:38:29
Do we need to reveal all the On* methods in ResetM
merkulova
2015/02/11 15:07:17
Done.
| |
| 39 virtual void OnCancel() = 0; | |
| 40 | |
| 41 // Called when user pushes button that leads directly to powerwash/rollback | |
| 42 // activity. | |
| 43 virtual void OnPowerwash() = 0; | |
| 44 | |
| 45 virtual void OnRestart() = 0; | |
| 46 | |
| 47 // Called when user tries to un/toggle rollback case of powerwash. | |
| 48 virtual void OnToggleRollback() = 0; | |
| 49 | |
| 50 | |
| 51 virtual void OnShowConfirm() = 0; | |
| 52 | |
| 53 virtual void OnLearnMore() = 0; | |
| 54 | |
| 55 // Called when actor is destroyed so there's no dead reference to it. | |
| 56 virtual void OnViewDestroyed(ResetView* view) = 0; | |
| 57 }; | |
| 58 | |
| 59 } // namespace chromeos | |
| 60 | |
| 61 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_RESET_MODEL_H_ | |
| OLD | NEW |