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, 19 OVERSCROLL_CONFIG_VERT_THRESHOLD_START, 20 OVERSCROLL_CONFIG_HORIZ_RESIST_AFTER, 21 OVERSCROLL_CONFIG_VERT_RESIST_AFTER, 22 OVERSCROLL_CONFIG_COUNT 23 }; 24 25 CONTENT_EXPORT void SetOverscrollConfig(OverscrollConfig config, float value); 26 27 CONTENT_EXPORT float GetOverscrollConfig(OverscrollConfig config); 28 29 } // namespace content 30 31 #endif // CONTENT_PUBLIC_BROWSER_OVERSCROLL_CONFIGURATION_H_ 32