Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: chrome/browser/ui/views/frame/scroll_end_effect_controller.h

Issue 22265009: Implement initial version of scroll end effect Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Responded to outstanding comments from sadrul@ Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 ScrollEndEffectControllerDelegate;
11
10 // The controller receives the raw y-deltas generated by the overscroll 12 // The controller receives the raw y-deltas generated by the overscroll
11 // controller and is resonsible for converting them in to the scroll end 13 // 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 14 // 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 15 // visually indicate to the user that they have reached the end of the content
14 // that they are scrolling. 16 // that they are scrolling.
15 class ScrollEndEffectController { 17 class ScrollEndEffectController {
16 public: 18 public:
17 ScrollEndEffectController() {} 19 ScrollEndEffectController() {}
18 virtual ~ScrollEndEffectController() {} 20 virtual ~ScrollEndEffectController() {}
19 21
20 static ScrollEndEffectController* Create(); 22 static ScrollEndEffectController* Create(
23 ScrollEndEffectControllerDelegate* delegate);
21 24
22 // Interface that allows vertical overscroll activies to be communicated to 25 // Interface that allows vertical overscroll activies to be communicated to
23 // the controller. 26 // the controller.
24 virtual void OverscrollUpdate(int delta_y) = 0; 27 virtual void OverscrollUpdate(int delta_y) = 0;
25 28
26 private: 29 private:
27 DISALLOW_COPY_AND_ASSIGN(ScrollEndEffectController); 30 DISALLOW_COPY_AND_ASSIGN(ScrollEndEffectController);
28 }; 31 };
29 32
30 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_SCROLL_END_EFFECT_CONTROLLER_H_ 33 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_SCROLL_END_EFFECT_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/contents_container.cc ('k') | chrome/browser/ui/views/frame/scroll_end_effect_controller_ash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698