| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of the select element renderer in WebCore. | 2 * This file is part of the select element renderer in WebCore. |
| 3 * | 3 * |
| 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 5 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 class HTMLSelectElement; | 34 class HTMLSelectElement; |
| 35 class RenderText; | 35 class RenderText; |
| 36 | 36 |
| 37 class RenderMenuList FINAL : public RenderFlexibleBox, private PopupMenuClient { | 37 class RenderMenuList FINAL : public RenderFlexibleBox, private PopupMenuClient { |
| 38 | 38 |
| 39 public: | 39 public: |
| 40 RenderMenuList(Element*); | 40 RenderMenuList(Element*); |
| 41 virtual ~RenderMenuList(); | 41 virtual ~RenderMenuList(); |
| 42 virtual void destroy() OVERRIDE; |
| 42 virtual void trace(Visitor*) OVERRIDE; | 43 virtual void trace(Visitor*) OVERRIDE; |
| 43 | 44 |
| 44 public: | |
| 45 bool popupIsVisible() const { return m_popupIsVisible; } | 45 bool popupIsVisible() const { return m_popupIsVisible; } |
| 46 void showPopup(); | 46 void showPopup(); |
| 47 void hidePopup(); | 47 void hidePopup(); |
| 48 | 48 |
| 49 void setOptionsChanged(bool changed) { m_optionsChanged = changed; } | 49 void setOptionsChanged(bool changed) { m_optionsChanged = changed; } |
| 50 | 50 |
| 51 void didSetSelectedIndex(int listIndex); | 51 void didSetSelectedIndex(int listIndex); |
| 52 | 52 |
| 53 String text() const; | 53 String text() const; |
| 54 | 54 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 131 |
| 132 RefPtr<PopupMenu> m_popup; | 132 RefPtr<PopupMenu> m_popup; |
| 133 bool m_popupIsVisible; | 133 bool m_popupIsVisible; |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMenuList, isMenuList()); | 136 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMenuList, isMenuList()); |
| 137 | 137 |
| 138 } | 138 } |
| 139 | 139 |
| 140 #endif | 140 #endif |
| OLD | NEW |