#ifndef EXTENSIONS_COMMON_API_IDLE_H__
#define EXTENSIONS_COMMON_API_IDLE_H__
#include <stdint.h>
#include <map>
#include <memory>
#include <optional>
#include <string>
#include <vector>
#include "base/values.h"
#include <string_view>
namespace extensions {
namespace api {
namespace idle {
enum class IdleState { … };
const char* ToString(IdleState as_enum);
IdleState ParseIdleState(std::string_view as_string);
std::u16string GetIdleStateParseError(std::string_view as_string);
namespace QueryState {
struct Params { … };
namespace Results {
base::Value::List Create(const IdleState& new_state);
}
}
namespace SetDetectionInterval {
struct Params { … };
}
namespace GetAutoLockDelay {
namespace Results {
base::Value::List Create(int delay);
}
}
namespace OnStateChanged {
extern const char kEventName[];
base::Value::List Create(const IdleState& new_state);
}
}
}
}
#endif