Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1171)

Unified Diff: chrome/browser/chromeos/login/screens/reset_model.h

Issue 904163003: Reset Screen moved to ScreenContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include for GetNativeWindow added. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/screens/reset_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..75d11c565a7c555f523ce128268a44c4c3cce97c
--- /dev/null
+++ b/chrome/browser/chromeos/login/screens/reset_model.h
@@ -0,0 +1,45 @@
+// 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 kUserActionResetResetConfirmationDismissed[];
+ 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 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_
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/screens/reset_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698