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

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

Issue 873963003: Remove more mouse-specific code (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Build fixes Created 5 years, 11 months 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) 2008, 2011 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008, 2011 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // Functions for controlling if you can scroll past the end of the document. 69 // Functions for controlling if you can scroll past the end of the document.
70 bool constrainsScrollingToContentEdge() const { return m_constrainsScrolling ToContentEdge; } 70 bool constrainsScrollingToContentEdge() const { return m_constrainsScrolling ToContentEdge; }
71 void setConstrainsScrollingToContentEdge(bool constrainsScrollingToContentEd ge) { m_constrainsScrollingToContentEdge = constrainsScrollingToContentEdge; } 71 void setConstrainsScrollingToContentEdge(bool constrainsScrollingToContentEd ge) { m_constrainsScrollingToContentEdge = constrainsScrollingToContentEdge; }
72 72
73 void setVerticalScrollElasticity(ScrollElasticity scrollElasticity) { m_vert icalScrollElasticity = scrollElasticity; } 73 void setVerticalScrollElasticity(ScrollElasticity scrollElasticity) { m_vert icalScrollElasticity = scrollElasticity; }
74 ScrollElasticity verticalScrollElasticity() const { return static_cast<Scrol lElasticity>(m_verticalScrollElasticity); } 74 ScrollElasticity verticalScrollElasticity() const { return static_cast<Scrol lElasticity>(m_verticalScrollElasticity); }
75 75
76 void setHorizontalScrollElasticity(ScrollElasticity scrollElasticity) { m_ho rizontalScrollElasticity = scrollElasticity; } 76 void setHorizontalScrollElasticity(ScrollElasticity scrollElasticity) { m_ho rizontalScrollElasticity = scrollElasticity; }
77 ScrollElasticity horizontalScrollElasticity() const { return static_cast<Scr ollElasticity>(m_horizontalScrollElasticity); } 77 ScrollElasticity horizontalScrollElasticity() const { return static_cast<Scr ollElasticity>(m_horizontalScrollElasticity); }
78 78
79 void mouseEnteredContentArea() const;
80 void mouseExitedContentArea() const;
81 void mouseMovedInContentArea() const;
82 void mouseEnteredScrollbar(Scrollbar*) const;
83 void mouseExitedScrollbar(Scrollbar*) const;
84 void contentAreaDidShow() const; 79 void contentAreaDidShow() const;
85 void contentAreaDidHide() const; 80 void contentAreaDidHide() const;
86 81
87 void finishCurrentScrollAnimations() const; 82 void finishCurrentScrollAnimations() const;
88 83
89 void didAddScrollbar(Scrollbar*, ScrollbarOrientation); 84 void didAddScrollbar(Scrollbar*, ScrollbarOrientation);
90 void willRemoveScrollbar(Scrollbar*, ScrollbarOrientation); 85 void willRemoveScrollbar(Scrollbar*, ScrollbarOrientation);
91 86
92 void contentsResized(); 87 void contentsResized();
93 88
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 // vertical-lr / ltr NO NO 185 // vertical-lr / ltr NO NO
191 // vertical-lr / rtl NO YES 186 // vertical-lr / rtl NO YES
192 // vertical-rl / ltr YES NO 187 // vertical-rl / ltr YES NO
193 // vertical-rl / rtl YES YES 188 // vertical-rl / rtl YES YES
194 IntPoint m_scrollOrigin; 189 IntPoint m_scrollOrigin;
195 }; 190 };
196 191
197 } // namespace blink 192 } // namespace blink
198 193
199 #endif // SKY_ENGINE_PLATFORM_SCROLL_SCROLLABLEAREA_H_ 194 #endif // SKY_ENGINE_PLATFORM_SCROLL_SCROLLABLEAREA_H_
OLDNEW
« no previous file with comments | « sky/engine/platform/scroll/ScrollAnimator.h ('k') | sky/engine/platform/scroll/ScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698