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 |
(...skipping 12 matching lines...) Expand all Loading... |
23 void updatePosAndSetSize(int position = 0); | 23 void updatePosAndSetSize(int position = 0); |
24 void requestUpdateToNextNode(bool forward); | 24 void requestUpdateToNextNode(bool forward); |
25 HTMLInputElement* findFirstRadioButtonInGroup(HTMLInputElement* current) con
st; | 25 HTMLInputElement* findFirstRadioButtonInGroup(HTMLInputElement* current) con
st; |
26 | 26 |
27 int posInSet() const final; | 27 int posInSet() const final; |
28 int setSize() const final; | 28 int setSize() const final; |
29 | 29 |
30 private: | 30 private: |
31 AXRadioInput(LayoutObject*, AXObjectCacheImpl&); | 31 AXRadioInput(LayoutObject*, AXObjectCacheImpl&); |
32 bool calculatePosInSet(); | 32 bool calculatePosInSet(); |
33 HTMLInputElement* findNextRadioButtonInGroup(HTMLInputElement* current, bool
forward) const; | |
34 int countFromFirstElement() const; | 33 int countFromFirstElement() const; |
35 HTMLInputElement* element() const; | 34 HTMLInputElement* element() const; |
36 int sizeOfRadioGroup() const; | 35 int sizeOfRadioGroup() const; |
37 | 36 |
38 int m_posInSet; | 37 int m_posInSet; |
39 int m_setSize; | 38 int m_setSize; |
40 }; | 39 }; |
41 | 40 |
42 DEFINE_AX_OBJECT_TYPE_CASTS(AXRadioInput, isAXRadioInput()); | 41 DEFINE_AX_OBJECT_TYPE_CASTS(AXRadioInput, isAXRadioInput()); |
43 | 42 |
44 } // namespace blink | 43 } // namespace blink |
45 | 44 |
46 #endif // AXRadioInput_h | 45 #endif // AXRadioInput_h |
47 | 46 |
OLD | NEW |