From 347a0c74816b8cea5e595e39dca62dd037b2d686 Mon Sep 17 00:00:00 2001 From: "rbyers@chromium.org" Date: Mon, 14 May 2012 20:28:06 +0000 Subject: Make touch-optimized-ui a tri-state flag By default ('auto') touch-optimized-UI will be enabled if any touch screen is present. The user can also manually disable or enable it ('disabled', 'enabled') for testing purposes. Note that for now --enable-touch-events is still required to enable the use of touch screens (and hence impact 'auto' here) since it's still experimental. Also cleans up all the different ways we were trying to read this mode, unifying on ui::GetDisplayLayout(). BUG=124199 TBR=estade@chromium.org (only change in resources is trivial comment change) TEST= Review URL: https://chromiumcodereview.appspot.com/10391035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136968 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/resources/shared/js/cr.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chrome/browser/resources/shared/js/cr.js') diff --git a/chrome/browser/resources/shared/js/cr.js b/chrome/browser/resources/shared/js/cr.js index b9798bb..059e8ef 100644 --- a/chrome/browser/resources/shared/js/cr.js +++ b/chrome/browser/resources/shared/js/cr.js @@ -16,7 +16,8 @@ this.cr = (function() { /** * Tags the html element with an attribute that allows touch-specific css * rules. - * TODO(rbyers): make Chrome always touch-optimized. http://crbug.com/105380 + * TODO(rbyers): Switch to a touch-screen media query once we have one. + * http://crbug.com/123062 */ function enableTouchOptimizedCss() { if (cr.isTouchOptimized) -- cgit v1.1