OLD | NEW |
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 base { | |
11 class ListValue; | |
12 } | |
13 | |
14 namespace chromeos { | 10 namespace chromeos { |
15 | 11 |
16 class BaseScreenDelegate; | 12 class BaseScreenDelegate; |
17 class UpdateView; | 13 class UpdateView; |
18 | 14 |
19 class UpdateModel : public BaseScreen { | 15 class UpdateModel : public BaseScreen { |
20 public: | 16 public: |
21 static const char kUserActionCancelUpdateShortcut[]; | 17 static const char kUserActionCancelUpdateShortcut[]; |
22 static const char kContextKeyEstimatedTimeLeftSec[]; | 18 static const char kContextKeyEstimatedTimeLeftSec[]; |
23 static const char kContextKeyShowEstimatedTimeLeft[]; | 19 static const char kContextKeyShowEstimatedTimeLeft[]; |
(...skipping 11 matching lines...) Expand all Loading... |
35 std::string GetName() const override; | 31 std::string GetName() const override; |
36 | 32 |
37 // This method is called, when view is being destroyed. Note, if model | 33 // This method is called, when view is being destroyed. Note, if model |
38 // is destroyed earlier then it has to call Unbind(). | 34 // is destroyed earlier then it has to call Unbind(). |
39 virtual void OnViewDestroyed(UpdateView* view) = 0; | 35 virtual void OnViewDestroyed(UpdateView* view) = 0; |
40 }; | 36 }; |
41 | 37 |
42 } // namespace chromeos | 38 } // namespace chromeos |
43 | 39 |
44 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_MODEL_H_ | 40 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_MODEL_H_ |
OLD | NEW |