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

Side by Side Diff: third_party/WebKit/Source/platform/scroll/ScrollAnimatorBase.h

Issue 2467693002: Implement overlay scrollbar fade out for non-composited scrollers. (Closed)
Patch Set: sigh....git cl format Created 4 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
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 virtual void contentAreaDidShow() const {} 99 virtual void contentAreaDidShow() const {}
100 virtual void contentAreaDidHide() const {} 100 virtual void contentAreaDidHide() const {}
101 101
102 virtual void finishCurrentScrollAnimations() {} 102 virtual void finishCurrentScrollAnimations() {}
103 103
104 virtual void didAddVerticalScrollbar(Scrollbar&) {} 104 virtual void didAddVerticalScrollbar(Scrollbar&) {}
105 virtual void willRemoveVerticalScrollbar(Scrollbar&) {} 105 virtual void willRemoveVerticalScrollbar(Scrollbar&) {}
106 virtual void didAddHorizontalScrollbar(Scrollbar&) {} 106 virtual void didAddHorizontalScrollbar(Scrollbar&) {}
107 virtual void willRemoveHorizontalScrollbar(Scrollbar&) {} 107 virtual void willRemoveHorizontalScrollbar(Scrollbar&) {}
108 108
109 virtual bool shouldScrollbarParticipateInHitTesting(Scrollbar&) {
110 return true;
111 }
112
113 virtual void notifyContentAreaScrolled(const ScrollOffset&) {} 109 virtual void notifyContentAreaScrolled(const ScrollOffset&) {}
114 110
115 virtual bool setScrollbarsVisibleForTesting(bool) { return false; } 111 virtual bool setScrollbarsVisibleForTesting(bool) { return false; }
116 112
117 DECLARE_VIRTUAL_TRACE(); 113 DECLARE_VIRTUAL_TRACE();
118 114
119 protected: 115 protected:
120 explicit ScrollAnimatorBase(ScrollableArea*); 116 explicit ScrollAnimatorBase(ScrollableArea*);
121 117
122 virtual void notifyOffsetChanged(); 118 virtual void notifyOffsetChanged();
123 119
124 Member<ScrollableArea> m_scrollableArea; 120 Member<ScrollableArea> m_scrollableArea;
125 121
126 ScrollOffset m_currentOffset; 122 ScrollOffset m_currentOffset;
127 }; 123 };
128 124
129 } // namespace blink 125 } // namespace blink
130 126
131 #endif // ScrollAnimatorBase_h 127 #endif // ScrollAnimatorBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698