blob: 56420cda062463248e9184677d5ba1c2aed057a6 [file] [log] [blame]
// Copyright 2019 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.
module crostini.mojom;
enum InstallerState {
kStart, // Just started installation
kInstallImageLoader, // Loading the Termina VM component.
kCreateDiskImage, // Creating the image for the Termina VM.
kStartTerminaVm, // Starting the Termina VM.
kCreateContainer, // Creating the container inside the Termina VM.
kSetupContainer, // Setting up the container inside the Termina VM.
kStartContainer, // Starting the container inside the Termina VM.
kFetchSshKeys, // Fetch ssh keys from concierge.
kMountContainer, // Do sshfs mount of container.
kConfigureContainer, // Configuring the container inside the Termina VM.
};
enum InstallerError {
kNone,
kErrorLoadingTermina,
kErrorCreatingDiskImage,
kErrorStartingTermina,
kErrorStartingContainer,
kErrorOffline,
kErrorFetchingSshKeys,
kErrorMountingContainer,
kErrorSettingUpContainer,
kErrorInsufficientDiskSpace,
kErrorConfiguringContainer,
kErrorCreateContainer,
kErrorUnknown,
};
struct DiskSliderTick {
int64 value; // Size in bytes.
string label; // Localised human-readable value e.g. 4.6GB.
string aria_value; // Value for e.g. screen readers.
};