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_UPDATE_MODEL_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_MODEL_H_ | |
7 | |
8 #include "chrome/browser/chromeos/login/screens/base_screen.h" | |
9 | |
10 namespace chromeos { | |
11 | |
12 class BaseScreenDelegate; | |
13 class UpdateView; | |
14 | |
15 class UpdateModel : public BaseScreen { | |
16 public: | |
17 static const char kUserActionCancelUpdateShortcut[]; | |
18 static const char kContextKeyEstimatedTimeLeftSec[]; | |
19 static const char kContextKeyShowEstimatedTimeLeft[]; | |
20 static const char kContextKeyUpdateMessage[]; | |
21 static const char kContextKeyShowCurtain[]; | |
22 static const char kContextKeyShowProgressMessage[]; | |
23 static const char kContextKeyProgress[]; | |
24 static const char kContextKeyProgressMessage[]; | |
25 static const char kContextKeyCancelUpdateShortcutEnabled[]; | |
26 | |
27 explicit UpdateModel(BaseScreenDelegate* base_screen_delegate); | |
28 ~UpdateModel() override; | |
29 | |
30 // This method is called, when view is being destroyed. Note, if model | |
31 // is destroyed earlier then it has to call Unbind(). | |
32 virtual void OnViewDestroyed(UpdateView* view) = 0; | |
33 }; | |
34 | |
35 } // namespace chromeos | |
36 | |
37 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_MODEL_H_ | |
OLD | NEW |