From 0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5 Mon Sep 17 00:00:00 2001 From: Ben Murdoch Date: Tue, 11 Aug 2009 17:01:47 +0100 Subject: Merge in WebKit r47029. --- WebCore/platform/chromium/PopupMenuChromium.cpp | 63 ++++++++++++++++++------- 1 file changed, 45 insertions(+), 18 deletions(-) (limited to 'WebCore/platform/chromium/PopupMenuChromium.cpp') diff --git a/WebCore/platform/chromium/PopupMenuChromium.cpp b/WebCore/platform/chromium/PopupMenuChromium.cpp index 1be075d..51ed6ce 100644 --- a/WebCore/platform/chromium/PopupMenuChromium.cpp +++ b/WebCore/platform/chromium/PopupMenuChromium.cpp @@ -80,7 +80,7 @@ static const PopupContainerSettings dropDownSettings = { // This class uses WebCore code to paint and handle events for a drop-down list // box ("combobox" on Windows). -class PopupListBox : public FramelessScrollView, public RefCounted { +class PopupListBox : public FramelessScrollView { public: static PassRefPtr create(PopupMenuClient* client, const PopupContainerSettings& settings) { @@ -139,10 +139,6 @@ public: // Gets the height of a row. int getRowHeight(int index); - // Returns true if the selection can be changed to index. - // Disabled items, or labels cannot be selected. - bool isSelectableItem(int index); - const Vector& items() const { return m_items; } private: @@ -172,8 +168,14 @@ private: // Closes the popup void abandon(); + + // Returns true if the selection can be changed to index. + // Disabled items, or labels cannot be selected. + bool isSelectableItem(int index); + // Select an index in the list, scrolling if necessary. void selectIndex(int index); + // Accepts the selected index as the value to be displayed in the