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

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

Issue 18603008: Seperate horizontal and vertical overscrolling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add hooks to Gesture UI and fixed threshold bug Created 7 years, 5 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
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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 label: 'Complete when overscrolled (horizontal)', 315 label: 'Complete when overscrolled (horizontal)',
316 units: '%' 316 units: '%'
317 }, 317 },
318 { 318 {
319 key: 'vertical_threshold_complete', 319 key: 'vertical_threshold_complete',
320 label: 'Complete when overscrolled (vertical)', 320 label: 'Complete when overscrolled (vertical)',
321 units: '%' 321 units: '%'
322 }, 322 },
323 { 323 {
324 key: 'minimum_threshold_start', 324 key: 'minimum_threshold_start',
325 label: 'Start overscroll gesture after scrolling', 325 label: 'Start overscroll gesture (horizontal)',
326 units: 'pixels' 326 units: 'pixels'
327 }, 327 },
328 { 328 {
329 key: 'vertical_threshold_start',
330 label: 'Start overscroll gesture (vertical)',
331 units: 'pixels'
332 },
333 {
329 key: 'horizontal_resist_threshold', 334 key: 'horizontal_resist_threshold',
330 label: 'Start resisting overscroll after (horizontal)', 335 label: 'Start resisting overscroll after (horizontal)',
331 units: 'pixels' 336 units: 'pixels'
332 }, 337 },
333 { 338 {
334 key: 'vertical_resist_threshold', 339 key: 'vertical_resist_threshold',
335 label: 'Start resisting overscroll after (vertical)', 340 label: 'Start resisting overscroll after (vertical)',
336 units: 'pixels' 341 units: 'pixels'
337 }, 342 },
338 ]; 343 ];
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 * @param {string} prefName The name of the requested preference value. 534 * @param {string} prefName The name of the requested preference value.
530 * @param {value} value The current value associated with prefName. 535 * @param {value} value The current value associated with prefName.
531 */ 536 */
532 updatePreferenceValueResult: function(prefName, value) { 537 updatePreferenceValueResult: function(prefName, value) {
533 prefName = prefName.substring(prefName.indexOf('.') + 1); 538 prefName = prefName.substring(prefName.indexOf('.') + 1);
534 $(prefName).value = value; 539 $(prefName).value = value;
535 }, 540 },
536 }; 541 };
537 542
538 document.addEventListener('DOMContentLoaded', gesture_config.initialize); 543 document.addEventListener('DOMContentLoaded', gesture_config.initialize);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698