| 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_
|
|
|