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

Side by Side Diff: chrome/browser/chromeos/login/screens/update_model.h

Issue 2549373005: cros: Refactor of BaseScreen::GetName to BaseScreen::screen_id. (Closed)
Patch Set: Nits Created 3 years, 11 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_MODEL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_MODEL_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_MODEL_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_MODEL_H_
7 7
8 #include "chrome/browser/chromeos/login/screens/base_screen.h" 8 #include "chrome/browser/chromeos/login/screens/base_screen.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
11 11
12 class BaseScreenDelegate; 12 class BaseScreenDelegate;
13 class UpdateView; 13 class UpdateView;
14 14
15 class UpdateModel : public BaseScreen { 15 class UpdateModel : public BaseScreen {
16 public: 16 public:
17 static const char kUserActionCancelUpdateShortcut[]; 17 static const char kUserActionCancelUpdateShortcut[];
18 static const char kContextKeyEstimatedTimeLeftSec[]; 18 static const char kContextKeyEstimatedTimeLeftSec[];
19 static const char kContextKeyShowEstimatedTimeLeft[]; 19 static const char kContextKeyShowEstimatedTimeLeft[];
20 static const char kContextKeyUpdateMessage[]; 20 static const char kContextKeyUpdateMessage[];
21 static const char kContextKeyShowCurtain[]; 21 static const char kContextKeyShowCurtain[];
22 static const char kContextKeyShowProgressMessage[]; 22 static const char kContextKeyShowProgressMessage[];
23 static const char kContextKeyProgress[]; 23 static const char kContextKeyProgress[];
24 static const char kContextKeyProgressMessage[]; 24 static const char kContextKeyProgressMessage[];
25 static const char kContextKeyCancelUpdateShortcutEnabled[]; 25 static const char kContextKeyCancelUpdateShortcutEnabled[];
26 26
27 explicit UpdateModel(BaseScreenDelegate* base_screen_delegate); 27 explicit UpdateModel(BaseScreenDelegate* base_screen_delegate);
28 ~UpdateModel() override; 28 ~UpdateModel() override;
29 29
30 // BaseScreen implementation:
31 std::string GetName() const override;
32
33 // This method is called, when view is being destroyed. Note, if model 30 // This method is called, when view is being destroyed. Note, if model
34 // is destroyed earlier then it has to call Unbind(). 31 // is destroyed earlier then it has to call Unbind().
35 virtual void OnViewDestroyed(UpdateView* view) = 0; 32 virtual void OnViewDestroyed(UpdateView* view) = 0;
36 }; 33 };
37 34
38 } // namespace chromeos 35 } // namespace chromeos
39 36
40 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_MODEL_H_ 37 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698