blob: ffb0e58f895f56f203e4c4407c4c3e5b9b00cf1c [file] [log] [blame]
// Copyright 2018 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.
#include "base/strings/string16.h"
#include "chrome/browser/chromeos/login/oobe_screen.h"
namespace chromeos {
class NetworkScreen;
// Interface of network screen. Owned by NetworkScreen.
class NetworkScreenView {
constexpr static OobeScreen kScreenId = OobeScreen::SCREEN_OOBE_NETWORK;
virtual ~NetworkScreenView() {}
// Shows the contents of the screen.
virtual void Show() = 0;
// Hides the contents of the screen.
virtual void Hide() = 0;
// Binds |screen| to the view.
virtual void Bind(NetworkScreen* screen) = 0;
// Unbinds model from the view.
virtual void Unbind() = 0;
// Shows error message in a bubble.
virtual void ShowError(const base::string16& message) = 0;
// Hides error messages showing no error state.
virtual void ClearErrors() = 0;
// Shows network connecting status or network selection otherwise.
virtual void ShowConnectingStatus(bool connecting,
const base::string16& network_id) = 0;
// Enables or disables offline Demo Mode during Demo Mode network selection.
virtual void SetOfflineDemoModeEnabled(bool enabled) = 0;
} // namespace chromeos