summaryrefslogtreecommitdiffstats
path: root/content/browser/power_save_blocker_android.cc
Commit message (Collapse)AuthorAgeFilesLines
* Rename jni_helper.h to jni_weak_ref.h.newt@chromium.org2014-04-231-1/+1
| | | | | | | | | BUG=365021 TBR=darin Review URL: https://codereview.chromium.org/247263009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265715 0039d316-1c4b-4281-b951-d872f2087c98
* ui: Move android C++ source files into base/android directory.tfarina@chromium.org2013-10-311-1/+1
| | | | | | | | | | BUG=299841 TEST=None, no functional changes. R=ben@chromium.org,bulach@chromium.org Review URL: https://codereview.chromium.org/51663003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232036 0039d316-1c4b-4281-b951-d872f2087c98
* Fix PowerSaveBlocker crash in Android WebViewboliu@chromium.org2013-08-121-0/+3
| | | | | | | | | | | | | | | GetView returns NULL in Android WebView (see comment in ContentViewCoreImpl::GetWindowAndroid), so do not invoke power save block. This is ok since this should be controlled by embedding app through existing Java APIs. PowerSaveBlock is invoked for video playback. BUG=239760 Review URL: https://chromiumcodereview.appspot.com/22706010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216925 0039d316-1c4b-4281-b951-d872f2087c98
* The window's KEEP_SCREEN_ON flag is more like controlling the screen from an ↵michaelbai@chromium.org2013-08-101-10/+12
| | | | | | | | | | | | | Activity level, and we shouldn't use it instead, view's KEEP_SCREEN_ON flag should be used. This patch attaches a zero size view to ContentViewCore's mContainerView instead of view tree, so once the ContainerView is invisible, the screen can turned off even PowerSaveBlocker not removed. BUG=270903 Review URL: https://chromiumcodereview.appspot.com/20125004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216840 0039d316-1c4b-4281-b951-d872f2087c98
* The previous implementation is not correct, it depended on the Fullscreen ↵michaelbai@chromium.org2013-07-191-27/+38
| | | | | | | | | | | | | | video class, but the PowerSaveBlocker could be used for embedding video or the use case which isn't related to the video at all. This patch adds new API to PowerSaveBlocker. BUG=247892 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=212022 Review URL: https://chromiumcodereview.appspot.com/17175009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212536 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 212022 "The previous implementation is not correct, it de..."gavinp@chromium.org2013-07-171-38/+27
| | | | | | | | | | | | | | | | > The previous implementation is not correct, it depended on the Fullscreen video class, but the PowerSaveBlocker could be used for embedding video or the use case which isn't related to the video at all. > > This patch adds new API to PowerSaveBlocker. > > BUG=247892 > > Review URL: https://chromiumcodereview.appspot.com/17175009 TBR=michaelbai@chromium.org Review URL: https://codereview.chromium.org/19659002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212092 0039d316-1c4b-4281-b951-d872f2087c98
* The previous implementation is not correct, it depended on the Fullscreen ↵michaelbai@chromium.org2013-07-171-27/+38
| | | | | | | | | | | | video class, but the PowerSaveBlocker could be used for embedding video or the use case which isn't related to the video at all. This patch adds new API to PowerSaveBlocker. BUG=247892 Review URL: https://chromiumcodereview.appspot.com/17175009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212022 0039d316-1c4b-4281-b951-d872f2087c98
* Keep screen on when there is an active WebRTC session on Android.wjia@chromium.org2013-05-221-5/+48
| | | | | | | | | | Reland https://chromiumcodereview.appspot.com/15035013/ When WebRTC session has video channel, the screen is kept on. Review URL: https://codereview.chromium.org/15743009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201593 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 201439 "Revert 201433 "Revert 201424 "Keep screen on when..."wjia@chromium.org2013-05-221-48/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > Revert 201433 "Revert 201424 "Keep screen on when there is an ac..." > > r201431 passed all android bots. > > > Revert 201424 "Keep screen on when there is an active WebRTC ses..." > > > > experimental reversion due to http://build.chromium.org/p/chromium.linux/buildstatus?builder=Android%20Tests&number=4397 > > > > > Keep screen on when there is an active WebRTC session on Android. > > > > > > When WebRTC session has video channel, the screen is kept on. > > > > > > R=bulach@chromium.org, joth@chromium.org, qinmin@chromium.org, sky@chromium.org > > > > > > Review URL: https://codereview.chromium.org/15035013 > > > > TBR=wjia@chromium.org > > > > Review URL: https://codereview.chromium.org/15655002 > > TBR=wjia@chromium.org > > Review URL: https://codereview.chromium.org/15667003 TBR=wjia@chromium.org Review URL: https://codereview.chromium.org/15673002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201440 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 201433 "Revert 201424 "Keep screen on when there is an ac..."wjia@chromium.org2013-05-221-5/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | r201431 passed all android bots. > Revert 201424 "Keep screen on when there is an active WebRTC ses..." > > experimental reversion due to http://build.chromium.org/p/chromium.linux/buildstatus?builder=Android%20Tests&number=4397 > > > Keep screen on when there is an active WebRTC session on Android. > > > > When WebRTC session has video channel, the screen is kept on. > > > > R=bulach@chromium.org, joth@chromium.org, qinmin@chromium.org, sky@chromium.org > > > > Review URL: https://codereview.chromium.org/15035013 > > TBR=wjia@chromium.org > > Review URL: https://codereview.chromium.org/15655002 TBR=wjia@chromium.org Review URL: https://codereview.chromium.org/15667003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201439 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 201424 "Keep screen on when there is an active WebRTC ses..."wjia@chromium.org2013-05-221-48/+5
| | | | | | | | | | | | | | | | | | experimental reversion due to http://build.chromium.org/p/chromium.linux/buildstatus?builder=Android%20Tests&number=4397 > Keep screen on when there is an active WebRTC session on Android. > > When WebRTC session has video channel, the screen is kept on. > > R=bulach@chromium.org, joth@chromium.org, qinmin@chromium.org, sky@chromium.org > > Review URL: https://codereview.chromium.org/15035013 TBR=wjia@chromium.org Review URL: https://codereview.chromium.org/15655002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201433 0039d316-1c4b-4281-b951-d872f2087c98
* Keep screen on when there is an active WebRTC session on Android.wjia@chromium.org2013-05-221-5/+48
| | | | | | | | | | When WebRTC session has video channel, the screen is kept on. R=bulach@chromium.org, joth@chromium.org, qinmin@chromium.org, sky@chromium.org Review URL: https://codereview.chromium.org/15035013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201424 0039d316-1c4b-4281-b951-d872f2087c98
* Make content::PowerSaveBlocker publichashimoto@chromium.org2013-01-151-6/+6
| | | | | | | | | BUG=152207 Review URL: https://chromiumcodereview.appspot.com/11784016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176806 0039d316-1c4b-4281-b951-d872f2087c98
* Power save blocker: switch to new implementation. In addition to making thingsmdm@chromium.org2012-06-111-3/+17
| | | | | | | | | | | much simpler, this will also fix bug 126591 on Windows 8 by activating the new code in r140668. BUG=126591 Review URL: https://chromiumcodereview.appspot.com/10542089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141433 0039d316-1c4b-4281-b951-d872f2087c98
* Adds a couple of stub classes in content/browser to get past linker errors ↵satish@chromium.org2012-02-091-0/+14
with content_unittests. The real implementation will follow in subsequent CLs. BUG=None TEST= Review URL: http://codereview.chromium.org/9358029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121144 0039d316-1c4b-4281-b951-d872f2087c98