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