| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 void setHorizontalScrollbarMode(ScrollbarMode mode, bool lock = false) { set
ScrollbarModes(mode, verticalScrollbarMode(), lock, verticalScrollbarLock()); } | 86 void setHorizontalScrollbarMode(ScrollbarMode mode, bool lock = false) { set
ScrollbarModes(mode, verticalScrollbarMode(), lock, verticalScrollbarLock()); } |
| 87 void setVerticalScrollbarMode(ScrollbarMode mode, bool lock = false) { setSc
rollbarModes(horizontalScrollbarMode(), mode, horizontalScrollbarLock(), lock);
}; | 87 void setVerticalScrollbarMode(ScrollbarMode mode, bool lock = false) { setSc
rollbarModes(horizontalScrollbarMode(), mode, horizontalScrollbarLock(), lock);
}; |
| 88 void scrollbarModes(ScrollbarMode& horizontalMode, ScrollbarMode& verticalMo
de) const; | 88 void scrollbarModes(ScrollbarMode& horizontalMode, ScrollbarMode& verticalMo
de) const; |
| 89 ScrollbarMode horizontalScrollbarMode() const { ScrollbarMode horizontal, ve
rtical; scrollbarModes(horizontal, vertical); return horizontal; } | 89 ScrollbarMode horizontalScrollbarMode() const { ScrollbarMode horizontal, ve
rtical; scrollbarModes(horizontal, vertical); return horizontal; } |
| 90 ScrollbarMode verticalScrollbarMode() const { ScrollbarMode horizontal, vert
ical; scrollbarModes(horizontal, vertical); return vertical; } | 90 ScrollbarMode verticalScrollbarMode() const { ScrollbarMode horizontal, vert
ical; scrollbarModes(horizontal, vertical); return vertical; } |
| 91 | 91 |
| 92 void setHorizontalScrollbarLock(bool lock = true) { m_horizontalScrollbarLoc
k = lock; } | 92 void setHorizontalScrollbarLock(bool lock = true) { m_horizontalScrollbarLoc
k = lock; } |
| 93 bool horizontalScrollbarLock() const { return m_horizontalScrollbarLock; } | 93 bool horizontalScrollbarLock() const { return m_horizontalScrollbarLock; } |
| 94 void setVerticalScrollbarLock(bool lock = true) { m_verticalScrollbarLock =
lock; } | 94 void setVerticalScrollbarLock(bool lock = true) { m_verticalScrollbarLock =
lock; } |
| 95 bool verticalScrollbarLock() const { return m_verticalScrollbarLock; } | 95 bool verticalScrollbarLock() const { return m_verticalScrollbarLock; } |
| 96 int verticalScrollbarWidth() const { return verticalScrollbar() ? verticalSc
rollbar()->width() : 0; } |
| 96 | 97 |
| 97 void setScrollingModesLock(bool lock = true) { m_horizontalScrollbarLock = m
_verticalScrollbarLock = lock; } | 98 void setScrollingModesLock(bool lock = true) { m_horizontalScrollbarLock = m
_verticalScrollbarLock = lock; } |
| 98 | 99 |
| 99 virtual void setCanHaveScrollbars(bool); | 100 virtual void setCanHaveScrollbars(bool); |
| 100 bool canHaveScrollbars() const { return horizontalScrollbarMode() != Scrollb
arAlwaysOff || verticalScrollbarMode() != ScrollbarAlwaysOff; } | 101 bool canHaveScrollbars() const { return horizontalScrollbarMode() != Scrollb
arAlwaysOff || verticalScrollbarMode() != ScrollbarAlwaysOff; } |
| 101 | 102 |
| 102 // By default you only receive paint events for the area that is visible. In
the case of using a | 103 // By default you only receive paint events for the area that is visible. In
the case of using a |
| 103 // tiled backing store, this function can be set, so that the view paints th
e entire contents. | 104 // tiled backing store, this function can be set, so that the view paints th
e entire contents. |
| 104 bool paintsEntireContents() const { return m_paintsEntireContents; } | 105 bool paintsEntireContents() const { return m_paintsEntireContents; } |
| 105 void setPaintsEntireContents(bool); | 106 void setPaintsEntireContents(bool); |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 ASSERT_WITH_SECURITY_IMPLICATION(!widget || widget->isScrollView()); | 353 ASSERT_WITH_SECURITY_IMPLICATION(!widget || widget->isScrollView()); |
| 353 return static_cast<const ScrollView*>(widget); | 354 return static_cast<const ScrollView*>(widget); |
| 354 } | 355 } |
| 355 | 356 |
| 356 // This will catch anyone doing an unnecessary cast. | 357 // This will catch anyone doing an unnecessary cast. |
| 357 void toScrollView(const ScrollView*); | 358 void toScrollView(const ScrollView*); |
| 358 | 359 |
| 359 } // namespace WebCore | 360 } // namespace WebCore |
| 360 | 361 |
| 361 #endif // ScrollView_h | 362 #endif // ScrollView_h |
| OLD | NEW |