OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2009 Holger Hans Peter Freyther | 3 * Copyright (C) 2009 Holger Hans Peter Freyther |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 | 266 |
267 virtual void scrollbarExistenceDidChange() = 0; | 267 virtual void scrollbarExistenceDidChange() = 0; |
268 // These functions are used to create/destroy scrollbars. | 268 // These functions are used to create/destroy scrollbars. |
269 void setHasHorizontalScrollbar(bool); | 269 void setHasHorizontalScrollbar(bool); |
270 void setHasVerticalScrollbar(bool); | 270 void setHasVerticalScrollbar(bool); |
271 | 271 |
272 virtual void updateScrollCorner(); | 272 virtual void updateScrollCorner(); |
273 virtual void invalidateScrollCornerRect(const IntRect&) OVERRIDE; | 273 virtual void invalidateScrollCornerRect(const IntRect&) OVERRIDE; |
274 | 274 |
275 virtual void scrollContentsIfNeeded(); | 275 virtual void scrollContentsIfNeeded(); |
276 // Scroll the content by blitting the pixels. | 276 // Scroll the content by via the compositor. |
277 virtual bool scrollContentsFastPath(const IntSize& scrollDelta, const IntRec
t& rectToScroll); | 277 virtual bool scrollContentsFastPath(const IntSize& scrollDelta); |
278 // Scroll the content by invalidating everything. | 278 // Scroll the content by invalidating everything. |
279 virtual void scrollContentsSlowPath(const IntRect& updateRect); | 279 virtual void scrollContentsSlowPath(const IntRect& updateRect); |
280 | 280 |
281 void setScrollOrigin(const IntPoint&, bool updatePositionAtAll, bool updateP
ositionSynchronously); | 281 void setScrollOrigin(const IntPoint&, bool updatePositionAtAll, bool updateP
ositionSynchronously); |
282 | 282 |
283 // Subclassed by FrameView to check the writing-mode of the document. | 283 // Subclassed by FrameView to check the writing-mode of the document. |
284 virtual bool isVerticalDocument() const { return true; } | 284 virtual bool isVerticalDocument() const { return true; } |
285 virtual bool isFlippedDocument() const { return false; } | 285 virtual bool isFlippedDocument() const { return false; } |
286 | 286 |
287 enum ComputeScrollbarExistenceOption { | 287 enum ComputeScrollbarExistenceOption { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 | 342 |
343 void calculateOverhangAreasForPainting(IntRect& horizontalOverhangRect, IntR
ect& verticalOverhangRect); | 343 void calculateOverhangAreasForPainting(IntRect& horizontalOverhangRect, IntR
ect& verticalOverhangRect); |
344 void updateOverhangAreas(); | 344 void updateOverhangAreas(); |
345 }; // class ScrollView | 345 }; // class ScrollView |
346 | 346 |
347 DEFINE_TYPE_CASTS(ScrollView, Widget, widget, widget->isScrollView(), widget.isS
crollView()); | 347 DEFINE_TYPE_CASTS(ScrollView, Widget, widget, widget->isScrollView(), widget.isS
crollView()); |
348 | 348 |
349 } // namespace blink | 349 } // namespace blink |
350 | 350 |
351 #endif // ScrollView_h | 351 #endif // ScrollView_h |
OLD | NEW |