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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 virtual void setScrollLeft(int) OVERRIDE; | 100 virtual void setScrollLeft(int) OVERRIDE; |
101 virtual void setScrollTop(int) OVERRIDE; | 101 virtual void setScrollTop(int) OVERRIDE; |
102 | 102 |
103 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) OVERRIDE; | 103 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) OVERRIDE; |
104 | 104 |
105 // ScrollableArea interface. | 105 // ScrollableArea interface. |
106 virtual int scrollSize(ScrollbarOrientation) const OVERRIDE; | 106 virtual int scrollSize(ScrollbarOrientation) const OVERRIDE; |
107 virtual IntPoint scrollPosition() const OVERRIDE; | 107 virtual IntPoint scrollPosition() const OVERRIDE; |
108 virtual void setScrollOffset(const IntPoint&) OVERRIDE; | 108 virtual void setScrollOffset(const IntPoint&) OVERRIDE; |
109 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) OVERRIDE; | 109 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) OVERRIDE; |
110 virtual bool isActive() const OVERRIDE; | 110 virtual bool isActiveFocus() const OVERRIDE; |
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 bool isScrollCornerVisible() const OVERRIDE { return false; } // We
don't support resize on list boxes yet. If we did these would have to change. |
112 virtual IntRect scrollCornerRect() const OVERRIDE { return IntRect(); } | 112 virtual IntRect scrollCornerRect() const OVERRIDE { return IntRect(); } |
113 virtual void invalidateScrollCornerRect(const IntRect&) OVERRIDE { } | 113 virtual void invalidateScrollCornerRect(const IntRect&) OVERRIDE { } |
114 virtual IntRect convertFromScrollbarToContainingView(const Scrollbar*, const
IntRect&) const OVERRIDE; | 114 virtual IntRect convertFromScrollbarToContainingView(const Scrollbar*, const
IntRect&) const OVERRIDE; |
115 virtual IntRect convertFromContainingViewToScrollbar(const Scrollbar*, const
IntRect&) const OVERRIDE; | 115 virtual IntRect convertFromContainingViewToScrollbar(const Scrollbar*, const
IntRect&) const OVERRIDE; |
116 virtual IntPoint convertFromScrollbarToContainingView(const Scrollbar*, cons
t IntPoint&) const OVERRIDE; | 116 virtual IntPoint convertFromScrollbarToContainingView(const Scrollbar*, cons
t IntPoint&) const OVERRIDE; |
117 virtual IntPoint convertFromContainingViewToScrollbar(const Scrollbar*, cons
t IntPoint&) const OVERRIDE; | 117 virtual IntPoint convertFromContainingViewToScrollbar(const Scrollbar*, cons
t IntPoint&) const OVERRIDE; |
118 virtual Scrollbar* verticalScrollbar() const OVERRIDE { return m_vBar.get();
} | 118 virtual Scrollbar* verticalScrollbar() const OVERRIDE { return m_vBar.get();
} |
119 virtual IntSize contentsSize() const OVERRIDE; | 119 virtual IntSize contentsSize() const OVERRIDE; |
120 virtual int visibleHeight() const OVERRIDE; | 120 virtual int visibleHeight() const OVERRIDE; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 int m_listItemCount; | 163 int m_listItemCount; |
164 | 164 |
165 RefPtr<Scrollbar> m_vBar; | 165 RefPtr<Scrollbar> m_vBar; |
166 }; | 166 }; |
167 | 167 |
168 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderListBox, isListBox()); | 168 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderListBox, isListBox()); |
169 | 169 |
170 } // namepace WebCore | 170 } // namepace WebCore |
171 | 171 |
172 #endif // RenderListBox_h | 172 #endif // RenderListBox_h |
OLD | NEW |