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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_ERROR_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_ERROR_VIEW_H_
7
8 #include "base/strings/string16.h"
9 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
10
11 namespace chromeos {
12
13 class NetworkErrorModel;
14
15 // Interface for dependency injection between ErrorScreen and its actual
16 // representation. Owned by ErrorScreen.
17 class NetworkErrorView {
18 public:
19 virtual ~NetworkErrorView() {}
20
21 // Prepare the contents to showing.
22 virtual void PrepareToShow() = 0;
23
24 // Shows the contents of the screen.
25 virtual void Show() = 0;
26
27 // Hides the contents of the screen.
28 virtual void Hide() = 0;
29
30 // Binds |model| to the view.
31 virtual void Bind(NetworkErrorModel& model) = 0;
32
33 // Unbinds model from the view.
34 virtual void Unbind() = 0;
35
36 // Switches to |screen|.
37 virtual void ShowScreen(OobeUI::Screen screen) = 0;
38 };
39
40 } // namespace chromeos
41
42 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_ERROR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698