blob: 3d0b2a48bcf35ae8e9a79cfb997bde121539a724 [file] [log] [blame]
// Copyright 2016 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_WAKEUP_HELPER_INTERFACE_H_
#define POWER_MANAGER_POWERD_SYSTEM_EC_WAKEUP_HELPER_INTERFACE_H_
#include <base/macros.h>
namespace power_manager {
namespace system {
// Helper class to manipulate EC wakeup settings.
class EcWakeupHelperInterface {
public:
EcWakeupHelperInterface() {}
virtual ~EcWakeupHelperInterface() {}
// Checks whether we have an EC on this system.
virtual bool IsSupported() = 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(EcWakeupHelperInterface);
};
} // namespace system
} // namespace power_manager
#endif // POWER_MANAGER_POWERD_SYSTEM_EC_WAKEUP_HELPER_INTERFACE_H_