summaryrefslogtreecommitdiffstats
path: root/chrome/browser/idle.h
Commit message (Collapse)AuthorAgeFilesLines
* Adds database methods needed to track amount of time pages aresky@chromium.org2013-03-011-1/+3
| | | | | | | | | | | | | | | actively viewed. If we decide we want this functionality I'll fold it into segment_usage, but for now I'm putting it in a separate table so it's easier to migrate. BUG=none TEST=covered by tests R=brettw@chromium.org Review URL: https://chromiumcodereview.appspot.com/12388003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185430 0039d316-1c4b-4281-b951-d872f2087c98
* Move full screen/idle detection out of NotificationUIManagerImpldcheng@chromium.org2013-01-311-2/+0
| | | | | | | | | | | | | There are other places in the code other than NotificationUIManagerImpl that use these global services, so we should move the initialization out of the notifications code to avoid hiding these dependencies. BUG=155422 Review URL: https://chromiumcodereview.appspot.com/12086051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179763 0039d316-1c4b-4281-b951-d872f2087c98
* 1) added "idle" and "locked" transitions to idle.onStateChangedcourage@chromium.org2012-11-171-1/+5
| | | | | | | | | | | | | 2) Per-app/extension idle threshold, settable via idle.setDetectionInterval 3) Bug fixes BUG=143275 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168104 Review URL: https://chromiumcodereview.appspot.com/10985056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168365 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 168104 because it broke interactive_ui_tests and browser_tests on ↵sadrul@chromium.org2012-11-161-5/+1
| | | | | | | | | | | | | | | | | | debug builds. === 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 TBR=courage@chromium.org Review URL: https://codereview.chromium.org/11418024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168118 0039d316-1c4b-4281-b951-d872f2087c98
* 1) added "idle" and "locked" transitions to idle.onStateChangedcourage@chromium.org2012-11-161-1/+5
| | | | | | | | | | | 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
* Remove the rest of #pragma once in one big CL.ajwong@chromium.org2012-07-111-1/+0
| | | | | | | | | For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98
* browser: Move more files into chrome namespace.tfarina@chromium.org2012-07-021-1/+2
| | | | | | | | | BUG=133088 TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/10694060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145220 0039d316-1c4b-4281-b951-d872f2087c98
* Add device status reports to policy requests.dubroy@chromium.org2011-12-091-1/+1
| | | | | | | | | | BUG=chromium-os:22035 TEST= Review URL: http://codereview.chromium.org/8702009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113791 0039d316-1c4b-4281-b951-d872f2087c98
* Fixing the bug, that caused UI to hang after unsupported device was inserted.sidor@chromium.org2011-09-101-3/+3
| | | | | | | | | | | | In the idle.h new synchronous method was added - IsWorkstationInLockedState. BUG=chromium-os:20261 TEST=None Review URL: http://codereview.chromium.org/7864022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100582 0039d316-1c4b-4281-b951-d872f2087c98
* Chrome changes to fix the idle extension APIrkc@chromium.org2011-08-181-2/+11
| | | | | | | | | | | | | | | | | This change list reimplements the idle extension API to fix the following issues: . Query is now throttled only to 1 second . Calls to calculate the idle time are async (this is needed for chromium-os) . OnStateChanged now fires within a reasonable time of the machine going active (1 second) . Fixed a memory leak of the polling class This is just the Chrome change, there will be an additional CL to integrate the ChromiumOS code changes with the API once those are in. BUG=chromium-os:17167 TEST=Tested with the idle sample extension to confirm that idle query and idle state changed event work correctly. Review URL: http://codereview.chromium.org/7519008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97302 0039d316-1c4b-4281-b951-d872f2087c98
* Do not show notifications when in fullscreen or screensaver mode.jianli@chromium.org2011-01-251-0/+7
| | | | | | | | | | | | | 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
* `#pragma once` for app, base, chrome, gfx, ipc, net, skia, viewsthakis@chromium.org2010-07-261-0/+1
| | | | | | | | | BUG=50273 TEST=everything still builds, build is 10% faster on windows, same speed on mac/linux TBR: erg git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53716 0039d316-1c4b-4281-b951-d872f2087c98
* Attempt four at landing the "histogram.h removed from message_loop.h" patch.erg@chromium.org2010-07-151-2/+0
| | | | | | | | | | | | | | Previously committed as r52349 and r52336. Related commits: r52367, r52364 and r52343. Rerunning trybots due to previous trybot breakage. TEST=none BUG=none Review URL: http://codereview.chromium.org/2965015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52496 0039d316-1c4b-4281-b951-d872f2087c98
* Revert everything related to the relanding.erg@chromium.org2010-07-141-0/+2
| | | | | | Review URL: http://codereview.chromium.org/2982009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52367 0039d316-1c4b-4281-b951-d872f2087c98
* Reland r52336.erg@chromium.org2010-07-141-2/+0
| | | | | | | | | | | | | | (I accidentally committed a previous version of the patch (the fixed version was in codereview since I had switched to my mac to address this exact compile failure.) BUG=none TEST=none TBR=evan Review URL: http://codereview.chromium.org/2937010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52349 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 52336 - More header cleanup:erg@chromium.org2010-07-141-0/+2
| | | | | | | | | | | | | | | | - Some cleanup to url_request.h - Remove task.h from headers that don't need it. - Remove histogram.h from message_loop.h BUG=none TEST=none Review URL: http://codereview.chromium.org/2986002 TBR=erg@chromium.org Review URL: http://codereview.chromium.org/2969006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52343 0039d316-1c4b-4281-b951-d872f2087c98
* More header cleanup:erg@chromium.org2010-07-141-2/+0
| | | | | | | | | | | | | - Some cleanup to url_request.h - Remove task.h from headers that don't need it. - Remove histogram.h from message_loop.h BUG=none TEST=none Review URL: http://codereview.chromium.org/2986002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52336 0039d316-1c4b-4281-b951-d872f2087c98
* Idle API for the extension systembrg@chromium.com2010-03-161-0/+18
Tests=ExtensionApiTest.Idle Bug=one Review URL: http://codereview.chromium.org/845005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41661 0039d316-1c4b-4281-b951-d872f2087c98