diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-28 08:44:18 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-28 08:44:18 +0000 |
commit | 28eb49d5c348b1ec3f63a19b385d66b23d3581e1 (patch) | |
tree | edab50dc960f689e65bc60fde3eca108fd9e4bc4 /ui/aura/root_window.cc | |
parent | f26cf28d6e16f1dc81283793ec9cc58fbe6583ed (diff) | |
download | chromium_src-28eb49d5c348b1ec3f63a19b385d66b23d3581e1.zip chromium_src-28eb49d5c348b1ec3f63a19b385d66b23d3581e1.tar.gz chromium_src-28eb49d5c348b1ec3f63a19b385d66b23d3581e1.tar.bz2 |
Refactor DisplayInfo/Display
This is a first step to fix overscan issue and implement
screen rotation.
* remove bounds_in_pixel from gfx::Display
* promote DisplayInfo to separate class/file
* All display information is now generated in display_change_observer_x11.cc.
almost no X11 depenency in display_manager.cc
(I'll move FindInternalDisplayID out from display_manager.cc once https://codereview.chromium.org/12217120/ is landed)
This makes testing more consistent with real environment.
* Add DisplayManager::ClearCustomOverscanInsets so that
you can reset the insets to default value.
* Removed obsolete AshTestBase::ChangeDisplayConfig
BUG=174721,119268
TEST=covered by test
Review URL: https://chromiumcodereview.appspot.com/12218045
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185178 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/root_window.cc')
-rw-r--r-- | ui/aura/root_window.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc index 7305ca7..7ff474f 100644 --- a/ui/aura/root_window.cc +++ b/ui/aura/root_window.cc @@ -196,6 +196,7 @@ gfx::Size RootWindow::GetHostSize() const { } void RootWindow::SetHostBounds(const gfx::Rect& bounds_in_pixel) { + DCHECK(!bounds_in_pixel.IsEmpty()); DispatchHeldMouseMove(); host_->SetBounds(bounds_in_pixel); synthesize_mouse_move_ = false; |