blob: 92edeb532ce63705c26d23b02e628052ea05774d [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 POWER_MANAGER_POWERD_SYSTEM_WAKEUP_SOURCE_IDENTIFIER_STUB_H_
#define POWER_MANAGER_POWERD_SYSTEM_WAKEUP_SOURCE_IDENTIFIER_STUB_H_
#include "power_manager/powerd/system/wakeup_source_identifier_interface.h"
namespace power_manager {
namespace system {
class WakeupSourceIdentifierStub : public WakeupSourceIdentifierInterface {
public:
WakeupSourceIdentifierStub();
WakeupSourceIdentifierStub(const WakeupSourceIdentifierStub&) = delete;
WakeupSourceIdentifierStub& operator=(const WakeupSourceIdentifierStub&) =
delete;
~WakeupSourceIdentifierStub();
void PrepareForSuspendRequest() override;
void HandleResume() override;
bool InputDeviceCausedLastWake() const override;
void SetInputDeviceCausedLastWake(bool input_device_caused_last_wake);
private:
bool input_device_caused_last_wake_ = false;
};
} // namespace system
} // namespace power_manager
#endif // POWER_MANAGER_POWERD_SYSTEM_WAKEUP_SOURCE_IDENTIFIER_STUB_H_