summaryrefslogtreecommitdiffstats
path: root/ash/display/display_controller.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix references to ui/gfx headers in a*/.Avi Drissman2014-12-221-1/+1
| | | | | | | | | | BUG=444596 TEST=none TBR=ben@chromium.org Review URL: https://codereview.chromium.org/802473003 Cr-Commit-Position: refs/heads/master@{#309448}
* Create mirror window & reflector asynchronously.oshima2014-11-121-2/+2
| | | | | | | | | | | | | * This is speculative fix for the crash in the bug. I couldn't found the scenario that can cause this, but apparently, it's trying to create a reflector for the compositor that was just created. * cleanup the change made to support VK on 2nd display. (non desktop -> mirroring) BUG=425287 Review URL: https://codereview.chromium.org/701993002 Cr-Commit-Position: refs/heads/master@{#303899}
* Standardize usage of virtual/override/final specifiers.dcheng2014-10-281-11/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Google C++ style guide states: Explicitly annotate overrides of virtual functions or virtual destructors with an override or (less frequently) final specifier. Older (pre-C++11) code will use the virtual keyword as an inferior alternative annotation. For clarity, use exactly one of override, final, or virtual when declaring an override. To better conform to these guidelines, the following constructs have been rewritten: - if a base class has a virtual destructor, then: virtual ~Foo(); -> ~Foo() override; - virtual void Foo() override; -> void Foo() override; - virtual void Foo() override final; -> void Foo() final; This patch was automatically generated. The clang plugin can generate fixit hints, which are suggested edits when it is 100% sure it knows how to fix a problem. The hints from the clang plugin were applied to the source tree using the tool in https://codereview.chromium.org/598073004. BUG=417463 R=derat@chromium.org Review URL: https://codereview.chromium.org/685543003 Cr-Commit-Position: refs/heads/master@{#301523}
* replace OVERRIDE and FINAL with override and final in ash/mostynb2014-10-031-8/+8
| | | | | | | | BUG=417463 Review URL: https://codereview.chromium.org/621133002 Cr-Commit-Position: refs/heads/master@{#298040}
* Remove keyboard usability modebshe2014-09-161-7/+0
| | | | | | | | BUG=414766 Review URL: https://codereview.chromium.org/574033003 Cr-Commit-Position: refs/heads/master@{#295140}
* Remove Unretained(this) that are not safe in ash/oshima@chromium.org2014-06-111-0/+5
| | | | | | | | | BUG=349083 R=jamescook@chromium.org Review URL: https://codereview.chromium.org/326993002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276285 0039d316-1c4b-4281-b951-d872f2087c98
* Add OnDisplayMetricsChanged in DisplayObserver.mlamouri@chromium.org2014-05-221-3/+3
| | | | | | | | | | | | | | This replaces OnDisplayBoundsChanged and add a MetricsType parameter so consumers can now which metrics has changed. The current set of MetricsType include bounds, workarea and rotation. BUG=162827 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271768 Review URL: https://codereview.chromium.org/259253002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272040 0039d316-1c4b-4281-b951-d872f2087c98
* Revert of Add OnDisplayMetricsChanged in DisplayObserver. ↵zea@chromium.org2014-05-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (https://codereview.chromium.org/259253002/) Reason for revert: Breaks DesktopScreenX11Test.RemoveMonitorOnRight and AddMonitorToTheRight on Linux Tests TBR=mlamouri@chromium.org NOTRY=true NOTREECHECKS=true http://build.chromium.org/p/chromium.linux/buildstatus?builder=Linux%20Tests&number=11092 Original issue's description: > Add OnDisplayMetricsChanged in DisplayObserver. > > This replaces OnDisplayBoundsChanged and add a MetricsType > parameter so consumers can now which metrics has changed. The > current set of MetricsType include bounds, workarea and rotation. > > BUG=162827 > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271768 Review URL: https://codereview.chromium.org/294963004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271782 0039d316-1c4b-4281-b951-d872f2087c98
* Add OnDisplayMetricsChanged in DisplayObserver.mlamouri@chromium.org2014-05-201-3/+3
| | | | | | | | | | | | This replaces OnDisplayBoundsChanged and add a MetricsType parameter so consumers can now which metrics has changed. The current set of MetricsType include bounds, workarea and rotation. BUG=162827 Review URL: https://codereview.chromium.org/259253002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271768 0039d316-1c4b-4281-b951-d872f2087c98
* Makes construction of (ash)RemoteWindowTreeHostWin explicitsky@chromium.org2014-05-151-3/+7
| | | | | | | | | | | | | | | | | I need to do this as I need to pass in state to the constructor and I can't do that with lazy construction. This makes creation a little saner anyway. I'm not happy about the static setting the HWND. I'll see if I can clean that up later. BUG=none TEST=none R=ananta@chromium.org Review URL: https://codereview.chromium.org/277753002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270747 0039d316-1c4b-4281-b951-d872f2087c98
* Introdcue AshWindowTreeHost and move ash/chrome specific code in WTH to ash.oshima@chromium.org2014-04-111-12/+13
| | | | | | | | | | | | | | | | | | | | | | | | Other notable changes: * Removed WindowTreeHostFactory as this is no longer necessary. * Moved RootWindowTransformer to ash/host * Removed Set/GetInsets which are no longer necessary (a code in SetInsets is now a part of SetRootWindowTransformer) * Added TransformerHelper that implements common behavior to transform root window for AshWindowTreeHost * Added DEPS files * Updated metro_viewer code to make sure it creates ash::AshRemoteWindowHostTree A few more simplifications to come: * Simplify RootWindowTransformer * Eliminate EnvObserver in AshWindowTreeHostX11 I'll also work on DEPS reorg to make it more explicit under ash/ BUG=355771 TEST=No functional change. ui/aura/window_tree_host_x11_unittests has been moved to ash/host/ash_window_tree_host_x11_unittests Review URL: https://codereview.chromium.org/201573015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263192 0039d316-1c4b-4281-b951-d872f2087c98
* Eliminate ash::internal namespaceoshima@chromium.org2014-04-031-16/+13
| | | | | | | | | | | 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
* Add OnDisplaysInitialized to DisplayController::Observeroshima@chromium.org2014-03-151-0/+4
| | | | | | | | | | this is a place for actions when displays are initialized after startup. BUG=None Review URL: https://codereview.chromium.org/199323003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257302 0039d316-1c4b-4281-b951-d872f2087c98
* Rename RootWindowObserver -> WindowTreeHostObserver.ben@chromium.org2014-03-051-5/+4
| | | | | | | | | | | Move observer management and notification to WTH. R=sky@chromium.org http://crbug.com/348874 Review URL: https://codereview.chromium.org/186423002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255108 0039d316-1c4b-4281-b951-d872f2087c98
* Invert the ownership relationship between WindowEventDispatcher and ↵ben@chromium.org2014-02-281-3/+3
| | | | | | | | | | | | | | | | | WindowTreeHost. Prior to this change, WindowEventDispatcher owns WindowTreeHost. Code wishing to own an aura::Window hierarchy must create a WindowEventDispatcher, which will either create a default WTH implementation or use the one supplied by the caller. This relationship made more sense long ago in the days when WED was called RootWindow, and served a purpose broader than just event dispatch bookkeeping. Those days are gone. For code using Aura, it makes more sense for them to create the WTH directly. I predict this may permit some simplification of shutdown code in some situations, since I think it is more intuitive to think of the destruction cascade initiating at the object that most closely binds to the platform accelerated widget. Today, ownership of the window tree sits with WED, which must destroy the window tree and the host. This CL attempts to make as few changes as possible to invert the ownership. The effect of this is that there is a bunch of code left that probably only needs a WTH but instead has a WED. I will get around to cleaning these up in a future CL. http://crbug.com/308843 R=sky@chromium.org Review URL: https://codereview.chromium.org/180003006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254071 0039d316-1c4b-4281-b951-d872f2087c98
* Rename RootWindow -> WindowEventDispatcher.ben@chromium.org2014-02-211-3/+5
| | | | | | | | | | http://crbug.com/308843 R=sky@chromium.org Review URL: https://codereview.chromium.org/172743002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252501 0039d316-1c4b-4281-b951-d872f2087c98
* Implement cursor compositing mode on Ashhshi@chromium.org2014-02-061-0/+6
| | | | | | | | | | | | | | | | Currently this is only enabled when the accessibility feature "high contrast" mode or "large cursor" mode is enabled. We do not enable this by default because cursor compositing shows some lags especially on slow machines or when CPU is busy. BUG=290837 TEST=trybot, manual testing mirror/extend/dual display mode R=derat@chromium.org, oshima@chromium.org Review URL: https://codereview.chromium.org/145313003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249289 0039d316-1c4b-4281-b951-d872f2087c98
* Screen cleanup:oshima@chromium.org2014-01-171-20/+3
| | | | | | | | | | | | | * Split ScreenAsh to ScreenUtil (set of utility functions) and the screen implementation. * moved screen_ash from Shell to DisplayManager. Ash specific imp is now hidden in DisplayManager. * Shell now creates a separate screen object which simply keeps the list of displays for shutdown. This allow all screen operation valid during shutdown. BUG=None TBR=hongbo.min@intel.com,sky@chromium.org Review URL: https://codereview.chromium.org/138003007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245562 0039d316-1c4b-4281-b951-d872f2087c98
* Rename RootWindowHost to WindowTreeHostben@chromium.org2014-01-081-1/+1
| | | | | | | | | TBR=sky@chromium.org http://crbug.com/308843 Review URL: https://codereview.chromium.org/126513004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243578 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 236048 "Rename RootWindowHost* to WindowTreeHost*"ben@chromium.org2013-11-201-1/+1
| | | | | | | | | | | | | | | > Rename RootWindowHost* to WindowTreeHost* > > TBR=sky@chromium.org > http://crbug.com/308843 > > Review URL: https://codereview.chromium.org/76583003 TBR=ben@chromium.org Review URL: https://codereview.chromium.org/77203002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236093 0039d316-1c4b-4281-b951-d872f2087c98
* Rename RootWindowHost* to WindowTreeHost*ben@chromium.org2013-11-191-1/+1
| | | | | | | | | TBR=sky@chromium.org http://crbug.com/308843 Review URL: https://codereview.chromium.org/76583003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236048 0039d316-1c4b-4281-b951-d872f2087c98
* Add a full screen virtual keyboard to virtual keyboard root windowbshe@chromium.org2013-11-181-0/+5
| | | | | | | | | | | | | | | | | | | This relands https://codereview.chromium.org/47873003. It was reverted because of VirtualKeyboardWindowControllerTest.VirtualKeyboardWindowTest test crash on win8_aura. R=oshima@chromium.org TBR=jamescook, sadrul BUG=310331 TEST= 1. add keyboard-usability-experiment flag 2. hook up an external screen 3. boot device expected: a full screen keyboard on one of the screen Review URL: https://codereview.chromium.org/62833010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235795 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r235502 "Add a full screen virtual keyboard to virtual keyboard root ↵thakis@chromium.org2013-11-171-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | window" Test has been failing on Win8 Aura since it landed. [ RUN ] VirtualKeyboardWindowControllerTest.VirtualKeyboardWindowTest [1816:612:1115/193527:1412105:FATAL:display_manager.cc(571)] Check failed: 1u == updated_display_info_list.size() (1 vs. 2)Multiple display test does not work on Win8 bots. Please skip (don't disable) the test using SupportsMultipleDisplays() Backtrace: base::debug::StackTrace::StackTrace [0x6C8EBBF1+33] logging::LogMessage::~LogMessage [0x6C71D2FE+94] ash::internal::DisplayManager::UpdateDisplays [0x5BA229F5+293] ash::internal::DisplayManager::OnNativeDisplaysChanged [0x5BA22173+2723] ash::internal::DisplayManager::InitFromCommandLine [0x5BA1E281+817] ash::Shell::Init [0x5B7628A2+210] ash::Shell::CreateInstance [0x5B75C8D9+361] ash::test::AshTestHelper::SetUp [0x01782E29+281] ash::test::AshTestBase::SetUp [0x017753AC+332] ash::test::VirtualKeyboardWindowControllerTest::SetUp [0x016A57D7+247] testing::internal::HandleExceptionsInMethodIfSupported<testing::Test,void> [0x0174E3BF+319] testing::Test::Run [0x01738DDB+107] testing::TestInfo::Run [0x017397ED+221] testing::TestCase::Run [0x01739F9F+239] testing::internal::UnitTestImpl::RunAllTests [0x017408ED+701] testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,bool> [0x0174EFE7+327] testing::UnitTest::Run [0x0173F150+192] base::TestSuite::Run [0x0172DD00+240] main [0x01647767+103] __tmainCRTStartup [0x018B870F+447] (f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c:555) mainCRTStartup [0x018B853F+15] (f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c:371) BaseThreadInitThunk [0x750D8543+14] RtlInitializeExceptionChain [0x775DAC69+133] RtlInitializeExceptionChain [0x775DAC3C+88] http://build.chromium.org/p/chromium.win/builders/Win8%20Aura/builds/12680/steps/ash_unittests/logs/stdio BUG=310331 TBR=bshe@chromium.org Review URL: https://codereview.chromium.org/74693002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235520 0039d316-1c4b-4281-b951-d872f2087c98
* Add a full screen virtual keyboard to virtual keyboard root windowbshe@chromium.org2013-11-161-0/+5
| | | | | | | | | | | | | BUG=310331 TEST= 1. add keyboard-usability-experiment flag 2. hook up an external screen 3. boot device expected: a full screen keyboard on one of the screen Review URL: https://codereview.chromium.org/47873003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235502 0039d316-1c4b-4281-b951-d872f2087c98
* Dont' update focus when moving mirror to docked modeoshima@chromium.org2013-11-131-1/+1
| | | | | | | | | | | In this case, the root window is reassigned to another display, so no need to update the focus. BUG=283173 TEST=covered by unit test Review URL: https://codereview.chromium.org/70793002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234788 0039d316-1c4b-4281-b951-d872f2087c98
* Remove some uses of RootWindow in Ash.ben@chromium.org2013-11-091-2/+2
| | | | | | | | | | | Adds a window() accessor to RootWindow. This is redundant now but necessary for when RootWindow is no longer a RootWindow. A subsequent CL will sever that relationship. R=sky@chromium.org http://crbug.com/308843 Review URL: https://codereview.chromium.org/67083004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234082 0039d316-1c4b-4281-b951-d872f2087c98
* Eliminate Shell::RootWindowList in favor of aura::Window::Windows.ben@chromium.org2013-11-081-1/+2
| | | | | | | | | | | | | This is necessary as part of my plan to rework RootWindow, specifically making it not be a subclass of Window. (It will eventually be renamed WindowEventDispatcher). Code that expected to get the RootWindow interface from this type can still call GetDispatcher() on members of the returned vector of Windows. R=oshima@chromium.org http://crbug.com/308843 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233787 Review URL: https://codereview.chromium.org/64933002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233970 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 233787 "Eliminate Shell::RootWindowList in favor of aura:..."ben@chromium.org2013-11-081-2/+1
| | | | | | | | | | | | | | | | | > Eliminate Shell::RootWindowList in favor of aura::Window::Windows. > > This is necessary as part of my plan to rework RootWindow, specifically making it not be a subclass of Window. (It will eventually be renamed WindowEventDispatcher). Code that expected to get the RootWindow interface from this type can still call GetDispatcher() on members of the returned vector of Windows. > > R=oshima@chromium.org > http://crbug.com/308843 > > Review URL: https://codereview.chromium.org/64933002 TBR=ben@chromium.org Review URL: https://codereview.chromium.org/59153004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233813 0039d316-1c4b-4281-b951-d872f2087c98
* Eliminate Shell::RootWindowList in favor of aura::Window::Windows.ben@chromium.org2013-11-081-1/+2
| | | | | | | | | | | This is necessary as part of my plan to rework RootWindow, specifically making it not be a subclass of Window. (It will eventually be renamed WindowEventDispatcher). Code that expected to get the RootWindow interface from this type can still call GetDispatcher() on members of the returned vector of Windows. R=oshima@chromium.org http://crbug.com/308843 Review URL: https://codereview.chromium.org/64933002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233787 0039d316-1c4b-4281-b951-d872f2087c98
* VIRTUAL KEYBOARD mode for second displayoshima@chromium.org2013-10-291-1/+3
| | | | | | | | | | | This is a place holder so that bshe can add VK to this root window. BUG=310325 R=bshe@chromium.org Review URL: https://codereview.chromium.org/41583002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231454 0039d316-1c4b-4281-b951-d872f2087c98
* Make GetRootWindow() return a Window instead of a RootWindow.ben@chromium.org2013-10-251-2/+2
| | | | | | | | | | | | 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
* Use display ID only for mirrored display.oshima@chromium.org2013-10-251-2/+2
| | | | | | | | | | | | | | Don't show display size for mirrored display. Rename SoftwareMirroring code to more generic name to be used for virtual keyboard. This is preparation to add VIRTUAL KEYBOARD mode. BUG=310325 TBR=hongbo.min@intel.com Review URL: https://codereview.chromium.org/39133002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231067 0039d316-1c4b-4281-b951-d872f2087c98
* Move SetLayoutForCurrentDisplays to DisplayManageroshima@chromium.org2013-10-161-10/+0
| | | | | | | | | | BUG=273142 R=mukai@chromium.org TBR=hongbo.min@intel.com, pkotwicz@chromium.org Review URL: https://codereview.chromium.org/27257004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228994 0039d316-1c4b-4281-b951-d872f2087c98
* Don't deactivate/unfocus unless a display is removed.oshima@chromium.org2013-09-131-1/+1
| | | | | | | | | | | Because pepper flash exits fullscreen when it loses focus. BUG=283173 TEST=covered by test Review URL: https://chromiumcodereview.appspot.com/23890016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222949 0039d316-1c4b-4281-b951-d872f2087c98
* Use registered info to initialize primary display instead ofoshima@chromium.org2013-08-141-6/+0
| | | | | | | | | | | | | | | | swapping primary display in DisplayController::InitSecondaryDisplays. cleanups: * move GetCurrentDisplayIdPair/GetCurrentDisplayLayout to display manager as the do not depends on primary display/root windows * Remove unnecessary UpdateDisplayBoundsForLayout call in DisplayController::InitSecondaryDisplays. BUG=270117 TEST=no functional change. all tests should pass. Review URL: https://chromiumcodereview.appspot.com/23058006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217523 0039d316-1c4b-4281-b951-d872f2087c98
* [Cleanup]oshima@chromium.org2013-07-181-8/+3
| | | | | | | | | | | | | * Removed public API that returns pointer to internal display. * changed to use ScreenAsh::GetSecondaryDisplay instead of one in DisplayController * removed DisplayController::FindDisplayForRootWindow as there is only one caller. BUG=253991 Review URL: https://chromiumcodereview.appspot.com/19287005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212304 0039d316-1c4b-4281-b951-d872f2087c98
* [Cleanup]oshima@chromium.org2013-07-121-10/+44
| | | | | | | | | | | | | | | | | | * Remove aura from DisplayManager -Introduced DislayManager::Delegate to decouple DisplayController - Moved methods that requires aura to DisplayController - Changed to use DisplayInfo to get native bounds instead of RootWindow. * Moved mirror_window_controller_ from Shell to DisplayControlller. This should belong to DC rather than Shell. BUG=253991 Review URL: https://chromiumcodereview.appspot.com/19038002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211357 0039d316-1c4b-4281-b951-d872f2087c98
* 1) Simplify mouse cursor restorationoshima@chromium.org2013-07-111-10/+6
| | | | | | | | | | | | | | | | | | | | | | | It used to move the mouse to the same location in screen coordinates, but the case this would make sense is extremely rare, especially with close lid mode. Instead, it simply use the same native location if the mouse is still on one of display, or move to the center of closest display if it ever becomes outside of the display. 2) DisplayManager::Init has been renamed InitFromCommandLine and changed to use the same Init process as on device. This should allow us to detect errors on bots, that used to happen only on device. 3) removed unnecessary includes,dead code. TBR=derat@chromium.org, mukai@chromium.org BUG=253991 TEST=updated existing tests to match new behavior. Review URL: https://codereview.chromium.org/18358006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211047 0039d316-1c4b-4281-b951-d872f2087c98
* [Cleanup] Factor out layout store code from DisplayControlleroshima@chromium.org2013-07-101-35/+0
| | | | | | | | | | TBR=jamescook@chromium.org BUG=253991 TEST=no functional change. all tests should pass. Review URL: https://chromiumcodereview.appspot.com/18413002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210706 0039d316-1c4b-4281-b951-d872f2087c98
* Update display bounds only once before calling observeroshima@chromium.org2013-07-011-3/+9
| | | | | | | | | | | Use correct order to make display id pair in UpdateSecondaryDisplayBoundsForLayout. BUG=253991 TEST=covered by test. no new feature. all tests still pass. Review URL: https://chromiumcodereview.appspot.com/18117010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209502 0039d316-1c4b-4281-b951-d872f2087c98
* Don't create mirror window during bootstraposhima@chromium.org2013-06-291-0/+2
| | | | | | | | | BUG=255535 TEST=on lucas, enable mirror mode, then logout, or reboot. Review URL: https://chromiumcodereview.appspot.com/18218002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209344 0039d316-1c4b-4281-b951-d872f2087c98
* Stops setting the overscan insets automatically.mukai@chromium.org2013-06-291-1/+0
| | | | | | | | | | | | | We'll keep the 'has_overscan' flag. The flag info would be used in the system tray info and display's notification. BUG=249863 R=oshima@chromium.org TEST=still passes the tests Review URL: https://chromiumcodereview.appspot.com/17976003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209308 0039d316-1c4b-4281-b951-d872f2087c98
* Move DisplayLayout out from display_controller.hoshima@chromium.org2013-06-281-47/+7
| | | | | | | | | | | Remove unnecessary includes BUG=253991 R=jamescook@chromium.org Review URL: https://codereview.chromium.org/18080004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209143 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of time headers in android_webview/, apps/, ash/.avi@chromium.org2013-06-271-2/+2
| | | | | | | | | | BUG=254986 TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/18050008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209025 0039d316-1c4b-4281-b951-d872f2087c98
* Remove old preference formatoshima@chromium.org2013-06-271-4/+0
| | | | | | | | BUG=253991 Review URL: https://chromiumcodereview.appspot.com/17830004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208850 0039d316-1c4b-4281-b951-d872f2087c98
* Call OnDisplayBoundsChanged when bounds are changed due to layout.oshima@chromium.org2013-06-211-0/+6
| | | | | | | | | BUG=247059 TEST=covered by test Review URL: https://chromiumcodereview.appspot.com/17379003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207694 0039d316-1c4b-4281-b951-d872f2087c98
* Use primary display as hangout/gtalk broadcast windowoshima@chromium.org2013-06-201-0/+2
| | | | | | | | | BUG=242666 TEST=covered by test Review URL: https://chromiumcodereview.appspot.com/17099003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207305 0039d316-1c4b-4281-b951-d872f2087c98
* Use the source display's pixel (host) size as a mirror window's sizeoshima@chromium.org2013-05-291-1/+1
| | | | | | | | | | | | | | so that we can copy texture as is. - store gfx::Display object for mirrored display instead of just id because we need one for mirror root window. - use host window's coordinate for mirror cursor window. BUG=239776 TEST=covered by unit tests Review URL: https://chromiumcodereview.appspot.com/15730006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202985 0039d316-1c4b-4281-b951-d872f2087c98
* 2nd tryoshima@chromium.org2013-05-161-5/+2
| | | | | | | | | | | | | | | | | * Use DisplayManager::IsMirrored to check mirroring state * Split CycleDisplay shortcut into AddRemoveDisplay and ToggleMirrorMode * A few minor cleanups that will make it easy to implement compositor based mirroing. BUG=239776 TEST=none no functional change. R=jamescook@chromium.org, mukai@chromium.org, sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=200208 Review URL: https://chromiumcodereview.appspot.com/15094002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200453 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r200208 "* Use DisplayManager::IsMirrored to check mirroring state"oshima@chromium.org2013-05-151-2/+5
| | | | | | | | | TBR=oshima@chromium.org BUG=239776 Review URL: https://codereview.chromium.org/15076012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200221 0039d316-1c4b-4281-b951-d872f2087c98