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

Unified Diff: chrome/browser/chromeos/login/screens/update_view.h

Issue 863263006: Migrating UpdateScreen to ScreenContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: small fixes 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_view.h
diff --git a/chrome/browser/chromeos/login/screens/update_view.h b/chrome/browser/chromeos/login/screens/update_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..b188aff9ed940ca6b28719549caccbc1468121d6
--- /dev/null
+++ b/chrome/browser/chromeos/login/screens/update_view.h
@@ -0,0 +1,38 @@
+// Copyright (c) 2012 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_VIEW_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_VIEW_H_
+
+#include "base/strings/string16.h"
+
+namespace chromeos {
+
+class UpdateModel;
+
+// Interface for dependency injection between NetworkScreen and its actual
+// representation. Owned by UpdateScreen.
+class UpdateView {
+ public:
+ virtual ~UpdateView() {}
+
+ // Prepare the contents to showing.
+ virtual void PrepareToShow() = 0;
+
+ // Shows the contents of the screen.
+ virtual void Show() = 0;
+
+ // Hides the contents of the screen.
+ virtual void Hide() = 0;
+
+ // Binds |model| to the view.
+ virtual void Bind(UpdateModel& model) = 0;
+
+ // Unbinds model from the view.
+ virtual void Unbind() = 0;
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698