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

Unified Diff: chrome/browser/chromeos/login/screens/update_model.cc

Issue 863263006: Migrating UpdateScreen to ScreenContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: refactor Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/screens/update_model.cc
diff --git a/chrome/browser/chromeos/login/screens/update_model.cc b/chrome/browser/chromeos/login/screens/update_model.cc
new file mode 100644
index 0000000000000000000000000000000000000000..d8f2be49fa2f8b6dd32414be1e3d0479d18bdae5
--- /dev/null
+++ b/chrome/browser/chromeos/login/screens/update_model.cc
@@ -0,0 +1,33 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/chromeos/login/screens/update_model.h"
+
+#include "chrome/browser/chromeos/login/wizard_controller.h"
+
+namespace chromeos {
+
+const char UpdateModel::kUserActionCancelUpdateShortcut[] = "cancel-update";
+const char UpdateModel::kContextKeyEstimatedTimeLeftSec[] = "time-left-sec";
+const char UpdateModel::kContextKeyShowEstimatedTimeLeft[] = "show-time-left";
+const char UpdateModel::kContextKeyUpdateMessage[] = "update-msg";
+const char UpdateModel::kContextKeyShowCurtain[] = "show-curtain";
+const char UpdateModel::kContextKeyShowProgressMessage[] = "show-progress-msg";
+const char UpdateModel::kContextKeyProgress[] = "progress";
+const char UpdateModel::kContextKeyProgressMessage[] = "progress-msg";
+const char UpdateModel::kContextKeyCancelUpdateShortcutEnabled[] =
+ "cancel-update-enabled";
+
+UpdateModel::UpdateModel(BaseScreenDelegate* base_screen_delegate)
+ : BaseScreen(base_screen_delegate) {
+}
+
+UpdateModel::~UpdateModel() {
+}
+
+std::string UpdateModel::GetName() const {
+ return WizardController::kUpdateScreenName;
+}
+
+} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/login/screens/update_model.h ('k') | chrome/browser/chromeos/login/screens/update_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698