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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 void showPopup(); | 45 void showPopup(); |
46 void hidePopup(); | 46 void hidePopup(); |
47 | 47 |
48 void setOptionsChanged(bool changed) { m_optionsChanged = changed; } | 48 void setOptionsChanged(bool changed) { m_optionsChanged = changed; } |
49 | 49 |
50 void didSetSelectedIndex(int listIndex); | 50 void didSetSelectedIndex(int listIndex); |
51 | 51 |
52 String text() const; | 52 String text() const; |
53 | 53 |
54 private: | 54 private: |
55 HTMLSelectElement* selectElement() const; | 55 Result<HTMLSelectElement> selectElement() const; |
56 | 56 |
57 virtual bool isMenuList() const { return true; } | 57 virtual bool isMenuList() const { return true; } |
58 | 58 |
59 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0)
; | 59 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0)
; |
60 virtual void removeChild(RenderObject*); | 60 virtual void removeChild(RenderObject*); |
61 virtual bool createsAnonymousWrapper() const { return true; } | 61 virtual bool createsAnonymousWrapper() const { return true; } |
62 | 62 |
63 virtual void updateFromElement(); | 63 virtual void updateFromElement(); |
64 | 64 |
65 virtual LayoutRect controlClipRect(const LayoutPoint&) const; | 65 virtual LayoutRect controlClipRect(const LayoutPoint&) const; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isMenuList()); | 146 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isMenuList()); |
147 return static_cast<RenderMenuList*>(object); | 147 return static_cast<RenderMenuList*>(object); |
148 } | 148 } |
149 | 149 |
150 // This will catch anyone doing an unnecessary cast. | 150 // This will catch anyone doing an unnecessary cast. |
151 void toRenderMenuList(const RenderMenuList*); | 151 void toRenderMenuList(const RenderMenuList*); |
152 | 152 |
153 } | 153 } |
154 | 154 |
155 #endif | 155 #endif |
OLD | NEW |