diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-28 11:52:10 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-28 11:52:10 +0000 |
commit | 47ebe0c6296197904f7faf4be3f4f8670d147c12 (patch) | |
tree | be97294c4f938c1e5aad79e68a89debd8e2f4f0d /ui/gfx/display.h | |
parent | 15a8139dec983576d677bc6b6abded5c2b451c09 (diff) | |
download | chromium_src-47ebe0c6296197904f7faf4be3f4f8670d147c12.zip chromium_src-47ebe0c6296197904f7faf4be3f4f8670d147c12.tar.gz chromium_src-47ebe0c6296197904f7faf4be3f4f8670d147c12.tar.bz2 |
Refactor DisplayInfo/Display - 2nd try
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
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=185178
Review URL: https://chromiumcodereview.appspot.com/12218045
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185230 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/display.h')
-rw-r--r-- | ui/gfx/display.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/ui/gfx/display.h b/ui/gfx/display.h index 4df69b7..81963f2 100644 --- a/ui/gfx/display.h +++ b/ui/gfx/display.h @@ -88,13 +88,6 @@ class UI_EXPORT Display { // Returns the display's size in pixel coordinates. gfx::Size GetSizeInPixel() const; -#if defined(USE_AURA) - // TODO(oshima|skuhne): Eliminate the use of bounds_in_pixel in events_x.cc - // and remove bounds_in_pixel from gfx::Display. - // Returns the display's bounds in pixel coordinates. - const Rect& bounds_in_pixel() const { return bounds_in_pixel_; } -#endif - // Returns a string representation of the display; std::string ToString() const; @@ -114,9 +107,6 @@ class UI_EXPORT Display { int64 id_; Rect bounds_; Rect work_area_; -#if defined(USE_AURA) - Rect bounds_in_pixel_; -#endif float device_scale_factor_; }; |