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

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

Issue 2673943002: Fold UpdateModel into UpdateScreen. (Closed)
Patch Set: Address comments Created 3 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
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_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_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/mock_update_screen.cc ('k') | chrome/browser/chromeos/login/screens/update_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698