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

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

Issue 2721133003: Rename platform/Widget to platform/FrameViewBase in platform. (Closed)
Patch Set: Rename platform/Widget to platform/FrameViewBase in platform. 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 } 174 }
175 175
176 virtual bool isActive() const = 0; 176 virtual bool isActive() const = 0;
177 virtual int scrollSize(ScrollbarOrientation) const = 0; 177 virtual int scrollSize(ScrollbarOrientation) const = 0;
178 void setScrollbarNeedsPaintInvalidation(ScrollbarOrientation); 178 void setScrollbarNeedsPaintInvalidation(ScrollbarOrientation);
179 virtual bool isScrollCornerVisible() const = 0; 179 virtual bool isScrollCornerVisible() const = 0;
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 Widget. 184 // Convert points and rects between the scrollbar and its containing
185 // The client needs to implement these in order to be aware of layout effects 185 // FrameViewBase. The client needs to implement these in order to be aware of
186 // 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.Widget::convertToContainingWidget(scrollbarRect); 190 return scrollbar.FrameViewBase::convertToContainingWidget(scrollbarRect);
191 } 191 }
192 virtual IntRect convertFromContainingWidgetToScrollbar( 192 virtual IntRect convertFromContainingWidgetToScrollbar(
193 const Scrollbar& scrollbar, 193 const Scrollbar& scrollbar,
194 const IntRect& parentRect) const { 194 const IntRect& parentRect) const {
195 return scrollbar.Widget::convertFromContainingWidget(parentRect); 195 return scrollbar.FrameViewBase::convertFromContainingWidget(parentRect);
196 } 196 }
197 virtual IntPoint convertFromScrollbarToContainingWidget( 197 virtual IntPoint convertFromScrollbarToContainingWidget(
198 const Scrollbar& scrollbar, 198 const Scrollbar& scrollbar,
199 const IntPoint& scrollbarPoint) const { 199 const IntPoint& scrollbarPoint) const {
200 return scrollbar.Widget::convertToContainingWidget(scrollbarPoint); 200 return scrollbar.FrameViewBase::convertToContainingWidget(scrollbarPoint);
201 } 201 }
202 virtual IntPoint convertFromContainingWidgetToScrollbar( 202 virtual IntPoint convertFromContainingWidgetToScrollbar(
203 const Scrollbar& scrollbar, 203 const Scrollbar& scrollbar,
204 const IntPoint& parentPoint) const { 204 const IntPoint& parentPoint) const {
205 return scrollbar.Widget::convertFromContainingWidget(parentPoint); 205 return scrollbar.FrameViewBase::convertFromContainingWidget(parentPoint);
206 } 206 }
207 207
208 virtual Scrollbar* horizontalScrollbar() const { return nullptr; } 208 virtual Scrollbar* horizontalScrollbar() const { return nullptr; }
209 virtual Scrollbar* verticalScrollbar() const { return nullptr; } 209 virtual Scrollbar* verticalScrollbar() const { return nullptr; }
210 210
211 virtual PaintLayer* layer() const { return nullptr; } 211 virtual PaintLayer* layer() const { return nullptr; }
212 212
213 // scrollPosition is the location of the top/left of the scroll viewport in 213 // 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. 214 // 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 215 // scrollOffset is the offset of the scroll viewport from its position when
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 // Subtracts space occupied by this ScrollableArea's scrollbars. 329 // Subtracts space occupied by this ScrollableArea's scrollbars.
330 // Does nothing if overlay scrollbars are enabled. 330 // Does nothing if overlay scrollbars are enabled.
331 IntSize excludeScrollbars(const IntSize&) const; 331 IntSize excludeScrollbars(const IntSize&) const;
332 332
333 virtual int verticalScrollbarWidth( 333 virtual int verticalScrollbarWidth(
334 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const; 334 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const;
335 virtual int horizontalScrollbarHeight( 335 virtual int horizontalScrollbarHeight(
336 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const; 336 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const;
337 337
338 // Returns the widget associated with this ScrollableArea. 338 // Returns the widget associated with this ScrollableArea.
339 virtual Widget* getWidget() { return nullptr; } 339 virtual FrameViewBase* getWidget() { return nullptr; }
340 340
341 virtual LayoutBox* layoutBox() const { return nullptr; } 341 virtual LayoutBox* layoutBox() const { return nullptr; }
342 342
343 // Maps a quad from the coordinate system of a LayoutObject contained by the 343 // Maps a quad from the coordinate system of a LayoutObject contained by the
344 // ScrollableArea to the coordinate system of the ScrollableArea's visible 344 // ScrollableArea to the coordinate system of the ScrollableArea's visible
345 // content rect. If the LayoutObject* argument is null, the argument quad is 345 // content rect. If the LayoutObject* argument is null, the argument quad is
346 // considered to be in the coordinate space of the overflow rect. 346 // considered to be in the coordinate space of the overflow rect.
347 virtual FloatQuad localToVisibleContentQuad(const FloatQuad&, 347 virtual FloatQuad localToVisibleContentQuad(const FloatQuad&,
348 const LayoutObject*, 348 const LayoutObject*,
349 unsigned = 0) const; 349 unsigned = 0) const;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 // vertical-lr / ltr NO NO 449 // vertical-lr / ltr NO NO
450 // vertical-lr / rtl NO YES 450 // vertical-lr / rtl NO YES
451 // vertical-rl / ltr YES NO 451 // vertical-rl / ltr YES NO
452 // vertical-rl / rtl YES YES 452 // vertical-rl / rtl YES YES
453 IntPoint m_scrollOrigin; 453 IntPoint m_scrollOrigin;
454 }; 454 };
455 455
456 } // namespace blink 456 } // namespace blink
457 457
458 #endif // ScrollableArea_h 458 #endif // ScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698