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

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

Issue 2725273002: Rename ScrollableArea fields and methods *Widget* to ...FrameViewBase... (Closed)
Patch Set: Rename ScrollableArea *Widget* to ...FrameViewBase... 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 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 convertFromScrollbarToContainingFrameViewBase(
188 const Scrollbar& scrollbar, 188 const Scrollbar& scrollbar,
189 const IntRect& scrollbarRect) const { 189 const IntRect& scrollbarRect) const {
190 return scrollbar.FrameViewBase::convertToContainingFrameViewBase( 190 return scrollbar.FrameViewBase::convertToContainingFrameViewBase(
191 scrollbarRect); 191 scrollbarRect);
192 } 192 }
193 virtual IntRect convertFromContainingWidgetToScrollbar( 193 virtual IntRect convertFromContainingFrameViewBaseToScrollbar(
194 const Scrollbar& scrollbar, 194 const Scrollbar& scrollbar,
195 const IntRect& parentRect) const { 195 const IntRect& parentRect) const {
196 return scrollbar.FrameViewBase::convertFromContainingFrameViewBase( 196 return scrollbar.FrameViewBase::convertFromContainingFrameViewBase(
197 parentRect); 197 parentRect);
198 } 198 }
199 virtual IntPoint convertFromScrollbarToContainingWidget( 199 virtual IntPoint convertFromScrollbarToContainingFrameViewBase(
200 const Scrollbar& scrollbar, 200 const Scrollbar& scrollbar,
201 const IntPoint& scrollbarPoint) const { 201 const IntPoint& scrollbarPoint) const {
202 return scrollbar.FrameViewBase::convertToContainingFrameViewBase( 202 return scrollbar.FrameViewBase::convertToContainingFrameViewBase(
203 scrollbarPoint); 203 scrollbarPoint);
204 } 204 }
205 virtual IntPoint convertFromContainingWidgetToScrollbar( 205 virtual IntPoint convertFromContainingFrameViewBaseToScrollbar(
206 const Scrollbar& scrollbar, 206 const Scrollbar& scrollbar,
207 const IntPoint& parentPoint) const { 207 const IntPoint& parentPoint) const {
208 return scrollbar.FrameViewBase::convertFromContainingFrameViewBase( 208 return scrollbar.FrameViewBase::convertFromContainingFrameViewBase(
209 parentPoint); 209 parentPoint);
210 } 210 }
211 211
212 virtual Scrollbar* horizontalScrollbar() const { return nullptr; } 212 virtual Scrollbar* horizontalScrollbar() const { return nullptr; }
213 virtual Scrollbar* verticalScrollbar() const { return nullptr; } 213 virtual Scrollbar* verticalScrollbar() const { return nullptr; }
214 214
215 virtual PaintLayer* layer() const { return nullptr; } 215 virtual PaintLayer* layer() const { return nullptr; }
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 // Subtracts space occupied by this ScrollableArea's scrollbars. 333 // Subtracts space occupied by this ScrollableArea's scrollbars.
334 // Does nothing if overlay scrollbars are enabled. 334 // Does nothing if overlay scrollbars are enabled.
335 IntSize excludeScrollbars(const IntSize&) const; 335 IntSize excludeScrollbars(const IntSize&) const;
336 336
337 virtual int verticalScrollbarWidth( 337 virtual int verticalScrollbarWidth(
338 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const; 338 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const;
339 virtual int horizontalScrollbarHeight( 339 virtual int horizontalScrollbarHeight(
340 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const; 340 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const;
341 341
342 // Returns the widget associated with this ScrollableArea. 342 // Returns the widget associated with this ScrollableArea.
343 virtual FrameViewBase* getWidget() { return nullptr; } 343 virtual FrameViewBase* getFrameViewBase() { return nullptr; }
344 344
345 virtual LayoutBox* layoutBox() const { return nullptr; } 345 virtual LayoutBox* layoutBox() const { return nullptr; }
346 346
347 // Maps a quad from the coordinate system of a LayoutObject contained by the 347 // Maps a quad from the coordinate system of a LayoutObject contained by the
348 // ScrollableArea to the coordinate system of the ScrollableArea's visible 348 // ScrollableArea to the coordinate system of the ScrollableArea's visible
349 // content rect. If the LayoutObject* argument is null, the argument quad is 349 // content rect. If the LayoutObject* argument is null, the argument quad is
350 // considered to be in the coordinate space of the overflow rect. 350 // considered to be in the coordinate space of the overflow rect.
351 virtual FloatQuad localToVisibleContentQuad(const FloatQuad&, 351 virtual FloatQuad localToVisibleContentQuad(const FloatQuad&,
352 const LayoutObject*, 352 const LayoutObject*,
353 unsigned = 0) const; 353 unsigned = 0) const;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 // vertical-lr / ltr NO NO 455 // vertical-lr / ltr NO NO
456 // vertical-lr / rtl NO YES 456 // vertical-lr / rtl NO YES
457 // vertical-rl / ltr YES NO 457 // vertical-rl / ltr YES NO
458 // vertical-rl / rtl YES YES 458 // vertical-rl / rtl YES YES
459 IntPoint m_scrollOrigin; 459 IntPoint m_scrollOrigin;
460 }; 460 };
461 461
462 } // namespace blink 462 } // namespace blink
463 463
464 #endif // ScrollableArea_h 464 #endif // ScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698