Chromium Code Reviews| Index: chrome/browser/chromeos/login/screens/reset_model.h |
| diff --git a/chrome/browser/chromeos/login/screens/reset_model.h b/chrome/browser/chromeos/login/screens/reset_model.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..150615acdb48d1cabc38ec209067faf175d8411c |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/login/screens/reset_model.h |
| @@ -0,0 +1,61 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_RESET_MODEL_H_ |
| +#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_RESET_MODEL_H_ |
| + |
| +#include <string> |
| + |
| +#include "chrome/browser/chromeos/login/screens/base_screen.h" |
| + |
| +namespace chromeos { |
| + |
| +class BaseScreenDelegate; |
| +class ResetView; |
| + |
| +class ResetModel : public BaseScreen { |
| + public: |
| + static const char kUserActionCancelReset[]; |
| + static const char kUserActionResetRestartPressed[]; |
| + static const char kUserActionResetPowerwashPressed[]; |
| + static const char kUserActionResetLearnMorePressed[]; |
| + static const char kUserActionResetRollbackToggled[]; |
| + static const char kUserActionResetShowConfirmationPressed[]; |
| + static const char kContextKeyIsRestartRequired[]; |
| + static const char kContextKeyIsRollbackAvailable[]; |
| + static const char kContextKeyIsRollbackChecked[]; |
| + static const char kContextKeyIsConfirmational[]; |
| + static const char kContextKeyIsOfficialBuild[]; |
| + static const char kContextKeyScreenState[]; |
| + |
| + explicit ResetModel(BaseScreenDelegate* base_screen_delegate); |
| + ~ResetModel() override; |
| + |
| + // BaseScreen implementation: |
| + std::string GetName() const override; |
| + |
| + // 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.
|
| + virtual void OnCancel() = 0; |
| + |
| + // Called when user pushes button that leads directly to powerwash/rollback |
| + // activity. |
| + virtual void OnPowerwash() = 0; |
| + |
| + virtual void OnRestart() = 0; |
| + |
| + // Called when user tries to un/toggle rollback case of powerwash. |
| + virtual void OnToggleRollback() = 0; |
| + |
| + |
| + virtual void OnShowConfirm() = 0; |
| + |
| + virtual void OnLearnMore() = 0; |
| + |
| + // Called when actor is destroyed so there's no dead reference to it. |
| + virtual void OnViewDestroyed(ResetView* view) = 0; |
| +}; |
| + |
| +} // namespace chromeos |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_RESET_MODEL_H_ |