This source file includes following definitions.
- CalculateIdleTime
- CheckIdleStateIsLocked
#include "chrome/browser/idle.h"
#include "base/basictypes.h"
#if defined(USE_X11)
#include "chrome/browser/idle_query_x11.h"
#endif
#if !defined(OS_CHROMEOS)
#include "chrome/browser/screensaver_window_finder_x11.h"
#endif
void CalculateIdleTime(IdleTimeCallback notify) {
#if defined(USE_X11)
chrome::IdleQueryX11 idle_query;
notify.Run(idle_query.IdleTime());
#endif
}
bool CheckIdleStateIsLocked() {
#if defined(OS_CHROMEOS)
return false;
#elif defined(USE_OZONE)
return false;
#else
return ScreensaverWindowFinder::ScreensaverWindowExists();
#endif
}