| 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 OVERRIDE { return ListBoxOptionR
ole; } | 53 virtual AccessibilityRole roleValue() const OVERRIDE { return ListBoxOptionR
ole; } |
| 54 virtual bool isSelected() const OVERRIDE; | 54 virtual bool isSelected() const OVERRIDE; |
| 55 virtual bool isEnabled() const OVERRIDE; | 55 virtual bool isEnabled() const OVERRIDE; |
| 56 virtual bool isSelectedOptionActive() const OVERRIDE; | 56 virtual bool isSelectedOptionActive() const OVERRIDE; |
| 57 virtual String stringValue() const OVERRIDE; | 57 virtual String stringValue() const OVERRIDE; |
| 58 virtual Element* actionElement() const OVERRIDE; | 58 virtual Element* actionElement() const OVERRIDE; |
| 59 virtual Node* node() const OVERRIDE { return m_optionElement; } | 59 virtual Node* node() const OVERRIDE { return m_optionElement; } |
| 60 virtual void setSelected(bool) OVERRIDE; | 60 virtual void setSelected(bool) OVERRIDE; |
| 61 virtual bool canSetSelectedAttribute() const OVERRIDE; | 61 virtual bool canSetSelectedAttribute() const OVERRIDE; |
| 62 | 62 |
| 63 virtual LayoutRect elementRect() const OVERRIDE; | |
| 64 virtual AXObject* parentObject() const OVERRIDE; | 63 virtual AXObject* parentObject() const OVERRIDE; |
| 65 | 64 |
| 66 private: | 65 private: |
| 67 HTMLElement* m_optionElement; | 66 HTMLElement* m_optionElement; |
| 68 | 67 |
| 69 virtual bool isListBoxOption() const OVERRIDE { return true; } | 68 virtual bool isListBoxOption() const OVERRIDE { return true; } |
| 70 virtual bool canHaveChildren() const OVERRIDE { return false; } | 69 virtual bool canHaveChildren() const OVERRIDE { return false; } |
| 71 virtual bool computeAccessibilityIsIgnored() const OVERRIDE; | 70 virtual bool computeAccessibilityIsIgnored() const OVERRIDE; |
| 72 | 71 |
| 73 HTMLSelectElement* listBoxOptionParentNode() const; | 72 HTMLSelectElement* listBoxOptionParentNode() const; |
| 74 int listBoxOptionIndex() const; | 73 int listBoxOptionIndex() const; |
| 75 AXObject* listBoxOptionAXObject(HTMLElement*) const; | 74 AXObject* listBoxOptionAXObject(HTMLElement*) const; |
| 76 }; | 75 }; |
| 77 | 76 |
| 78 DEFINE_AX_OBJECT_TYPE_CASTS(AXListBoxOption, isListBoxOption()); | 77 DEFINE_AX_OBJECT_TYPE_CASTS(AXListBoxOption, isListBoxOption()); |
| 79 | 78 |
| 80 } // namespace WebCore | 79 } // namespace WebCore |
| 81 | 80 |
| 82 #endif // AXListBoxOption_h | 81 #endif // AXListBoxOption_h |
| OLD | NEW |