| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 { | 128 { |
| 129 key: 'rail_start_proportion', | 129 key: 'rail_start_proportion', |
| 130 label: 'Rail-Start Proportion', | 130 label: 'Rail-Start Proportion', |
| 131 units: '%', | 131 units: '%', |
| 132 default: 2 | 132 default: 2 |
| 133 }, | 133 }, |
| 134 { | 134 { |
| 135 key: 'touchscreen_fling_acceleration_adjustment', | 135 key: 'touchscreen_fling_acceleration_adjustment', |
| 136 label: 'Touchscreen Fling Acceleration Adjustment', | 136 label: 'Touchscreen Fling Acceleration Adjustment', |
| 137 units: 'pixels/sec.', | 137 units: 'pixels/sec.', |
| 138 default: 1 | 138 default: 0.85 |
| 139 } | 139 } |
| 140 ]; | 140 ]; |
| 141 | 141 |
| 142 /** | 142 /** |
| 143 * Dynamically builds web-form based on FIELDS list. | 143 * Dynamically builds web-form based on FIELDS list. |
| 144 * @return {string} The form's HTML. | 144 * @return {string} The form's HTML. |
| 145 */ | 145 */ |
| 146 function buildForm() { | 146 function buildForm() { |
| 147 var buf = []; | 147 var buf = []; |
| 148 | 148 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 $('reset-button').onclick = onReset.bind(this); | 241 $('reset-button').onclick = onReset.bind(this); |
| 242 } | 242 } |
| 243 | 243 |
| 244 return { | 244 return { |
| 245 initialize: initialize, | 245 initialize: initialize, |
| 246 getPreferenceValueResult: getPreferenceValueResult | 246 getPreferenceValueResult: getPreferenceValueResult |
| 247 }; | 247 }; |
| 248 })(); | 248 })(); |
| 249 | 249 |
| 250 document.addEventListener('DOMContentLoaded', gesture_config.initialize); | 250 document.addEventListener('DOMContentLoaded', gesture_config.initialize); |
| OLD | NEW |