summaryrefslogtreecommitdiffstats
path: root/ash/screensaver
Commit message (Collapse)AuthorAgeFilesLines
* Reduce creation of ViewsDelegatesky@chromium.org2014-05-141-2/+0
| | | | | | | | | | | | | | | | | | | By consolidating override of OnBeforeWidgetInit that finds shell many of the places that were setting a viewsdelegate no longer need to. Also, made AshTestHelper install a ViewsDelegate so that tests don't have. Because of removed an include of views_delegate from ash_test_helper I had to update some includes. BUG=none TEST=none R=ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270290 Review URL: https://codereview.chromium.org/280863002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270399 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 270290 "Reduce creation of ViewsDelegate"raymes@google.com2014-05-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Speculatively reverting as it may have caused the tree to break: http://build.chromium.org/p/chromium.win/builders/Win%20Builder/builds/20345/steps/compile/logs/stdio > Reduce creation of ViewsDelegate > > By consolidating override of OnBeforeWidgetInit that finds shell many > of the places that were setting a viewsdelegate no longer need to. > > Also, made AshTestHelper install a ViewsDelegate so that tests don't have. > > Because of removed an include of views_delegate from ash_test_helper I had to update some includes. > > BUG=none > TEST=none > R=ben@chromium.org > > Review URL: https://codereview.chromium.org/280863002 TBR=sky@chromium.org Review URL: https://codereview.chromium.org/286753002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270305 0039d316-1c4b-4281-b951-d872f2087c98
* Reduce creation of ViewsDelegatesky@chromium.org2014-05-141-2/+0
| | | | | | | | | | | | | | | | | By consolidating override of OnBeforeWidgetInit that finds shell many of the places that were setting a viewsdelegate no longer need to. Also, made AshTestHelper install a ViewsDelegate so that tests don't have. Because of removed an include of views_delegate from ash_test_helper I had to update some includes. BUG=none TEST=none R=ben@chromium.org Review URL: https://codereview.chromium.org/280863002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270290 0039d316-1c4b-4281-b951-d872f2087c98
* Eliminate ash::internal namespaceoshima@chromium.org2014-04-033-19/+6
| | | | | | | | | | | Plus obvious style nit fixes. BUG=None TBR=sky@chromium.org Review URL: https://codereview.chromium.org/224113005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261522 0039d316-1c4b-4281-b951-d872f2087c98
* Move root_window.* to window_event_dispatcher.*ben@chromium.org2014-02-211-1/+1
| | | | | | | | | http://crbug.com/308843 TBR=sky@chromium.org Review URL: https://codereview.chromium.org/174803002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252651 0039d316-1c4b-4281-b951-d872f2087c98
* Inject GPUDataManager support into ash to abstract a content dependency.ben@chromium.org2014-01-161-1/+1
| | | | | | | | | | | | http://crbug.com/332504 R=oshima@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245010 Review URL: https://codereview.chromium.org/138223004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245161 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 245010 "Inject GPUDataManager support into ash to abstrac..."ben@chromium.org2014-01-151-1/+1
| | | | | | | | | | | | | | | | > Inject GPUDataManager support into ash to abstract a content dependency. > > http://crbug.com/332504 > > R=oshima@chromium.org > > Review URL: https://codereview.chromium.org/138223004 TBR=ben@chromium.org Review URL: https://codereview.chromium.org/137893010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245018 0039d316-1c4b-4281-b951-d872f2087c98
* Inject GPUDataManager support into ash to abstract a content dependency.ben@chromium.org2014-01-151-1/+1
| | | | | | | | | | http://crbug.com/332504 R=oshima@chromium.org Review URL: https://codereview.chromium.org/138223004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245010 0039d316-1c4b-4281-b951-d872f2087c98
* Begin to split ash into two libs - one with and one without a content ↵ben@chromium.org2014-01-141-6/+6
| | | | | | | | | | | dependency. R=oshima@chromium.org http://crbug.com/332504 Review URL: https://codereview.chromium.org/134333005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244696 0039d316-1c4b-4281-b951-d872f2087c98
* Rename CurrentBrowserContext to ActiveBrowserContextoshima@chromium.org2013-12-121-1/+1
| | | | | | | | | | | | | Remove use of GetDefaultProfileXXX in - c/b/ui/ash/chrome_shell_delegate* - c/b/ui/ash/keyboard_controller_proxy.cc - c/b/ui/ash/screenshot_taker.cc BUG=322682 Review URL: https://codereview.chromium.org/112153002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240482 0039d316-1c4b-4281-b951-d872f2087c98
* Make GetRootWindow() return a Window instead of a RootWindow.ben@chromium.org2013-10-251-1/+1
| | | | | | | | | | | | Also adds a typedef from RootWindow to WindowEventDispatcher, the eventual name of this type. Adds a GetDispatcher() method that crawls up to the root Window and returns the WindowEventDispatcher. R=sky@chromium.org http://crbug.com/308843 Review URL: https://codereview.chromium.org/37733003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231077 0039d316-1c4b-4281-b951-d872f2087c98
* Correctly integrate StoragePartition into TestingProfile.ajwong@chromium.org2013-07-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | Until this CL, TestingProfile had 3 distinct URLRequestContexts it would return to the user: one via profile->GetDefaultStoragePartition()->GetRequestContext(), one via profile->GetRequestContext(), and one via profile->GetResourceContext->GetRequestContext(). All of these had different cookie stores. This CL unified them so they all return the one from profile->GetDefaultStoragePartition()->GetRequestContext(). This correctly mimics how production code works. Doing this had a bunch of implications: (1) Removes TestingProfile::CreateRequestContext()/ResetRequestContext() (2) Changes MockRequestContext to share the URLRequestContext with TestingProfile. (3) TestingProfile now requires all BrowserThreads. Point (3) effectively adds TestBrowserThreadBundle into a bunch more spots. Because of that, we also have the following changes: (a) AshTestBase now has a TestBrowserThreadBundle (b) Removed a bunch of real threads from tests. (c) TemplateUrlService has reworked synchronization semantics. (d) Removed MultiThreadTestHelper. (e) Added TestingIOThread class + testing API in IOThread to mock out various IO thread tasks which enervated with the new TestBrowserThreadBundle. TBR=bauerb,brettw,isherman,joth,jyasskin,mattm,mmenke,mnissler,pkasting,rkc,rlp,satorux,tim,xians,joth BUG=159193 Review URL: https://chromiumcodereview.appspot.com/17127002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213272 0039d316-1c4b-4281-b951-d872f2087c98
* Migrate from googleurl/ includes to url/ ones in the remaining top-level ↵tfarina@chromium.org2013-07-131-1/+1
| | | | | | | | | | | directories. BUG=229660 TBR=darin@chromium.org Review URL: https://codereview.chromium.org/18919005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211572 0039d316-1c4b-4281-b951-d872f2087c98
* Rename RenderViewGone IPC/methods to better reflect reality.nasko@chromium.org2013-07-102-2/+2
| | | | | | | | | | The RenderViewGone IPC and methods are incorrectly named, as those are used when a renderer process has died. Since we are passing in termination status around and usually iterating over all Render{Widget|View}Host in a specific process, it actually applies to the whole process. This CL renames all applicable instances of this method and the IPC message associated with it. BUG=258087 Review URL: https://chromiumcodereview.appspot.com/18339006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210727 0039d316-1c4b-4281-b951-d872f2087c98
* Screensaver implementation for ChromeOS.rkc@chromium.org2013-02-013-9/+20
| | | | | | | | | | | | | | | This is the initial implementation for screensaver extensions. The feature is currently behind a flag and installing an extension with a screensaver permission without the flag enabled will do nothing. This currently allows one Screensaver extension to be installed at a time, and brings up the screensaver after a fixed 2 minutes. Further work to be done is to add different timeouts for power manager if the screensaver is active, add more tests and add security features for the screensaver permission (if needed, this needs to be discussed still). TBR'ed jhawkins for chrome_browser_chromeos.gypi R=mpcomplete@chromium.org,stevenjb@chromium.org BUG=163681 TBR=jhawkins@chromium.org Review URL: https://codereview.chromium.org/12093058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180189 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup of removing unnecessary web_contents.h include from webview.h. This ↵jam@chromium.org2012-12-062-0/+2
| | | | | | | | is split off from https://codereview.chromium.org/11444013/ Review URL: https://codereview.chromium.org/11474002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171535 0039d316-1c4b-4281-b951-d872f2087c98
* Makes gfx::Screen an instance, rather than a collection of static methods.scottmg@chromium.org2012-10-121-1/+1
| | | | | | | | | | | | | | This is in support of supporting separate Screen implementations on Aura for desktop and metro on Windows. Some callsites are not yet correct, and noted with a reference to the http://crbug.com/133312. As-is those sites will behave the same as before this patch, but may not be correct once desktop/metro can run simultaneously. BUG=133312 Review URL: https://chromiumcodereview.appspot.com/11030017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161644 0039d316-1c4b-4281-b951-d872f2087c98
* Fix leaks in ash_unittestsoshima@chromium.org2012-09-101-5/+0
| | | | | | | | | | | | also suppressed leaks in non chrome component plus a couple of cleanups (eliminated unused code/variables) BUG=144990,146947 TEST=valgrind reports no leak on ash_unittests Review URL: https://chromiumcodereview.appspot.com/10907101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155819 0039d316-1c4b-4281-b951-d872f2087c98
* Convert the mouse event's location that is captured by aura correctlyoshima@chromium.org2012-09-071-0/+1
| | | | | | | | | BUG=145173 TEST=manual. see bug for repro step. Review URL: https://chromiumcodereview.appspot.com/10916121 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155382 0039d316-1c4b-4281-b951-d872f2087c98
* First part of PAGE_TRANSITION_START_PAGE cleanup.rogerta@chromium.org2012-09-051-1/+1
| | | | | | | | | | | | | | | | | | I replaced START_PAGE with AUTO_TOPLEVEL because that more accurately describes how its being used in the code. In a followed CL I will add specific support for startup pages, which was the original intention of START_PAGE. This CL is basically a large search and replace and does not change the behaviour of the code. BUG=144002 TEST=No user visible change Review URL: https://chromiumcodereview.appspot.com/10897034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155047 0039d316-1c4b-4281-b951-d872f2087c98
* Add OWNERS files for feedback, screensaver and kiosk_mode.rkc@chromium.org2012-07-311-0/+1
| | | | | | | | | | | Adding myself to the OWNER's files for the areas I currently own. R=ben@chromium.org BUG=None. Review URL: https://chromiumcodereview.appspot.com/10843013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149323 0039d316-1c4b-4281-b951-d872f2087c98
* Remove #pragma once from ashajwong@chromium.org2012-07-111-1/+0
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10693135 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146075 0039d316-1c4b-4281-b951-d872f2087c98
* Rename gfx::Screen::GetMonitorXXXX to gfx::Screen::GetDisplayXXX.tfarina@chromium.org2012-06-171-3/+3
| | | | | | | | | | BUG=130828 R=oshima@chromium.org TBR=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/10540123 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142631 0039d316-1c4b-4281-b951-d872f2087c98
* Limit the number of the times the screensaver restarts.rkc@chromium.org2012-06-152-4/+22
| | | | | | | | | | | | | | In case the screensaver crashes/terminates, restart it only up to the second time. If a third termination occurs, simply close the screensaver. R=sky@chromium.org BUG=132918 TEST=Verified manually that the screensaver restarts the first two times that the screensaver renderer is terminated; the third time the screensaver window closes. Review URL: https://chromiumcodereview.appspot.com/10542173 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142359 0039d316-1c4b-4281-b951-d872f2087c98
* Fix view view in views examples.rkc@chromium.org2012-05-311-3/+2
| | | | | | | | | | | | | | The views delegate used in Views Examples derives from TestViewsDelegate, which returns a TestWebContents when WebView tries to create it's webcontents. Since this functionality is intended only for unit tests, moved the test webcontents creation to a subclass of TestViewsDelegate in ash_test_base. This leaves TestViewsDelegate and it's subclasses unaffected. R=ben@chromium.org BUG=None. TEST=Ran aura_test_unittests and verified that the webview example in views examples through ash_shell works correctly. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=139690 Review URL: https://chromiumcodereview.appspot.com/10447096 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139704 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 139690 - Fix view view in views examples.rkc@chromium.org2012-05-301-2/+3
| | | | | | | | | | | | | | | The views delegate used in Views Examples derives from TestViewsDelegate, which returns a TestWebContents when WebView tries to create it's webcontents. Since this functionality is intended only for unit tests, moved the test webcontents creation to a subclass of TestViewsDelegate in ash_test_base. This leaves TestViewsDelegate and it's subclasses unaffected. R=ben@chromium.org BUG=None. TEST=Ran aura_test_unittests and verified that the webview example in views examples through ash_shell works correctly. Review URL: https://chromiumcodereview.appspot.com/10447096 TBR=rkc@chromium.org Review URL: https://chromiumcodereview.appspot.com/10459041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139694 0039d316-1c4b-4281-b951-d872f2087c98
* Fix view view in views examples.rkc@chromium.org2012-05-301-3/+2
| | | | | | | | | | | | The views delegate used in Views Examples derives from TestViewsDelegate, which returns a TestWebContents when WebView tries to create it's webcontents. Since this functionality is intended only for unit tests, moved the test webcontents creation to a subclass of TestViewsDelegate in ash_test_base. This leaves TestViewsDelegate and it's subclasses unaffected. R=ben@chromium.org BUG=None. TEST=Ran aura_test_unittests and verified that the webview example in views examples through ash_shell works correctly. Review URL: https://chromiumcodereview.appspot.com/10447096 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139690 0039d316-1c4b-4281-b951-d872f2087c98
* Rename GetRootWindow() -> GetPrimaryRootWindow()oshima@chromium.org2012-05-251-1/+1
| | | | | | | | | BUG=123160 TEST=none Review URL: https://chromiumcodereview.appspot.com/10442017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138950 0039d316-1c4b-4281-b951-d872f2087c98
* Re-implement the screensaver to use WebView instead of ExtensionDialogHost.rkc@chromium.org2012-05-044-0/+323
| | | | | | | | | | | | | Use WebView to render the screensaver extension instead of ExtensionDialogHost. Using the RenderViewGone override to detect termination of the renderer process to restart it. Added browser tests. R=ben@chromium.org,sky@chromium.org BUG=chromium-os:28211 TEST=Tested that the screensaver comes up; tested the reload via crashing the extension renderer with SIG_ABRT; also ran browser tests. Review URL: https://chromiumcodereview.appspot.com/10191010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135392 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 135369 - Re-implement the screensaver to use WebView instead of ↵rkc@chromium.org2012-05-044-323/+0
| | | | | | | | | | | | | | | | | ExtensionDialogHost. Use WebView to render the screensaver extension instead of ExtensionDialogHost. Using the RenderViewGone override to detect termination of the renderer process to restart it. Added browser tests. R=ben@chromium.org,sky@chromium.org BUG=chromium-os:28211 TEST=Tested that the screensaver comes up; tested the reload via crashing the extension renderer with SIG_ABRT; also ran browser tests. Review URL: https://chromiumcodereview.appspot.com/10191010 TBR=rkc@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135372 0039d316-1c4b-4281-b951-d872f2087c98
* Re-implement the screensaver to use WebView instead of ExtensionDialogHost.rkc@chromium.org2012-05-044-0/+323
| | | | | | | | | | | | | Use WebView to render the screensaver extension instead of ExtensionDialogHost. Using the RenderViewGone override to detect termination of the renderer process to restart it. Added browser tests. R=ben@chromium.org,sky@chromium.org BUG=chromium-os:28211 TEST=Tested that the screensaver comes up; tested the reload via crashing the extension renderer with SIG_ABRT; also ran browser tests. Review URL: https://chromiumcodereview.appspot.com/10191010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135369 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 135000 - Re-implement the screensaver to use WebView instead of ↵rkc@chromium.org2012-05-024-323/+0
| | | | | | | | | | | | | | | | | | ExtensionDialogHost. Use WebView to render the screensaver extension instead of ExtensionDialogHost. Using the RenderViewGone override to detect termination of the renderer process to restart it. Added browser tests. R=ben@chromium.org,sky@chromium.org BUG=chromium-os:28211 TEST=Tested that the screensaver comes up; tested the reload via crashing the extension renderer with SIG_ABRT; also ran browser tests. Review URL: https://chromiumcodereview.appspot.com/10191010 TBR=rkc@chromium.org Review URL: https://chromiumcodereview.appspot.com/10335010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135004 0039d316-1c4b-4281-b951-d872f2087c98
* Re-implement the screensaver to use WebView instead of ExtensionDialogHost.rkc@chromium.org2012-05-024-0/+323
| | | | | | | | | | | | | Use WebView to render the screensaver extension instead of ExtensionDialogHost. Using the RenderViewGone override to detect termination of the renderer process to restart it. Added browser tests. R=ben@chromium.org,sky@chromium.org BUG=chromium-os:28211 TEST=Tested that the screensaver comes up; tested the reload via crashing the extension renderer with SIG_ABRT; also ran browser tests. Review URL: https://chromiumcodereview.appspot.com/10191010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135000 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r134889, "Re-implement the screensaver to use WebView instead of ↵caseq@google.com2012-05-024-322/+0
| | | | | | | | | | | | | | ExtensionDialogHost." The original change broke Win Aura and 3 Linux CrOs builders. TBR=rkc@chromium.org,finnur@chromium.org BUG=chromium-os:28211 TEST=tree goes green Review URL: https://chromiumcodereview.appspot.com/10314008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134893 0039d316-1c4b-4281-b951-d872f2087c98
* Re-implement the screensaver to use WebView instead of ExtensionDialogHost.rkc@chromium.org2012-05-024-0/+322
| | | | | | | | | | | | | | Use WebView to render the screensaver extension instead of ExtensionDialogHost. Using the RenderViewGone override to detect termination of the renderer process to restart it. Added browser tests. R=ben@chromium.org,sky@chromium.org BUG=chromium-os:28211 TEST=Tested that the screensaver comes up; tested the reload via crashing the extension renderer with SIG_ABRT; also ran browser tests. Review URL: http://codereview.chromium.org/10191010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134889 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 134878 - Re-implement the screensaver to use WebView instead of ↵rkc@chromium.org2012-05-024-322/+0
| | | | | | | | | | | | | | | | | | ExtensionDialogHost. Use WebView to render the screensaver extension instead of ExtensionDialogHost. Using the RenderViewGone override to detect termination of the renderer process to restart it. Added browser tests. R=ben@chromium.org,sky@chromium.org BUG=chromium-os:28211 TEST=Tested that the screensaver comes up; tested the reload via crashing the extension renderer with SIG_ABRT; also ran browser tests. Review URL: https://chromiumcodereview.appspot.com/10191010 TBR=rkc@chromium.org Review URL: https://chromiumcodereview.appspot.com/10316004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134881 0039d316-1c4b-4281-b951-d872f2087c98
* Re-implement the screensaver to use WebView instead of ExtensionDialogHost.rkc@chromium.org2012-05-024-0/+322
Use WebView to render the screensaver extension instead of ExtensionDialogHost. Using the RenderViewGone override to detect termination of the renderer process to restart it. Added browser tests. R=ben@chromium.org,sky@chromium.org BUG=chromium-os:28211 TEST=Tested that the screensaver comes up; tested the reload via crashing the extension renderer with SIG_ABRT; also ran browser tests. Review URL: https://chromiumcodereview.appspot.com/10191010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134878 0039d316-1c4b-4281-b951-d872f2087c98