+2006-10-23 Adam Roben <aroben@apple.com>
+
+ Reviewed by Adele.
+
+ Make popups a little more flexible.
+
+ * platform/PopupMenu.h:
+
2006-10-23 Sam Weinig <sam.weinig@gmail.com>
Reviewed by Tim H.
RenderMenuList* menuList() const { return m_menuList; }
#if PLATFORM(WIN)
- bool up();
- bool down();
+ bool up(unsigned lines = 1);
+ bool down(unsigned lines = 1);
int itemHeight() const { return m_itemHeight; }
const IntRect& windowRect() const { return m_windowRect; }
IntRect clientRect() const;
int listIndexAtPoint(const IntPoint& point) { return (point.y() + m_scrollOffset) / m_itemHeight; }
+
bool setFocusedIndex(int index, bool setControlText = true, bool fireOnChange = false);
int focusedIndex() const { return m_focusedIndex; }
+ void focusFirst();
+ void focusLast();
void paint(const IntRect& damageRect, HDC hdc = 0);
void setScrollOffset(int offset) { m_scrollOffset = offset; }
int scrollOffset() const { return m_scrollOffset; }
- void scrollTo(int);
- void scrollToRevealSelection();
+ bool scrollTo(int);
+ bool scrollToRevealSelection();
void incrementWheelDelta(int delta);
void reduceWheelDelta(int delta);