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 #include "chrome/browser/chromeos/login/screens/update_model.h" | 5 #include "chrome/browser/chromeos/login/screens/update_model.h" |
6 | 6 |
7 #include "chrome/browser/chromeos/login/wizard_controller.h" | 7 #include "chrome/browser/chromeos/login/wizard_controller.h" |
8 | 8 |
9 namespace chromeos { | 9 namespace chromeos { |
10 | 10 |
11 const char UpdateModel::kUserActionCancelUpdateShortcut[] = "cancel-update"; | 11 const char UpdateModel::kUserActionCancelUpdateShortcut[] = "cancel-update"; |
12 const char UpdateModel::kContextKeyEstimatedTimeLeftSec[] = "time-left-sec"; | 12 const char UpdateModel::kContextKeyEstimatedTimeLeftSec[] = "time-left-sec"; |
13 const char UpdateModel::kContextKeyShowEstimatedTimeLeft[] = "show-time-left"; | 13 const char UpdateModel::kContextKeyShowEstimatedTimeLeft[] = "show-time-left"; |
14 const char UpdateModel::kContextKeyUpdateMessage[] = "update-msg"; | 14 const char UpdateModel::kContextKeyUpdateMessage[] = "update-msg"; |
15 const char UpdateModel::kContextKeyShowCurtain[] = "show-curtain"; | 15 const char UpdateModel::kContextKeyShowCurtain[] = "show-curtain"; |
16 const char UpdateModel::kContextKeyShowProgressMessage[] = "show-progress-msg"; | 16 const char UpdateModel::kContextKeyShowProgressMessage[] = "show-progress-msg"; |
17 const char UpdateModel::kContextKeyProgress[] = "progress"; | 17 const char UpdateModel::kContextKeyProgress[] = "progress"; |
18 const char UpdateModel::kContextKeyProgressMessage[] = "progress-msg"; | 18 const char UpdateModel::kContextKeyProgressMessage[] = "progress-msg"; |
19 const char UpdateModel::kContextKeyCancelUpdateShortcutEnabled[] = | 19 const char UpdateModel::kContextKeyCancelUpdateShortcutEnabled[] = |
20 "cancel-update-enabled"; | 20 "cancel-update-enabled"; |
21 | 21 |
22 UpdateModel::UpdateModel(BaseScreenDelegate* base_screen_delegate) | 22 UpdateModel::UpdateModel(BaseScreenDelegate* base_screen_delegate) |
23 : BaseScreen(base_screen_delegate) { | 23 : BaseScreen(base_screen_delegate, WizardController::kUpdateScreenName) {} |
24 } | |
25 | 24 |
26 UpdateModel::~UpdateModel() { | 25 UpdateModel::~UpdateModel() {} |
27 } | |
28 | |
29 std::string UpdateModel::GetName() const { | |
30 return WizardController::kUpdateScreenName; | |
31 } | |
32 | 26 |
33 } // namespace chromeos | 27 } // namespace chromeos |
OLD | NEW |