diff options
Diffstat (limited to 'WebCore/rendering/RenderMenuList.h')
-rw-r--r-- | WebCore/rendering/RenderMenuList.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/WebCore/rendering/RenderMenuList.h b/WebCore/rendering/RenderMenuList.h index a5aa041..aeb6205 100644 --- a/WebCore/rendering/RenderMenuList.h +++ b/WebCore/rendering/RenderMenuList.h @@ -1,6 +1,7 @@ /* * This file is part of the select element renderer in WebCore. * + * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). * Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or @@ -37,7 +38,12 @@ namespace WebCore { class PopupMenu; class RenderText; +#if ENABLE(NO_LISTBOX_RENDERING) +class RenderMenuList : public RenderFlexibleBox, private ListPopupMenuClient { +#else class RenderMenuList : public RenderFlexibleBox, private PopupMenuClient { +#endif + public: RenderMenuList(Element*); virtual ~RenderMenuList(); @@ -75,6 +81,7 @@ private: // PopupMenuClient methods virtual String itemText(unsigned listIndex) const; virtual String itemToolTip(unsigned listIndex) const; + virtual String itemAccessibilityText(unsigned listIndex) const; virtual bool itemIsEnabled(unsigned listIndex) const; virtual PopupMenuStyle itemStyle(unsigned listIndex) const; virtual PopupMenuStyle menuStyle() const; @@ -96,6 +103,11 @@ private: virtual HostWindow* hostWindow() const; virtual PassRefPtr<Scrollbar> createScrollbar(ScrollbarClient*, ScrollbarOrientation, ScrollbarControlSize); +#if ENABLE(NO_LISTBOX_RENDERING) + virtual void listBoxSelectItem(int listIndex, bool allowMultiplySelections, bool shift, bool fireOnChangeNow = true); + virtual bool multiple(); +#endif + virtual bool hasLineIfEmpty() const { return true; } Color itemBackgroundColor(unsigned listIndex) const; |