blob: 3095c81f4fad46afe46dac8e44693cc32efee0c0 [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_EC_HELPER_INTERFACE_H_
#define POWER_MANAGER_POWERD_SYSTEM_EC_HELPER_INTERFACE_H_
#include <base/macros.h>
namespace power_manager {
namespace system {
// Helper class to manipulate EC settings.
class EcHelperInterface {
public:
EcHelperInterface() {}
virtual ~EcHelperInterface() {}
// Checks whether EC supports setting wake angle.
virtual bool IsWakeAngleSupported() = 0;
// Controls whether the EC will allow keyboard wakeups in tablet mode.
// Returns true on success.
virtual bool AllowWakeupAsTablet(bool enabled) = 0;
private:
DISALLOW_COPY_AND_ASSIGN(EcHelperInterface);
};
} // namespace system
} // namespace power_manager
#endif // POWER_MANAGER_POWERD_SYSTEM_EC_HELPER_INTERFACE_H_