| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2010 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 AXMenuListOption(HTMLOptionElement*, AXObjectCacheImpl&); | 47 AXMenuListOption(HTMLOptionElement*, AXObjectCacheImpl&); |
| 48 DECLARE_VIRTUAL_TRACE(); | 48 DECLARE_VIRTUAL_TRACE(); |
| 49 | 49 |
| 50 bool IsMenuListOption() const override { return true; } | 50 bool IsMenuListOption() const override { return true; } |
| 51 | 51 |
| 52 Node* GetNode() const override { return element_; } | 52 Node* GetNode() const override { return element_; } |
| 53 void Detach() override; | 53 void Detach() override; |
| 54 bool IsDetached() const override { return !element_; } | 54 bool IsDetached() const override { return !element_; } |
| 55 AccessibilityRole RoleValue() const override; | 55 AccessibilityRole RoleValue() const override; |
| 56 bool CanHaveChildren() const override { return false; } | 56 bool CanHaveChildren() const override { return false; } |
| 57 AXObjectImpl* ComputeParent() const override; |
| 57 | 58 |
| 58 Element* ActionElement() const override; | 59 Element* ActionElement() const override; |
| 59 bool IsEnabled() const override; | 60 bool IsEnabled() const override; |
| 60 bool IsVisible() const override; | 61 bool IsVisible() const override; |
| 61 bool IsOffScreen() const override; | 62 bool IsOffScreen() const override; |
| 62 bool IsSelected() const override; | 63 bool IsSelected() const override; |
| 63 void SetSelected(bool) override; | 64 void SetSelected(bool) override; |
| 64 bool CanSetSelectedAttribute() const override; | 65 bool CanSetSelectedAttribute() const override; |
| 65 bool CanSetFocusAttribute() const override; | 66 bool CanSetFocusAttribute() const override; |
| 66 | 67 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 77 HTMLSelectElement* ParentSelectNode() const; | 78 HTMLSelectElement* ParentSelectNode() const; |
| 78 | 79 |
| 79 Member<HTMLOptionElement> element_; | 80 Member<HTMLOptionElement> element_; |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuListOption, IsMenuListOption()); | 83 DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuListOption, IsMenuListOption()); |
| 83 | 84 |
| 84 } // namespace blink | 85 } // namespace blink |
| 85 | 86 |
| 86 #endif // AXMenuListOption_h | 87 #endif // AXMenuListOption_h |
| OLD | NEW |