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

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

Issue 863263006: Migrating UpdateScreen to ScreenContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: refactor 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
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 base {
11 class ListValue;
12 }
13
14 namespace chromeos {
15
16 class BaseScreenDelegate;
17 class UpdateView;
18
19 class UpdateModel : public BaseScreen {
20 public:
21 static const char kUserActionCancelUpdateShortcut[];
22 static const char kContextKeyEstimatedTimeLeftSec[];
23 static const char kContextKeyShowEstimatedTimeLeft[];
24 static const char kContextKeyUpdateMessage[];
25 static const char kContextKeyShowCurtain[];
26 static const char kContextKeyShowProgressMessage[];
27 static const char kContextKeyProgress[];
28 static const char kContextKeyProgressMessage[];
29 static const char kContextKeyCancelUpdateShortcutEnabled[];
30
31 explicit UpdateModel(BaseScreenDelegate* base_screen_delegate);
32 ~UpdateModel() override;
33
34 // BaseScreen implementation:
35 std::string GetName() const override;
36
37 // This method is called, when view is being destroyed. Note, if model
38 // is destroyed earlier then it has to call Unbind().
39 virtual void OnViewDestroyed(UpdateView* view) = 0;
40
41 // Called any time a new network connect request occurs.
42 virtual void OnConnectToNetworkRequested() = 0;
43 };
44
45 } // namespace chromeos
46
47 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/network_screen.h ('k') | chrome/browser/chromeos/login/screens/update_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698