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 #include "modules/accessibility/AXRadioInput.h" | 6 #include "modules/accessibility/AXRadioInput.h" |
7 | 7 |
8 #include "core/InputTypeNames.h" | 8 #include "core/InputTypeNames.h" |
9 #include "core/html/HTMLInputElement.h" | 9 #include "core/html/HTMLInputElement.h" |
10 #include "core/html/forms/RadioInputType.h" | 10 #include "core/html/forms/RadioInputType.h" |
| 11 #include "core/layout/LayoutObject.h" |
11 #include "modules/accessibility/AXObjectCacheImpl.h" | 12 #include "modules/accessibility/AXObjectCacheImpl.h" |
12 | 13 |
13 namespace blink { | 14 namespace blink { |
14 | 15 |
15 using namespace HTMLNames; | 16 using namespace HTMLNames; |
16 | 17 |
17 AXRadioInput::AXRadioInput(LayoutObject* layoutObject, AXObjectCacheImpl& axObje
ctCache) | 18 AXRadioInput::AXRadioInput(LayoutObject* layoutObject, AXObjectCacheImpl& axObje
ctCache) |
18 : AXLayoutObject(layoutObject, axObjectCache) | 19 : AXLayoutObject(layoutObject, axObjectCache) |
19 { | 20 { |
20 // Updates posInSet and setSize for the current object and the next objects. | 21 // Updates posInSet and setSize for the current object and the next objects. |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 int AXRadioInput::sizeOfRadioGroup() const | 126 int AXRadioInput::sizeOfRadioGroup() const |
126 { | 127 { |
127 int size = element()->sizeOfRadioGroup(); | 128 int size = element()->sizeOfRadioGroup(); |
128 // If it has no size in Group, it means that there is only itself. | 129 // If it has no size in Group, it means that there is only itself. |
129 if (!size) | 130 if (!size) |
130 return 1; | 131 return 1; |
131 return size; | 132 return size; |
132 } | 133 } |
133 | 134 |
134 } // namespace blink | 135 } // namespace blink |
OLD | NEW |