summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/shared/js
diff options
context:
space:
mode:
authorrbyers@chromium.org <rbyers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-14 20:28:06 +0000
committerrbyers@chromium.org <rbyers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-14 20:28:06 +0000
commit347a0c74816b8cea5e595e39dca62dd037b2d686 (patch)
treec5289c11c8290696acb094bb98714c7a9b8a4a3d /chrome/browser/resources/shared/js
parentaa26d4b3674c55cb189dc8081acdd1fbd272f4fe (diff)
downloadchromium_src-347a0c74816b8cea5e595e39dca62dd037b2d686.zip
chromium_src-347a0c74816b8cea5e595e39dca62dd037b2d686.tar.gz
chromium_src-347a0c74816b8cea5e595e39dca62dd037b2d686.tar.bz2
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
Diffstat (limited to 'chrome/browser/resources/shared/js')
-rw-r--r--chrome/browser/resources/shared/js/cr.js3
1 files changed, 2 insertions, 1 deletions
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)