| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 | 5 |
| 6 #ifndef AXRadioInput_h | 6 #ifndef AXRadioInput_h |
| 7 #define AXRadioInput_h | 7 #define AXRadioInput_h |
| 8 | 8 |
| 9 #include "modules/accessibility/AXLayoutObject.h" | 9 #include "modules/accessibility/AXLayoutObject.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class AXObjectCacheImpl; | 13 class AXObjectCacheImpl; |
| 14 class HTMLInputElement; | 14 class HTMLInputElement; |
| 15 | 15 |
| 16 class AXRadioInput final : public AXLayoutObject { | 16 class AXRadioInput final : public AXLayoutObject { |
| 17 WTF_MAKE_NONCOPYABLE(AXRadioInput); |
| 17 | 18 |
| 18 public: | 19 public: |
| 19 static AXRadioInput* create(LayoutObject*, AXObjectCacheImpl&); | 20 static AXRadioInput* create(LayoutObject*, AXObjectCacheImpl&); |
| 20 ~AXRadioInput() override { } | 21 ~AXRadioInput() override { } |
| 21 | 22 |
| 22 bool isAXRadioInput() const override { return true; } | 23 bool isAXRadioInput() const override { return true; } |
| 23 void updatePosAndSetSize(int position = 0); | 24 void updatePosAndSetSize(int position = 0); |
| 24 void requestUpdateToNextNode(bool forward); | 25 void requestUpdateToNextNode(bool forward); |
| 25 HTMLInputElement* findFirstRadioButtonInGroup(HTMLInputElement* current) con
st; | 26 HTMLInputElement* findFirstRadioButtonInGroup(HTMLInputElement* current) con
st; |
| 26 | 27 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 37 int m_posInSet; | 38 int m_posInSet; |
| 38 int m_setSize; | 39 int m_setSize; |
| 39 }; | 40 }; |
| 40 | 41 |
| 41 DEFINE_AX_OBJECT_TYPE_CASTS(AXRadioInput, isAXRadioInput()); | 42 DEFINE_AX_OBJECT_TYPE_CASTS(AXRadioInput, isAXRadioInput()); |
| 42 | 43 |
| 43 } // namespace blink | 44 } // namespace blink |
| 44 | 45 |
| 45 #endif // AXRadioInput_h | 46 #endif // AXRadioInput_h |
| 46 | 47 |
| OLD | NEW |