summaryrefslogtreecommitdiffstats
path: root/ash/screen_ash.cc
diff options
context:
space:
mode:
authormukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-23 04:27:21 +0000
committermukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-23 04:27:21 +0000
commit0d62e25920a3e34b740658e26a0c0163ad4ce761 (patch)
tree8ea28c774ae8befbbc6295848590235a60323674 /ash/screen_ash.cc
parentdc9c03b8d63f23271f1fd3b295e0c77f6c282c00 (diff)
downloadchromium_src-0d62e25920a3e34b740658e26a0c0163ad4ce761.zip
chromium_src-0d62e25920a3e34b740658e26a0c0163ad4ce761.tar.gz
chromium_src-0d62e25920a3e34b740658e26a0c0163ad4ce761.tar.bz2
Overscan calibration UI.
Puts arrows over the display rectangles and enables calibrating the display overscan by mouse clicks and touches. BUG=139419 TEST=Login, connect secondary display, open chrome://settings/display, and play with its overscan calibrations. Review URL: https://chromiumcodereview.appspot.com/11195036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163498 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/screen_ash.cc')
-rw-r--r--ash/screen_ash.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/ash/screen_ash.cc b/ash/screen_ash.cc
index 41053bd..e5417a2 100644
--- a/ash/screen_ash.cc
+++ b/ash/screen_ash.cc
@@ -84,6 +84,11 @@ const gfx::Display& ScreenAsh::GetSecondaryDisplay() {
return *(Shell::GetInstance()->display_controller()->GetSecondaryDisplay());
}
+// static
+const gfx::Display& ScreenAsh::GetDisplayForId(int64 display_id) {
+ return GetDisplayManager()->GetDisplayForId(display_id);
+}
+
bool ScreenAsh::IsDIPEnabled() {
return true;
}