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_BROWSER_RENDERER_HOST_OVERSCROLL_CONTROLLER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_OVERSCROLL_CONTROLLER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_OVERSCROLL_CONTROLLER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_OVERSCROLL_CONTROLLER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "third_party/WebKit/public/web/WebInputEvent.h" | 10 #include "third_party/WebKit/public/platform/WebGestureEvent.h" |
| 11 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
11 | 12 |
12 namespace content { | 13 namespace content { |
13 | 14 |
14 class RenderWidgetHostViewAuraOverscrollTest; | 15 class RenderWidgetHostViewAuraOverscrollTest; |
15 class OverscrollControllerDelegate; | 16 class OverscrollControllerDelegate; |
16 | 17 |
17 // Indicates the direction that the scroll is heading in relative to the screen, | 18 // Indicates the direction that the scroll is heading in relative to the screen, |
18 // with the top being NORTH. | 19 // with the top being NORTH. |
19 enum OverscrollMode { | 20 enum OverscrollMode { |
20 OVERSCROLL_NONE, | 21 OVERSCROLL_NONE, |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // The delegate that receives the overscroll updates. The delegate is not | 119 // The delegate that receives the overscroll updates. The delegate is not |
119 // owned by this controller. | 120 // owned by this controller. |
120 OverscrollControllerDelegate* delegate_; | 121 OverscrollControllerDelegate* delegate_; |
121 | 122 |
122 DISALLOW_COPY_AND_ASSIGN(OverscrollController); | 123 DISALLOW_COPY_AND_ASSIGN(OverscrollController); |
123 }; | 124 }; |
124 | 125 |
125 } // namespace content | 126 } // namespace content |
126 | 127 |
127 #endif // CONTENT_BROWSER_RENDERER_HOST_OVERSCROLL_CONTROLLER_H_ | 128 #endif // CONTENT_BROWSER_RENDERER_HOST_OVERSCROLL_CONTROLLER_H_ |
OLD | NEW |