blob: afa3a432030acbbcfe80e5a0f254d55593410a3f [file] [log] [blame]
// Copyright (c) 2017 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_UPDATE_REQUIRED_VIEW_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_REQUIRED_VIEW_H_
#include "chrome/browser/chromeos/login/oobe_screen.h"
namespace chromeos {
class UpdateRequiredScreen;
// Interface for dependency injection between UpdateRequiredScreen and its
// WebUI representation.
class UpdateRequiredView {
public:
constexpr static OobeScreen kScreenId = OobeScreen::SCREEN_UPDATE_REQUIRED;
virtual ~UpdateRequiredView() {}
// 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(UpdateRequiredScreen* screen) = 0;
// Unbinds the screen from the view.
virtual void Unbind() = 0;
};
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_UPDATE_REQUIRED_VIEW_H_