diff options
author | courage@chromium.org <courage@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-16 02:00:03 +0000 |
---|---|---|
committer | courage@chromium.org <courage@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-16 02:00:03 +0000 |
commit | 99fd10c7cd3f68cd0346a98cf536fc6546e1ff20 (patch) | |
tree | 1f71ddd46466cf7289b7664ebfe326628b665d77 /chrome/browser/idle.h | |
parent | 6d1710f48c3ede83eaf1382ad5b5676ed409d7ea (diff) | |
download | chromium_src-99fd10c7cd3f68cd0346a98cf536fc6546e1ff20.zip chromium_src-99fd10c7cd3f68cd0346a98cf536fc6546e1ff20.tar.gz chromium_src-99fd10c7cd3f68cd0346a98cf536fc6546e1ff20.tar.bz2 |
1) added "idle" and "locked" transitions to idle.onStateChanged
2) Per-app/extension idle threshold, settable via idle.setDetectionInterval
3) Bug fixes
BUG=143275
Review URL: https://chromiumcodereview.appspot.com/10985056
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168104 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/idle.h')
-rw-r--r-- | chrome/browser/idle.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/idle.h b/chrome/browser/idle.h index df6abd7..7b78cd9 100644 --- a/chrome/browser/idle.h +++ b/chrome/browser/idle.h @@ -23,9 +23,13 @@ void StopIdleMonitor(); #endif typedef base::Callback<void(IdleState)> IdleCallback; +typedef base::Callback<void(int)> IdleTimeCallback; // Calculate the Idle state and notify the callback. -void CalculateIdleState(unsigned int idle_threshold, IdleCallback notify); +void CalculateIdleState(int idle_threshold, IdleCallback notify); + +// Calculate Idle time in seconds and notify the callback +void CalculateIdleTime(IdleTimeCallback notify); // Checks synchronously if Idle state is IDLE_STATE_LOCKED. bool CheckIdleStateIsLocked(); |