| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 #include "modules/accessibility/AXLayoutObject.h" | 24 #include "modules/accessibility/AXLayoutObject.h" |
| 25 | 25 |
| 26 namespace blink { | 26 namespace blink { |
| 27 | 27 |
| 28 class AXObjectCacheImpl; | 28 class AXObjectCacheImpl; |
| 29 class HTMLProgressElement; | 29 class HTMLProgressElement; |
| 30 class LayoutProgress; | 30 class LayoutProgress; |
| 31 | 31 |
| 32 class AXProgressIndicator final : public AXLayoutObject { | 32 class AXProgressIndicator final : public AXLayoutObject { |
| 33 WTF_MAKE_NONCOPYABLE(AXProgressIndicator); |
| 34 |
| 33 public: | 35 public: |
| 34 static AXProgressIndicator* create(LayoutProgress*, AXObjectCacheImpl&); | 36 static AXProgressIndicator* create(LayoutProgress*, AXObjectCacheImpl&); |
| 35 | 37 |
| 36 private: | 38 private: |
| 37 AccessibilityRole determineAccessibilityRole() final; | 39 AccessibilityRole determineAccessibilityRole() final; |
| 38 | 40 |
| 39 bool isProgressIndicator() const override { return true; } | 41 bool isProgressIndicator() const override { return true; } |
| 40 | 42 |
| 41 float valueForRange() const override; | 43 float valueForRange() const override; |
| 42 float maxValueForRange() const override; | 44 float maxValueForRange() const override; |
| 43 float minValueForRange() const override; | 45 float minValueForRange() const override; |
| 44 | 46 |
| 45 AXProgressIndicator(LayoutProgress*, AXObjectCacheImpl&); | 47 AXProgressIndicator(LayoutProgress*, AXObjectCacheImpl&); |
| 46 | 48 |
| 47 HTMLProgressElement* element() const; | 49 HTMLProgressElement* element() const; |
| 48 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override
; | 50 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override
; |
| 49 }; | 51 }; |
| 50 | 52 |
| 51 | 53 |
| 52 } // namespace blink | 54 } // namespace blink |
| 53 | 55 |
| 54 #endif // AXProgressIndicator_h | 56 #endif // AXProgressIndicator_h |
| OLD | NEW |