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

Side by Side Diff: Source/platform/scroll/Scrollbar.h

Issue 1147283002: Add ScrollDirectionPhysical enum in Scroll types. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed a conflict on EventHandler Created 5 years, 7 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
« no previous file with comments | « Source/platform/scroll/ScrollableArea.cpp ('k') | Source/platform/scroll/Scrollbar.cpp » ('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) 2004, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004, 2006 Apple Computer, 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 Scrollbar(ScrollableArea*, ScrollbarOrientation, ScrollbarControlSize, Scrol lbarTheme* = 0); 157 Scrollbar(ScrollableArea*, ScrollbarOrientation, ScrollbarControlSize, Scrol lbarTheme* = 0);
158 158
159 void updateThumb(); 159 void updateThumb();
160 virtual void updateThumbPosition(); 160 virtual void updateThumbPosition();
161 virtual void updateThumbProportion(); 161 virtual void updateThumbProportion();
162 162
163 void autoscrollTimerFired(Timer<Scrollbar>*); 163 void autoscrollTimerFired(Timer<Scrollbar>*);
164 void startTimerIfNeeded(double delay); 164 void startTimerIfNeeded(double delay);
165 void stopTimerIfNeeded(); 165 void stopTimerIfNeeded();
166 void autoscrollPressedPart(double delay); 166 void autoscrollPressedPart(double delay);
167 ScrollDirection pressedPartScrollDirection(); 167 ScrollDirectionPhysical pressedPartScrollDirectionPhysical();
168 ScrollGranularity pressedPartScrollGranularity(); 168 ScrollGranularity pressedPartScrollGranularity();
169 169
170 ScrollableArea* m_scrollableArea; 170 ScrollableArea* m_scrollableArea;
171 ScrollbarOrientation m_orientation; 171 ScrollbarOrientation m_orientation;
172 ScrollbarControlSize m_controlSize; 172 ScrollbarControlSize m_controlSize;
173 ScrollbarTheme* m_theme; 173 ScrollbarTheme* m_theme;
174 174
175 #if ENABLE(OILPAN) 175 #if ENABLE(OILPAN)
176 // To simplify Oilpan finalization, keep a copy of the ScrollableArea's 176 // To simplify Oilpan finalization, keep a copy of the ScrollableArea's
177 // scroll animator. Scrollbar is responsible for notifying the animator 177 // scroll animator. Scrollbar is responsible for notifying the animator
(...skipping 28 matching lines...) Expand all
206 virtual bool isScrollbar() const override { return true; } 206 virtual bool isScrollbar() const override { return true; }
207 207
208 float scrollableAreaCurrentPos() const; 208 float scrollableAreaCurrentPos() const;
209 }; 209 };
210 210
211 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr ollbar()); 211 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr ollbar());
212 212
213 } // namespace blink 213 } // namespace blink
214 214
215 #endif // Scrollbar_h 215 #endif // Scrollbar_h
OLDNEW
« no previous file with comments | « Source/platform/scroll/ScrollableArea.cpp ('k') | Source/platform/scroll/Scrollbar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698