blob: d45ffa99431123c99a27221e732365fad0d8c0f2 [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_
namespace biod {
// Interface for observing signals from the power manager client.
class PowerEventObserver {
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_