Commit 770adb6a authored by dglazkov@chromium.org's avatar dglazkov@chromium.org
Browse files

2009-03-19 Jay Campan <jcampan@google.com>

        https://bugs.webkit.org/show_bug.cgi?id=24625
        Adding an accessor to the currently selected index in the PopupMenuChromium.
        This is required for implementing the deletion of an autocomplete entry in Chromium.

        * platform/chromium/PopupMenuChromium.cpp:
        (WebCore::PopupContainer::selectedIndex):
        * platform/chromium/PopupMenuChromium.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@41835 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 165015fe
2009-03-19 Jay Campan <jcampan@google.com>
https://bugs.webkit.org/show_bug.cgi?id=24625
Adding an accessor to the currently selected index in the PopupMenuChromium.
This is required for implementing the deletion of an autocomplete entry in Chromium.
* platform/chromium/PopupMenuChromium.cpp:
(WebCore::PopupContainer::selectedIndex):
* platform/chromium/PopupMenuChromium.h:
2009-03-19 Evan Stade <estade@chromium.org>
 
Reviewed by Dimitri Glazkov.
......@@ -480,6 +480,11 @@ void PopupContainer::refresh()
layout();
}
int PopupContainer::selectedIndex() const
{
return m_listBox->selectedIndex();
}
///////////////////////////////////////////////////////////////////////////////
// PopupListBox implementation
......
......@@ -107,6 +107,10 @@ namespace WebCore {
PopupListBox* listBox() const { return m_listBox.get(); }
// Gets the index of the item that the user is currently moused-over or
// has selected with the keyboard up/down arrows.
int selectedIndex() const;
// Refresh the popup values from the PopupMenuClient.
void refresh();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment