OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_SCROLL_END_EFFECT_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_SCROLL_END_EFFECT_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_SCROLL_END_EFFECT_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_SCROLL_END_EFFECT_CONTROLLER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 | 9 |
10 class BrowserView; | |
sky
2013/09/05 21:12:57
don't need BrowserView here.
rharrison
2013/09/09 20:01:17
Done.
| |
11 class ScrollEndEffectControllerDelegate; | |
12 | |
10 // The controller receives the raw y-deltas generated by the overscroll | 13 // The controller receives the raw y-deltas generated by the overscroll |
11 // controller and is resonsible for converting them in to the scroll end | 14 // controller and is resonsible for converting them in to the scroll end |
12 // effect. This effect occurs in the vertical overscroll case and is used to | 15 // effect. This effect occurs in the vertical overscroll case and is used to |
13 // visually indicate to the user that they have reached the end of the content | 16 // visually indicate to the user that they have reached the end of the content |
14 // that they are scrolling. | 17 // that they are scrolling. |
15 class ScrollEndEffectController { | 18 class ScrollEndEffectController { |
16 public: | 19 public: |
17 ScrollEndEffectController() {} | 20 ScrollEndEffectController() {} |
18 virtual ~ScrollEndEffectController() {} | 21 virtual ~ScrollEndEffectController() {} |
19 | 22 |
20 static ScrollEndEffectController* Create(); | 23 static ScrollEndEffectController* Create( |
24 ScrollEndEffectControllerDelegate* delegate); | |
21 | 25 |
22 // Interface that allows vertical overscroll activies to be communicated to | 26 // Interface that allows vertical overscroll activies to be communicated to |
23 // the controller. | 27 // the controller. |
24 virtual void OverscrollUpdate(int delta_y) = 0; | 28 virtual void OverscrollUpdate(int delta_y) = 0; |
25 | 29 |
26 private: | 30 private: |
27 DISALLOW_COPY_AND_ASSIGN(ScrollEndEffectController); | 31 DISALLOW_COPY_AND_ASSIGN(ScrollEndEffectController); |
28 }; | 32 }; |
29 | 33 |
30 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_SCROLL_END_EFFECT_CONTROLLER_H_ | 34 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_SCROLL_END_EFFECT_CONTROLLER_H_ |
OLD | NEW |