summaryrefslogtreecommitdiffstats
path: root/chrome/browser/idle.h
diff options
context:
space:
mode:
authorjianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-25 20:54:06 +0000
committerjianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-25 20:54:06 +0000
commit3c64537927e5a31388c8fac8e04e575a12f6ff81 (patch)
treeadc23145813263daad9d696f2ffb3648dafa8bd5 /chrome/browser/idle.h
parent34ce848a57340642bb708d44bf1e6fa4ea3a07b5 (diff)
downloadchromium_src-3c64537927e5a31388c8fac8e04e575a12f6ff81.zip
chromium_src-3c64537927e5a31388c8fac8e04e575a12f6ff81.tar.gz
chromium_src-3c64537927e5a31388c8fac8e04e575a12f6ff81.tar.bz2
Do not show notifications when in fullscreen or screensaver mode.
I add full-screen/presentation mode detection for all 3 platforms. I also add screensaver detection for MacOSX and Linux since it is missing in these 2 platforms. BUG=25061 TEST=Manual test Review URL: http://codereview.chromium.org/6359008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72539 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/idle.h')
-rw-r--r--chrome/browser/idle.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/idle.h b/chrome/browser/idle.h
index 3ea8067..4f99bef 100644
--- a/chrome/browser/idle.h
+++ b/chrome/browser/idle.h
@@ -12,6 +12,13 @@ enum IdleState {
IDLE_STATE_LOCKED = 2 // Only available on supported systems.
};
+// For MacOSX, InitIdleMonitor needs to be called first to setup the monitor.
+// StopIdleMonitor should be called if it is not needed any more.
+#if defined(OS_MACOSX)
+void InitIdleMonitor();
+void StopIdleMonitor();
+#endif
+
IdleState CalculateIdleState(unsigned int idle_threshold);
#endif // CHROME_BROWSER_IDLE_H_