Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: chrome/browser/idle.h

Issue 6359008: Do not show notifications when in fullscreen or screensaver mode.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/fullscreen_win.cc ('k') | chrome/browser/idle_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_IDLE_H_ 5 #ifndef CHROME_BROWSER_IDLE_H_
6 #define CHROME_BROWSER_IDLE_H_ 6 #define CHROME_BROWSER_IDLE_H_
7 #pragma once 7 #pragma once
8 8
9 enum IdleState { 9 enum IdleState {
10 IDLE_STATE_ACTIVE = 0, 10 IDLE_STATE_ACTIVE = 0,
11 IDLE_STATE_IDLE = 1, // No activity within threshold. 11 IDLE_STATE_IDLE = 1, // No activity within threshold.
12 IDLE_STATE_LOCKED = 2 // Only available on supported systems. 12 IDLE_STATE_LOCKED = 2 // Only available on supported systems.
13 }; 13 };
14 14
15 // For MacOSX, InitIdleMonitor needs to be called first to setup the monitor.
16 // StopIdleMonitor should be called if it is not needed any more.
17 #if defined(OS_MACOSX)
18 void InitIdleMonitor();
19 void StopIdleMonitor();
20 #endif
21
15 IdleState CalculateIdleState(unsigned int idle_threshold); 22 IdleState CalculateIdleState(unsigned int idle_threshold);
16 23
17 #endif // CHROME_BROWSER_IDLE_H_ 24 #endif // CHROME_BROWSER_IDLE_H_
OLDNEW
« no previous file with comments | « chrome/browser/fullscreen_win.cc ('k') | chrome/browser/idle_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698