blob: f4ee8c8b5244b57a0cc569970a7fa6a643c439b2 [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.
#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MULTIDEVICE_SETUP_SCREEN_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MULTIDEVICE_SETUP_SCREEN_H_
#include <string>
#include "base/callback.h"
#include "base/macros.h"
#include "chrome/browser/chromeos/login/screens/base_screen.h"
namespace chromeos {
class MultiDeviceSetupScreenView;
class MultiDeviceSetupScreen : public BaseScreen {
public:
MultiDeviceSetupScreen(MultiDeviceSetupScreenView* view,
const base::RepeatingClosure& exit_callback);
~MultiDeviceSetupScreen() override;
// BaseScreen:
void Show() override;
void Hide() override;
void OnUserAction(const std::string& action_id) override;
private:
friend class MultiDeviceSetupScreenTest;
// This enum is tied directly to a UMA enum defined in
// //tools/metrics/histograms/enums.xml, and should always reflect it (do not
// change one without changing the other). Entries should be never modified
// or deleted. Only additions possible.
enum class MultiDeviceSetupOOBEUserChoice {
kAccepted = 0,
kDeclined = 1,
kMaxValue = kDeclined
};
static void RecordMultiDeviceSetupOOBEUserChoiceHistogram(
MultiDeviceSetupOOBEUserChoice value);
// Exits the screen.
void ExitScreen();
MultiDeviceSetupScreenView* view_;
base::RepeatingClosure exit_callback_;
DISALLOW_COPY_AND_ASSIGN(MultiDeviceSetupScreen);
};
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_MULTIDEVICE_SETUP_SCREEN_H_