naiveproxy/ash/public/interfaces/update.mojom
2018-12-09 21:59:24 -05:00

37 lines
1.2 KiB
Plaintext

// Copyright 2016 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 ash.mojom;
// Urgency of a pending software update. Sets the system tray update icon color.
// These correspond to values in UpgradeDetector's
// UpgradeNotificationAnnoyanceLevel enum. Their use is platform-specific. On
// Chrome OS, LOW severity is issued when an update is detected. ELEVATED
// follows after two days, and HIGH two days after that. These time deltas may
// be overridden by administrators via the RelaunchNotificationPeriod policy
// setting.
// TODO(jamescook): UpgradeDetector::UpgradeNotificationAnnoyanceLevel could be
// replaced with this if this moves into a component shared with non-ash chrome.
enum UpdateSeverity {
NONE,
VERY_LOW,
LOW,
ELEVATED,
HIGH,
CRITICAL,
};
// The type of update being applied. Sets the string in the system tray.
enum UpdateType {
FLASH,
SYSTEM,
};
// Notification style for system updates, set by different policies.
enum NotificationStyle {
DEFAULT,
ADMIN_RECOMMENDED, // Relaunch Notification policy
ADMIN_REQUIRED, // Relaunch Notification policy
};