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

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

Issue 10917169: Adjust defaults for touchscreen scrolling parameters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review nit Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/renderer_host/gesture_event_filter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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);
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/gesture_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698