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 11 matching lines...) Expand all Loading... |
22 { | 22 { |
23 key: 'long_press_time_in_seconds', | 23 key: 'long_press_time_in_seconds', |
24 label: 'Long Press Time', | 24 label: 'Long Press Time', |
25 units: 'seconds', | 25 units: 'seconds', |
26 default: 1.0 | 26 default: 1.0 |
27 }, | 27 }, |
28 { | 28 { |
29 key: 'semi_long_press_time_in_seconds', | 29 key: 'semi_long_press_time_in_seconds', |
30 label: 'Semi Long Press Time', | 30 label: 'Semi Long Press Time', |
31 units: 'seconds', | 31 units: 'seconds', |
32 default: 0.5 | 32 default: 0.4 |
33 }, | 33 }, |
34 { | 34 { |
35 key: 'max_seconds_between_double_click', | 35 key: 'max_seconds_between_double_click', |
36 label: 'Maximum Double Click Interval', | 36 label: 'Maximum Double Click Interval', |
37 units: 'seconds', | 37 units: 'seconds', |
38 step: 0.1, | 38 step: 0.1, |
39 default: 0.7 | 39 default: 0.7 |
40 }, | 40 }, |
41 { | 41 { |
42 key: 'max_separation_for_gesture_touches_in_pixels', | 42 key: 'max_separation_for_gesture_touches_in_pixels', |
(...skipping 11 matching lines...) Expand all Loading... |
54 key: 'max_touch_down_duration_in_seconds_for_click', | 54 key: 'max_touch_down_duration_in_seconds_for_click', |
55 label: 'Maximum Touch-Down Duration for Click', | 55 label: 'Maximum Touch-Down Duration for Click', |
56 units: 'seconds', | 56 units: 'seconds', |
57 step: 0.1, | 57 step: 0.1, |
58 default: 0.8 | 58 default: 0.8 |
59 }, | 59 }, |
60 { | 60 { |
61 key: 'max_touch_move_in_pixels_for_click', | 61 key: 'max_touch_move_in_pixels_for_click', |
62 label: 'Maximum Touch-Move for Click', | 62 label: 'Maximum Touch-Move for Click', |
63 units: 'pixels', | 63 units: 'pixels', |
| 64 default: 5 |
| 65 }, |
| 66 { |
| 67 key: 'max_distance_between_taps_for_double_tap', |
| 68 label: 'Maximum Distance between two taps for Double Tap', |
| 69 units: 'pixels', |
64 default: 20 | 70 default: 20 |
65 }, | 71 }, |
66 { | 72 { |
67 key: 'min_distance_for_pinch_scroll_in_pixels', | 73 key: 'min_distance_for_pinch_scroll_in_pixels', |
68 label: 'Minimum Distance for Pinch Scroll', | 74 label: 'Minimum Distance for Pinch Scroll', |
69 units: 'pixels', | 75 units: 'pixels', |
70 default: 20 | 76 default: 20 |
71 }, | 77 }, |
72 { | 78 { |
73 key: 'min_flick_speed_squared', | 79 key: 'min_flick_speed_squared', |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 $('reset-button').onclick = onReset.bind(this); | 241 $('reset-button').onclick = onReset.bind(this); |
236 } | 242 } |
237 | 243 |
238 return { | 244 return { |
239 initialize: initialize, | 245 initialize: initialize, |
240 getPreferenceValueResult: getPreferenceValueResult | 246 getPreferenceValueResult: getPreferenceValueResult |
241 }; | 247 }; |
242 })(); | 248 })(); |
243 | 249 |
244 document.addEventListener('DOMContentLoaded', gesture_config.initialize); | 250 document.addEventListener('DOMContentLoaded', gesture_config.initialize); |
OLD | NEW |