OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 virtual AccessibilityRole roleValue() const { return ListBoxOptionRole; } | 53 virtual AccessibilityRole roleValue() const { return ListBoxOptionRole; } |
54 virtual bool isSelected() const; | 54 virtual bool isSelected() const; |
55 virtual bool isEnabled() const; | 55 virtual bool isEnabled() const; |
56 virtual bool isSelectedOptionActive() const; | 56 virtual bool isSelectedOptionActive() const; |
57 virtual String stringValue() const; | 57 virtual String stringValue() const; |
58 virtual Element* actionElement() const; | 58 virtual Element* actionElement() const; |
59 virtual Node* node() const { return m_optionElement; } | 59 virtual Node* node() const { return m_optionElement; } |
60 virtual void setSelected(bool); | 60 virtual void setSelected(bool); |
61 virtual bool canSetSelectedAttribute() const; | 61 virtual bool canSetSelectedAttribute() const; |
62 | 62 |
63 virtual LayoutRect elementRect() const; | 63 virtual LayoutRect elementRect(); |
64 virtual AccessibilityObject* parentObject() const; | 64 virtual AccessibilityObject* parentObject() const; |
65 bool isListBoxOption() const { return true; } | 65 bool isListBoxOption() const { return true; } |
66 | 66 |
67 private: | 67 private: |
68 HTMLElement* m_optionElement; | 68 HTMLElement* m_optionElement; |
69 | 69 |
70 virtual bool canHaveChildren() const { return false; } | 70 virtual bool canHaveChildren() const { return false; } |
71 HTMLSelectElement* listBoxOptionParentNode() const; | 71 HTMLSelectElement* listBoxOptionParentNode() const; |
72 int listBoxOptionIndex() const; | 72 int listBoxOptionIndex() const; |
73 IntRect listBoxOptionRect() const; | 73 IntRect listBoxOptionRect() const; |
74 AccessibilityObject* listBoxOptionAccessibilityObject(HTMLElement*) const; | 74 AccessibilityObject* listBoxOptionAccessibilityObject(HTMLElement*) const; |
75 virtual bool computeAccessibilityIsIgnored() const; | 75 virtual bool computeAccessibilityIsIgnored() const; |
76 }; | 76 }; |
77 | 77 |
78 } // namespace WebCore | 78 } // namespace WebCore |
79 | 79 |
80 #endif // AccessibilityListBoxOption_h | 80 #endif // AccessibilityListBoxOption_h |
OLD | NEW |