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

Unified 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, 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.h
diff --git a/chrome/browser/chromeos/login/screens/update_model.h b/chrome/browser/chromeos/login/screens/update_model.h
new file mode 100644
index 0000000000000000000000000000000000000000..1d1d7c512af24e3c1199ce5a81a6f3f964eb4658
--- /dev/null
+++ b/chrome/browser/chromeos/login/screens/update_model.h
@@ -0,0 +1,47 @@
+// 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.
+
+#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_MODEL_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_MODEL_H_
+
+#include "chrome/browser/chromeos/login/screens/base_screen.h"
+
+namespace base {
+class ListValue;
+}
+
+namespace chromeos {
+
+class BaseScreenDelegate;
+class UpdateView;
+
+class UpdateModel : public BaseScreen {
+ public:
+ static const char kUserActionCancelUpdateShortcut[];
+ static const char kContextKeyEstimatedTimeLeftSec[];
+ static const char kContextKeyShowEstimatedTimeLeft[];
+ static const char kContextKeyUpdateMessage[];
+ static const char kContextKeyShowCurtain[];
+ static const char kContextKeyShowProgressMessage[];
+ static const char kContextKeyProgress[];
+ static const char kContextKeyProgressMessage[];
+ static const char kContextKeyCancelUpdateShortcutEnabled[];
+
+ explicit UpdateModel(BaseScreenDelegate* base_screen_delegate);
+ ~UpdateModel() override;
+
+ // BaseScreen implementation:
+ std::string GetName() const override;
+
+ // This method is called, when view is being destroyed. Note, if model
+ // is destroyed earlier then it has to call Unbind().
+ virtual void OnViewDestroyed(UpdateView* view) = 0;
+
+ // Called any time a new network connect request occurs.
+ virtual void OnConnectToNetworkRequested() = 0;
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_MODEL_H_
« 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