blob: 30b0e34fd3da40bb9207c6589130cf8376920df7 [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 "ash/ash_export.h"
#include "ash/detachable_base/detachable_base_pairing_status.h"
namespace ash {
// Registered with DetachableBaseHandler to observe the detachable base status.
class ASH_EXPORT DetachableBaseObserver {
virtual ~DetachableBaseObserver() = default;
// Called when the detachable base pairing status changes. For example when a
// new detachable base is paired, or when the current detachable base gets
// detached.
virtual void OnDetachableBasePairingStatusChanged(
DetachableBasePairingStatus status) = 0;
// Called when the state of whether the current detachable base requires a
// firmware update changes.
// |requires_update|: Whether the base currently requires a firmware update.
virtual void OnDetachableBaseRequiresUpdateChanged(bool requires_update) = 0;
} // namespace ash