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

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

Issue 2730773003: Rename FrameViewBase fields and methods *Widget* to ...FrameViewBase... (Closed)
Patch Set: Created 3 years, 9 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 virtual IntRect scrollCornerRect() const = 0; 180 virtual IntRect scrollCornerRect() const = 0;
181 void setScrollCornerNeedsPaintInvalidation(); 181 void setScrollCornerNeedsPaintInvalidation();
182 virtual void getTickmarks(Vector<IntRect>&) const {} 182 virtual void getTickmarks(Vector<IntRect>&) const {}
183 183
184 // Convert points and rects between the scrollbar and its containing 184 // Convert points and rects between the scrollbar and its containing
185 // FrameViewBase. The client needs to implement these in order to be aware of 185 // FrameViewBase. The client needs to implement these in order to be aware of
186 // layout effects like CSS transforms. 186 // layout effects like CSS transforms.
187 virtual IntRect convertFromScrollbarToContainingWidget( 187 virtual IntRect convertFromScrollbarToContainingWidget(
188 const Scrollbar& scrollbar, 188 const Scrollbar& scrollbar,
189 const IntRect& scrollbarRect) const { 189 const IntRect& scrollbarRect) const {
190 return scrollbar.FrameViewBase::convertToContainingWidget(scrollbarRect); 190 return scrollbar.FrameViewBase::convertToContainingFrameViewBase(
191 scrollbarRect);
191 } 192 }
192 virtual IntRect convertFromContainingWidgetToScrollbar( 193 virtual IntRect convertFromContainingWidgetToScrollbar(
193 const Scrollbar& scrollbar, 194 const Scrollbar& scrollbar,
194 const IntRect& parentRect) const { 195 const IntRect& parentRect) const {
195 return scrollbar.FrameViewBase::convertFromContainingWidget(parentRect); 196 return scrollbar.FrameViewBase::convertFromContainingFrameViewBase(
197 parentRect);
196 } 198 }
197 virtual IntPoint convertFromScrollbarToContainingWidget( 199 virtual IntPoint convertFromScrollbarToContainingWidget(
198 const Scrollbar& scrollbar, 200 const Scrollbar& scrollbar,
199 const IntPoint& scrollbarPoint) const { 201 const IntPoint& scrollbarPoint) const {
200 return scrollbar.FrameViewBase::convertToContainingWidget(scrollbarPoint); 202 return scrollbar.FrameViewBase::convertToContainingFrameViewBase(
203 scrollbarPoint);
201 } 204 }
202 virtual IntPoint convertFromContainingWidgetToScrollbar( 205 virtual IntPoint convertFromContainingWidgetToScrollbar(
203 const Scrollbar& scrollbar, 206 const Scrollbar& scrollbar,
204 const IntPoint& parentPoint) const { 207 const IntPoint& parentPoint) const {
205 return scrollbar.FrameViewBase::convertFromContainingWidget(parentPoint); 208 return scrollbar.FrameViewBase::convertFromContainingFrameViewBase(
209 parentPoint);
206 } 210 }
207 211
208 virtual Scrollbar* horizontalScrollbar() const { return nullptr; } 212 virtual Scrollbar* horizontalScrollbar() const { return nullptr; }
209 virtual Scrollbar* verticalScrollbar() const { return nullptr; } 213 virtual Scrollbar* verticalScrollbar() const { return nullptr; }
210 214
211 virtual PaintLayer* layer() const { return nullptr; } 215 virtual PaintLayer* layer() const { return nullptr; }
212 216
213 // scrollPosition is the location of the top/left of the scroll viewport in 217 // scrollPosition is the location of the top/left of the scroll viewport in
214 // the coordinate system defined by the top/left of the overflow rect. 218 // the coordinate system defined by the top/left of the overflow rect.
215 // scrollOffset is the offset of the scroll viewport from its position when 219 // scrollOffset is the offset of the scroll viewport from its position when
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 // vertical-lr / ltr NO NO 455 // vertical-lr / ltr NO NO
452 // vertical-lr / rtl NO YES 456 // vertical-lr / rtl NO YES
453 // vertical-rl / ltr YES NO 457 // vertical-rl / ltr YES NO
454 // vertical-rl / rtl YES YES 458 // vertical-rl / rtl YES YES
455 IntPoint m_scrollOrigin; 459 IntPoint m_scrollOrigin;
456 }; 460 };
457 461
458 } // namespace blink 462 } // namespace blink
459 463
460 #endif // ScrollableArea_h 464 #endif // ScrollableArea_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm ('k') | third_party/WebKit/Source/platform/scroll/Scrollbar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698