summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorskuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-03 05:46:56 +0000
committerskuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-03 05:46:56 +0000
commit5024ce03bbb33f2748dcd5a68d2541b856963bcc (patch)
tree3b2bbc2c5e58d1121f50c79ec856676f3ced0bf4
parentd6e8fe6819d33de823e93bd83cdeec0f11617809 (diff)
downloadchromium_src-5024ce03bbb33f2748dcd5a68d2541b856963bcc.zip
chromium_src-5024ce03bbb33f2748dcd5a68d2541b856963bcc.tar.gz
chromium_src-5024ce03bbb33f2748dcd5a68d2541b856963bcc.tar.bz2
Disabled top calibration
BUG=153545 TEST=visual through rbyers page Review URL: https://chromiumcodereview.appspot.com/11013015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159840 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--ui/base/x/events_x.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/base/x/events_x.cc b/ui/base/x/events_x.cc
index 8245964..71ddb36 100644
--- a/ui/base/x/events_x.cc
+++ b/ui/base/x/events_x.cc
@@ -603,7 +603,9 @@ gfx::Point CalibrateTouchCoordinates(
const int kLeftBorder = 40;
const int kRightBorder = 40;
const int kBottomBorder = 30;
- const int kTopBorder = -20;
+ // A negative border offset will scale the top portion over the top area
+ // and a positive number will cut off n pixels.
+ const int kTopBorder = 0;
const int resolution_x = bounds.width();
const int resolution_y = bounds.height();
// The "grace area" (10% in this case) is to make it easier for the user to