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 3 // found in the LICENSE file. 4 5 #ifndef CONTENT_PUBLIC_BROWSER_OVERSCROLL_CONFIGURATION_H_ 6 #define CONTENT_PUBLIC_BROWSER_OVERSCROLL_CONFIGURATION_H_ 7 8 #include "base/basictypes.h" 9 #include "content/common/content_export.h" 10 11 namespace content { 12 13 // Sets and retrieves various overscroll related configuration values. 14 enum OverscrollConfig { 15 OVERSCROLL_CONFIG_NONE, 16 OVERSCROLL_CONFIG_HORIZ_THRESHOLD_COMPLETE, 17 OVERSCROLL_CONFIG_VERT_THRESHOLD_COMPLETE, 18 OVERSCROLL_CONFIG_HORIZ_THRESHOLD_START_TOUCHPAD, 19 OVERSCROLL_CONFIG_HORIZ_THRESHOLD_START_TOUCHSCREEN, 20 OVERSCROLL_CONFIG_VERT_THRESHOLD_START, 21 OVERSCROLL_CONFIG_HORIZ_RESIST_AFTER, 22 OVERSCROLL_CONFIG_VERT_RESIST_AFTER, 23 OVERSCROLL_CONFIG_COUNT 24 }; 25 26 CONTENT_EXPORT void SetOverscrollConfig(OverscrollConfig config, float value); 27 28 CONTENT_EXPORT float GetOverscrollConfig(OverscrollConfig config); 29 30 } // namespace content 31 32 #endif // CONTENT_PUBLIC_BROWSER_OVERSCROLL_CONFIGURATION_H_ 33