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

Side by Side Diff: sky/engine/platform/scroll/ScrollAnimator.h

Issue 681023002: Remove a bunch of frame-level scrolling machinery. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « sky/engine/core/rendering/RenderView.cpp ('k') | sky/engine/platform/scroll/ScrollableArea.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010, Google Inc. All rights reserved. 2 * Copyright (c) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 #if OS(MACOSX) 69 #if OS(MACOSX)
70 virtual void handleWheelEventPhase(PlatformWheelEventPhase) { } 70 virtual void handleWheelEventPhase(PlatformWheelEventPhase) { }
71 #endif 71 #endif
72 72
73 void setCurrentPosition(const FloatPoint&); 73 void setCurrentPosition(const FloatPoint&);
74 FloatPoint currentPosition() const; 74 FloatPoint currentPosition() const;
75 75
76 virtual void cancelAnimations() { } 76 virtual void cancelAnimations() { }
77 virtual void serviceScrollAnimations() { } 77 virtual void serviceScrollAnimations() { }
78 78
79 virtual void contentAreaWillPaint() const { }
80 virtual void mouseEnteredContentArea() const { } 79 virtual void mouseEnteredContentArea() const { }
81 virtual void mouseExitedContentArea() const { } 80 virtual void mouseExitedContentArea() const { }
82 virtual void mouseMovedInContentArea() const { } 81 virtual void mouseMovedInContentArea() const { }
83 virtual void mouseEnteredScrollbar(Scrollbar*) const { } 82 virtual void mouseEnteredScrollbar(Scrollbar*) const { }
84 virtual void mouseExitedScrollbar(Scrollbar*) const { } 83 virtual void mouseExitedScrollbar(Scrollbar*) const { }
85 virtual void willStartLiveResize() { } 84 virtual void willStartLiveResize() { }
86 virtual void contentsResized() const { } 85 virtual void contentsResized() const { }
87 virtual void willEndLiveResize() { } 86 virtual void willEndLiveResize() { }
88 virtual void contentAreaDidShow() const { } 87 virtual void contentAreaDidShow() const { }
89 virtual void contentAreaDidHide() const { } 88 virtual void contentAreaDidHide() const { }
(...skipping 18 matching lines...) Expand all
108 float m_currentPosX; // We avoid using a FloatPoint in order to reduce 107 float m_currentPosX; // We avoid using a FloatPoint in order to reduce
109 float m_currentPosY; // subclass code complexity. 108 float m_currentPosY; // subclass code complexity.
110 109
111 private: 110 private:
112 float clampScrollPosition(ScrollbarOrientation, float); 111 float clampScrollPosition(ScrollbarOrientation, float);
113 }; 112 };
114 113
115 } // namespace blink 114 } // namespace blink
116 115
117 #endif // ScrollAnimator_h 116 #endif // ScrollAnimator_h
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderView.cpp ('k') | sky/engine/platform/scroll/ScrollableArea.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698