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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 void setHorizontalScrollbarLock(bool lock = true) { m_horizontalScrollbarLoc
k = lock; } | 91 void setHorizontalScrollbarLock(bool lock = true) { m_horizontalScrollbarLoc
k = lock; } |
92 bool horizontalScrollbarLock() const { return m_horizontalScrollbarLock; } | 92 bool horizontalScrollbarLock() const { return m_horizontalScrollbarLock; } |
93 void setVerticalScrollbarLock(bool lock = true) { m_verticalScrollbarLock =
lock; } | 93 void setVerticalScrollbarLock(bool lock = true) { m_verticalScrollbarLock =
lock; } |
94 bool verticalScrollbarLock() const { return m_verticalScrollbarLock; } | 94 bool verticalScrollbarLock() const { return m_verticalScrollbarLock; } |
95 | 95 |
96 void setScrollingModesLock(bool lock = true) { m_horizontalScrollbarLock = m
_verticalScrollbarLock = lock; } | 96 void setScrollingModesLock(bool lock = true) { m_horizontalScrollbarLock = m
_verticalScrollbarLock = lock; } |
97 | 97 |
98 virtual void setCanHaveScrollbars(bool); | 98 virtual void setCanHaveScrollbars(bool); |
99 bool canHaveScrollbars() const { return horizontalScrollbarMode() != Scrollb
arAlwaysOff || verticalScrollbarMode() != ScrollbarAlwaysOff; } | 99 bool canHaveScrollbars() const { return horizontalScrollbarMode() != Scrollb
arAlwaysOff || verticalScrollbarMode() != ScrollbarAlwaysOff; } |
100 | 100 |
101 virtual bool avoidScrollbarCreation() const { return false; } | |
102 | |
103 virtual void setScrollbarOverlayStyle(ScrollbarOverlayStyle) OVERRIDE; | 101 virtual void setScrollbarOverlayStyle(ScrollbarOverlayStyle) OVERRIDE; |
104 | 102 |
105 // 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 |
106 // 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. |
107 bool paintsEntireContents() const { return m_paintsEntireContents; } | 105 bool paintsEntireContents() const { return m_paintsEntireContents; } |
108 void setPaintsEntireContents(bool); | 106 void setPaintsEntireContents(bool); |
109 | 107 |
110 // By default, paint events are clipped to the visible area. If set to | 108 // By default, paint events are clipped to the visible area. If set to |
111 // false, paint events are no longer clipped. paintsEntireContents() implie
s !clipsRepaints(). | 109 // false, paint events are no longer clipped. paintsEntireContents() implie
s !clipsRepaints(). |
112 bool clipsRepaints() const { return m_clipsRepaints; } | 110 bool clipsRepaints() const { return m_clipsRepaints; } |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 ASSERT(!widget || widget->isScrollView()); | 387 ASSERT(!widget || widget->isScrollView()); |
390 return static_cast<const ScrollView*>(widget); | 388 return static_cast<const ScrollView*>(widget); |
391 } | 389 } |
392 | 390 |
393 // This will catch anyone doing an unnecessary cast. | 391 // This will catch anyone doing an unnecessary cast. |
394 void toScrollView(const ScrollView*); | 392 void toScrollView(const ScrollView*); |
395 | 393 |
396 } // namespace WebCore | 394 } // namespace WebCore |
397 | 395 |
398 #endif // ScrollView_h | 396 #endif // ScrollView_h |
OLD | NEW |