OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 30 matching lines...) Expand all Loading... |
41 WTF_MAKE_NONCOPYABLE(AXSlider); | 41 WTF_MAKE_NONCOPYABLE(AXSlider); |
42 | 42 |
43 public: | 43 public: |
44 static AXSlider* Create(LayoutObject*, AXObjectCacheImpl&); | 44 static AXSlider* Create(LayoutObject*, AXObjectCacheImpl&); |
45 ~AXSlider() override {} | 45 ~AXSlider() override {} |
46 | 46 |
47 protected: | 47 protected: |
48 AXSlider(LayoutObject*, AXObjectCacheImpl&); | 48 AXSlider(LayoutObject*, AXObjectCacheImpl&); |
49 | 49 |
50 private: | 50 private: |
51 HTMLInputElement* GetElement() const; | 51 HTMLInputElement* GetInputElement() const; |
52 AXObject* ElementAccessibilityHitTest(const IntPoint&) const final; | 52 AXObject* ElementAccessibilityHitTest(const IntPoint&) const final; |
53 | 53 |
54 AccessibilityRole DetermineAccessibilityRole() final; | 54 AccessibilityRole DetermineAccessibilityRole() final; |
55 bool IsSlider() const final { return true; } | 55 bool IsSlider() const final { return true; } |
56 bool IsControl() const final { return true; } | 56 bool IsControl() const final { return true; } |
57 | 57 |
58 void AddChildren() final; | 58 void AddChildren() final; |
59 | 59 |
60 bool CanSetValueAttribute() const final { return true; } | 60 bool CanSetValueAttribute() const final { return true; } |
61 | 61 |
(...skipping 13 matching lines...) Expand all Loading... |
75 private: | 75 private: |
76 explicit AXSliderThumb(AXObjectCacheImpl&); | 76 explicit AXSliderThumb(AXObjectCacheImpl&); |
77 | 77 |
78 bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; | 78 bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; |
79 LayoutObject* LayoutObjectForRelativeBounds() const override; | 79 LayoutObject* LayoutObjectForRelativeBounds() const override; |
80 }; | 80 }; |
81 | 81 |
82 } // namespace blink | 82 } // namespace blink |
83 | 83 |
84 #endif // AXSlider_h | 84 #endif // AXSlider_h |
OLD | NEW |