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.
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_VIEW_H_
8 #include "base/strings/string16.h"
14 // Interface for dependency injection between NetworkScreen and its actual
15 // representation, either views based or WebUI. Owned by NetworkScreen.
18 virtual ~NetworkView() {}
20 // Prepare the contents to showing.
21 virtual void PrepareToShow() = 0;
23 // Shows the contents of the screen.
24 virtual void Show() = 0;
26 // Hides the contents of the screen.
27 virtual void Hide() = 0;
29 // Binds |model| to the view.
30 virtual void Bind(NetworkModel
& model
) = 0;
32 // Unbinds model from the view.
33 virtual void Unbind() = 0;
35 // Shows error message in a bubble.
36 virtual void ShowError(const base::string16
& message
) = 0;
38 // Hides error messages showing no error state.
39 virtual void ClearErrors() = 0;
41 // Stops demo mode detection.
42 virtual void StopDemoModeDetection() = 0;
44 // Shows network connecting status or network selection otherwise.
45 virtual void ShowConnectingStatus(bool connecting
,
46 const base::string16
& network_id
) = 0;
48 // Reloads localized contents.
49 virtual void ReloadLocalizedContent() = 0;
52 } // namespace chromeos
54 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_NETWORK_VIEW_H_