#ifndef CHROME_BROWSER_EXTENSIONS_API_IDLE_IDLE_API_H_
#define CHROME_BROWSER_EXTENSIONS_API_IDLE_IDLE_API_H_
#include "chrome/browser/extensions/chrome_extension_function.h"
#include "chrome/browser/idle.h"
namespace extensions {
class IdleQueryStateFunction : public ChromeAsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("idle.queryState", IDLE_QUERYSTATE)
protected:
virtual ~IdleQueryStateFunction() {}
virtual bool RunImpl() OVERRIDE;
private:
void IdleStateCallback(IdleState state);
};
class IdleSetDetectionIntervalFunction : public ChromeSyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("idle.setDetectionInterval",
IDLE_SETDETECTIONINTERVAL)
protected:
virtual ~IdleSetDetectionIntervalFunction() {}
virtual bool RunImpl() OVERRIDE;
};
}
#endif