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

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

Issue 872633008: Migrate (Network)ErrorScreen to ScreenContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 5 years, 10 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/network_error_view.h
diff --git a/chrome/browser/chromeos/login/screens/network_error_view.h b/chrome/browser/chromeos/login/screens/network_error_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..2348b21e8582932389a28d191ed160b560c5019d
--- /dev/null
+++ b/chrome/browser/chromeos/login/screens/network_error_view.h
@@ -0,0 +1,42 @@
+// 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_NETWORK_ERROR_VIEW_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_ERROR_VIEW_H_
+
+#include "base/strings/string16.h"
+#include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
+
+namespace chromeos {
+
+class NetworkErrorModel;
+
+// Interface for dependency injection between ErrorScreen and its actual
+// representation. Owned by ErrorScreen.
+class NetworkErrorView {
+ public:
+ virtual ~NetworkErrorView() {}
+
+ // 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(NetworkErrorModel& model) = 0;
+
+ // Unbinds model from the view.
+ virtual void Unbind() = 0;
+
+ // Switches to |screen|.
+ virtual void ShowScreen(OobeUI::Screen screen) = 0;
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_ERROR_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698