| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of the select element renderer in WebCore. | 2 * This file is part of the select element renderer in WebCore. |
| 3 * | 3 * |
| 4 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. | 4 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 virtual int scrollWidth() const; | 97 virtual int scrollWidth() const; |
| 98 virtual int scrollHeight() const; | 98 virtual int scrollHeight() const; |
| 99 virtual void setScrollLeft(int); | 99 virtual void setScrollLeft(int); |
| 100 virtual void setScrollTop(int); | 100 virtual void setScrollTop(int); |
| 101 | 101 |
| 102 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) OVERRIDE; | 102 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) OVERRIDE; |
| 103 | 103 |
| 104 // ScrollableArea interface. | 104 // ScrollableArea interface. |
| 105 virtual int scrollSize(ScrollbarOrientation) const OVERRIDE; | 105 virtual int scrollSize(ScrollbarOrientation) const OVERRIDE; |
| 106 virtual int scrollPosition(Scrollbar*) const OVERRIDE; | 106 virtual int scrollPosition(Scrollbar*) const OVERRIDE; |
| 107 virtual IntPoint scrollPosition() const OVERRIDE; |
| 107 virtual void setScrollOffset(const IntPoint&) OVERRIDE; | 108 virtual void setScrollOffset(const IntPoint&) OVERRIDE; |
| 108 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) OVERRIDE; | 109 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) OVERRIDE; |
| 109 virtual bool isActive() const OVERRIDE; | 110 virtual bool isActive() const OVERRIDE; |
| 110 virtual bool isScrollCornerVisible() const OVERRIDE { return false; } // We
don't support resize on list boxes yet. If we did these would have to change. | 111 virtual bool isScrollCornerVisible() const OVERRIDE { return false; } // We
don't support resize on list boxes yet. If we did these would have to change. |
| 111 virtual IntRect scrollCornerRect() const OVERRIDE { return IntRect(); } | 112 virtual IntRect scrollCornerRect() const OVERRIDE { return IntRect(); } |
| 112 virtual void invalidateScrollCornerRect(const IntRect&) OVERRIDE { } | 113 virtual void invalidateScrollCornerRect(const IntRect&) OVERRIDE { } |
| 113 virtual IntRect convertFromScrollbarToContainingView(const Scrollbar*, const
IntRect&) const OVERRIDE; | 114 virtual IntRect convertFromScrollbarToContainingView(const Scrollbar*, const
IntRect&) const OVERRIDE; |
| 114 virtual IntRect convertFromContainingViewToScrollbar(const Scrollbar*, const
IntRect&) const OVERRIDE; | 115 virtual IntRect convertFromContainingViewToScrollbar(const Scrollbar*, const
IntRect&) const OVERRIDE; |
| 115 virtual IntPoint convertFromScrollbarToContainingView(const Scrollbar*, cons
t IntPoint&) const OVERRIDE; | 116 virtual IntPoint convertFromScrollbarToContainingView(const Scrollbar*, cons
t IntPoint&) const OVERRIDE; |
| 116 virtual IntPoint convertFromContainingViewToScrollbar(const Scrollbar*, cons
t IntPoint&) const OVERRIDE; | 117 virtual IntPoint convertFromContainingViewToScrollbar(const Scrollbar*, cons
t IntPoint&) const OVERRIDE; |
| 117 virtual Scrollbar* verticalScrollbar() const OVERRIDE { return m_vBar.get();
} | 118 virtual Scrollbar* verticalScrollbar() const OVERRIDE { return m_vBar.get();
} |
| 118 virtual IntSize contentsSize() const OVERRIDE; | 119 virtual IntSize contentsSize() const OVERRIDE; |
| 119 virtual int visibleHeight() const OVERRIDE; | 120 virtual int visibleHeight() const OVERRIDE; |
| 120 virtual int visibleWidth() const OVERRIDE; | 121 virtual int visibleWidth() const OVERRIDE; |
| 121 virtual IntPoint lastKnownMousePosition() const OVERRIDE; | 122 virtual IntPoint lastKnownMousePosition() const OVERRIDE; |
| 122 virtual bool shouldSuspendScrollAnimations() const OVERRIDE; | 123 virtual bool shouldSuspendScrollAnimations() const OVERRIDE; |
| 123 virtual bool scrollbarsCanBeActive() const OVERRIDE; | 124 virtual bool scrollbarsCanBeActive() const OVERRIDE; |
| 124 virtual IntPoint maximumScrollPosition() const OVERRIDE; | 125 virtual IntPoint maximumScrollPosition() const OVERRIDE; |
| 126 virtual bool isHorizontallyScrollable() const OVERRIDE { return false; } |
| 127 virtual bool isVerticallyScrollable() const OVERRIDE { return true; } |
| 125 | 128 |
| 126 virtual ScrollableArea* enclosingScrollableArea() const OVERRIDE; | 129 virtual ScrollableArea* enclosingScrollableArea() const OVERRIDE; |
| 127 virtual IntRect scrollableAreaBoundingBox() const OVERRIDE; | 130 virtual IntRect scrollableAreaBoundingBox() const OVERRIDE; |
| 128 | 131 |
| 129 // NOTE: This should only be called by the overriden setScrollOffset from Sc
rollableArea. | 132 // NOTE: This should only be called by the overriden setScrollOffset from Sc
rollableArea. |
| 130 void scrollTo(int newOffset); | 133 void scrollTo(int newOffset); |
| 131 | 134 |
| 132 void setHasVerticalScrollbar(bool hasScrollbar); | 135 void setHasVerticalScrollbar(bool hasScrollbar); |
| 133 PassRefPtr<Scrollbar> createScrollbar(); | 136 PassRefPtr<Scrollbar> createScrollbar(); |
| 134 void destroyScrollbar(); | 137 void destroyScrollbar(); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 157 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isListBox()); | 160 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isListBox()); |
| 158 return static_cast<RenderListBox*>(object); | 161 return static_cast<RenderListBox*>(object); |
| 159 } | 162 } |
| 160 | 163 |
| 161 // This will catch anyone doing an unnecessary cast. | 164 // This will catch anyone doing an unnecessary cast. |
| 162 void toRenderListBox(const RenderListBox*); | 165 void toRenderListBox(const RenderListBox*); |
| 163 | 166 |
| 164 } // namepace WebCore | 167 } // namepace WebCore |
| 165 | 168 |
| 166 #endif // RenderListBox_h | 169 #endif // RenderListBox_h |
| OLD | NEW |