| 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 #ifndef AXRadioInput_h | 5 #ifndef AXRadioInput_h |
| 6 #define AXRadioInput_h | 6 #define AXRadioInput_h |
| 7 | 7 |
| 8 #include "modules/accessibility/AXLayoutObject.h" | 8 #include "modules/accessibility/AXLayoutObject.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 HTMLInputElement* FindFirstRadioButtonInGroup( | 25 HTMLInputElement* FindFirstRadioButtonInGroup( |
| 26 HTMLInputElement* current) const; | 26 HTMLInputElement* current) const; |
| 27 | 27 |
| 28 int PosInSet() const final; | 28 int PosInSet() const final; |
| 29 int SetSize() const final; | 29 int SetSize() const final; |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 AXRadioInput(LayoutObject*, AXObjectCacheImpl&); | 32 AXRadioInput(LayoutObject*, AXObjectCacheImpl&); |
| 33 bool CalculatePosInSet(); | 33 bool CalculatePosInSet(); |
| 34 int CountFromFirstElement() const; | 34 int CountFromFirstElement() const; |
| 35 HTMLInputElement* GetElement() const; | 35 HTMLInputElement* GetInputElement() const; |
| 36 int SizeOfRadioGroup() const; | 36 int SizeOfRadioGroup() const; |
| 37 | 37 |
| 38 int pos_in_set_; | 38 int pos_in_set_; |
| 39 int set_size_; | 39 int set_size_; |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 DEFINE_AX_OBJECT_TYPE_CASTS(AXRadioInput, IsAXRadioInput()); | 42 DEFINE_AX_OBJECT_TYPE_CASTS(AXRadioInput, IsAXRadioInput()); |
| 43 | 43 |
| 44 } // namespace blink | 44 } // namespace blink |
| 45 | 45 |
| 46 #endif // AXRadioInput_h | 46 #endif // AXRadioInput_h |
| OLD | NEW |