#ifndef PopupMenuClient_h
#define PopupMenuClient_h
#include "platform/LayoutUnit.h"
#include "platform/PlatformExport.h"
#include "platform/PopupMenuStyle.h"
#include "wtf/Forward.h"
namespace WebCore {
class PopupMenuClient {
public:
virtual ~PopupMenuClient() { }
virtual void valueChanged(unsigned listIndex, bool fireEvents = true) = 0;
virtual void selectionChanged(unsigned listIndex, bool fireEvents = true) = 0;
virtual void selectionCleared() = 0;
virtual String itemText(unsigned listIndex) const = 0;
virtual String itemToolTip(unsigned listIndex) const = 0;
virtual String itemAccessibilityText(unsigned listIndex) const = 0;
virtual bool itemIsEnabled(unsigned listIndex) const = 0;
virtual PopupMenuStyle itemStyle(unsigned listIndex) const = 0;
virtual PopupMenuStyle menuStyle() const = 0;
virtual LayoutUnit clientPaddingLeft() const = 0;
virtual LayoutUnit clientPaddingRight() const = 0;
virtual int listSize() const = 0;
virtual int selectedIndex() const = 0;
virtual void popupDidHide() = 0;
virtual bool itemIsSeparator(unsigned listIndex) const = 0;
virtual bool itemIsLabel(unsigned listIndex) const = 0;
virtual bool itemIsSelected(unsigned listIndex) const = 0;
virtual void setTextFromItem(unsigned listIndex) = 0;
virtual void listBoxSelectItem(int , bool , bool , bool = true) { ASSERT_NOT_REACHED(); }
virtual bool multiple() const
{
ASSERT_NOT_REACHED();
return false;
}
};
}
#endif