blob: 9ca19d0852b9b55da5e5aae8696995ae42a2b3ee [file] [log] [blame]
// Copyright 2019 The Chromium OS 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 BIOD_POWER_EVENT_OBSERVER_H_
#define BIOD_POWER_EVENT_OBSERVER_H_
#include "base/observer_list_types.h"
namespace biod {
// Interface for observing signals from the power manager client.
class PowerEventObserver : public base::CheckedObserver {
public:
PowerEventObserver() = default;
virtual ~PowerEventObserver() = default;
// Called when power button is pressed or released.
virtual void PowerButtonEventReceived(bool down,
const base::TimeTicks& timestamp) = 0;
private:
DISALLOW_COPY_AND_ASSIGN(PowerEventObserver);
};
} // namespace biod
#endif // BIOD_POWER_EVENT_OBSERVER_H_