OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 |
| 6 #ifndef AXRadioInput_h |
| 7 #define AXRadioInput_h |
| 8 |
| 9 #include "modules/accessibility/AXLayoutObject.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class AXObjectCacheImpl; |
| 14 class HTMLInputElement; |
| 15 |
| 16 class AXRadioInput final : public AXLayoutObject { |
| 17 |
| 18 public: |
| 19 static AXRadioInput* create(LayoutObject*, AXObjectCacheImpl&); |
| 20 ~AXRadioInput() override { } |
| 21 |
| 22 bool isAXRadioInput() const override { return true; } |
| 23 void posInSetChanged(int position) { m_posInSet = position; } |
| 24 |
| 25 int posInSet() const final; |
| 26 int setSize() const final; |
| 27 |
| 28 private: |
| 29 AXRadioInput(LayoutObject*, AXObjectCacheImpl&); |
| 30 HTMLInputElement* element() const; |
| 31 int sizeOfRadioGroup() const; |
| 32 |
| 33 int m_posInSet; |
| 34 |
| 35 }; |
| 36 |
| 37 DEFINE_AX_OBJECT_TYPE_CASTS(AXRadioInput, isAXRadioInput()); |
| 38 |
| 39 } // namespace blink |
| 40 |
| 41 #endif // AXRadioInput_h |
| 42 |
OLD | NEW |