Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXRadioInput.h

Issue 1628283002: posinset and setsize for input type, radio, exposed in AX tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed isRadiobutton() Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 updatePosAndSetSize(int position = 0);
24 void requestUpdateToNextNode(bool forward);
25 HTMLInputElement* findFirstRadioButtonInGroup(HTMLInputElement* current) con st;
26
27 int posInSet() const final;
28 int setSize() const final;
29
30 private:
31 AXRadioInput(LayoutObject*, AXObjectCacheImpl&);
32 bool calculatePosInSet();
33 HTMLInputElement* findNextRadioButtonInGroup(HTMLInputElement* current, bool forward) const;
34 int countFromFirstElement() const;
35 HTMLInputElement* element() const;
36 int sizeOfRadioGroup() const;
37
38 int m_posInSet;
39 int m_setSize;
40 };
41
42 DEFINE_AX_OBJECT_TYPE_CASTS(AXRadioInput, isAXRadioInput());
43
44 } // namespace blink
45
46 #endif // AXRadioInput_h
47
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698