Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: chrome/browser/resources/gesture_config.js

Issue 630003003: Change GestureConfiguration types to be consistent with each other and with the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Redefine '$' here rather than including 'cr.js', since this is 5 // Redefine '$' here rather than including 'cr.js', since this is
6 // the only function needed. This allows this file to be loaded 6 // the only function needed. This allows this file to be loaded
7 // in a browser directly for layout and some testing purposes. 7 // in a browser directly for layout and some testing purposes.
8 var $ = function(id) { return document.getElementById(id); }; 8 var $ = function(id) { return document.getElementById(id); };
9 9
10 /** 10 /**
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 key: 'fling_max_cancel_to_down_time_in_ms', 161 key: 'fling_max_cancel_to_down_time_in_ms',
162 label: 'Maximum Cancel to Down Time for Tap Suppression', 162 label: 'Maximum Cancel to Down Time for Tap Suppression',
163 units: 'milliseconds', 163 units: 'milliseconds',
164 }, 164 },
165 { 165 {
166 key: 'fling_max_tap_gap_time_in_ms', 166 key: 'fling_max_tap_gap_time_in_ms',
167 label: 'Maximum Tap Gap Time for Tap Suppression', 167 label: 'Maximum Tap Gap Time for Tap Suppression',
168 units: 'milliseconds', 168 units: 'milliseconds',
169 }, 169 },
170 { 170 {
171 key: 'semi_long_press_time_in_seconds', 171 key: 'semi_long_press_time_in_ms',
172 label: 'Semi Long Press Time', 172 label: 'Semi Long Press Time',
173 units: 'seconds', 173 units: 'milliseconds',
174 step: 0.1
175 }, 174 },
176 { 175 {
177 key: 'max_separation_for_gesture_touches_in_pixels', 176 key: 'max_separation_for_gesture_touches_in_pixels',
178 label: 'Maximum Separation for Gesture Touches', 177 label: 'Maximum Separation for Gesture Touches',
179 units: 'pixels' 178 units: 'pixels'
180 }, 179 },
181 { 180 {
182 key: 'tab_scrub_activation_delay_in_ms', 181 key: 'tab_scrub_activation_delay_in_ms',
183 label: 'Tab scrub auto activation delay, (-1 for never)', 182 label: 'Tab scrub auto activation delay, (-1 for never)',
184 units: 'milliseconds' 183 units: 'milliseconds'
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 */ 311 */
313 updatePreferenceValueResult: function(prefName, value, isDefault) { 312 updatePreferenceValueResult: function(prefName, value, isDefault) {
314 prefName = prefName.substring(prefName.indexOf('.') + 1); 313 prefName = prefName.substring(prefName.indexOf('.') + 1);
315 $(prefName).value = value; 314 $(prefName).value = value;
316 this.updateResetButton($(prefName + '-reset'), isDefault); 315 this.updateResetButton($(prefName + '-reset'), isDefault);
317 this.updateResetAllButton(this.areAllPrefsSetToDefault()); 316 this.updateResetAllButton(this.areAllPrefsSetToDefault());
318 }, 317 },
319 }; 318 };
320 319
321 document.addEventListener('DOMContentLoaded', gesture_config.initialize); 320 document.addEventListener('DOMContentLoaded', gesture_config.initialize);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698