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

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

Issue 2937010: Reland r52336. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 5 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
« no previous file with comments | « chrome/browser/gtk/download_item_gtk.cc ('k') | chrome/browser/io_thread.h » ('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 7
8 #include "base/task.h"
9
10 enum IdleState { 8 enum IdleState {
11 IDLE_STATE_ACTIVE = 0, 9 IDLE_STATE_ACTIVE = 0,
12 IDLE_STATE_IDLE = 1, // No activity within threshold. 10 IDLE_STATE_IDLE = 1, // No activity within threshold.
13 IDLE_STATE_LOCKED = 2 // Only available on supported systems. 11 IDLE_STATE_LOCKED = 2 // Only available on supported systems.
14 }; 12 };
15 13
16 IdleState CalculateIdleState(unsigned int idle_threshold); 14 IdleState CalculateIdleState(unsigned int idle_threshold);
17 15
18 #endif // CHROME_BROWSER_IDLE_H_ 16 #endif // CHROME_BROWSER_IDLE_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/download_item_gtk.cc ('k') | chrome/browser/io_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698