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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/screens/reset_model.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« 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