| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 #include "core/html/shadow/SpinButtonElement.h" | 29 #include "core/html/shadow/SpinButtonElement.h" |
| 30 #include "modules/accessibility/AXMockObject.h" | 30 #include "modules/accessibility/AXMockObject.h" |
| 31 | 31 |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 class AXObjectCacheImpl; | 35 class AXObjectCacheImpl; |
| 36 | 36 |
| 37 class AXSpinButton final : public AXMockObject { | 37 class AXSpinButton final : public AXMockObject { |
| 38 WTF_MAKE_NONCOPYABLE(AXSpinButton); |
| 39 |
| 38 public: | 40 public: |
| 39 static AXSpinButton* create(AXObjectCacheImpl&); | 41 static AXSpinButton* create(AXObjectCacheImpl&); |
| 40 ~AXSpinButton() override; | 42 ~AXSpinButton() override; |
| 41 DECLARE_VIRTUAL_TRACE(); | 43 DECLARE_VIRTUAL_TRACE(); |
| 42 | 44 |
| 43 void setSpinButtonElement(SpinButtonElement* spinButton) { m_spinButtonEleme
nt = spinButton; } | 45 void setSpinButtonElement(SpinButtonElement* spinButton) { m_spinButtonEleme
nt = spinButton; } |
| 44 void step(int amount); | 46 void step(int amount); |
| 45 | 47 |
| 46 private: | 48 private: |
| 47 explicit AXSpinButton(AXObjectCacheImpl&); | 49 explicit AXSpinButton(AXObjectCacheImpl&); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 72 bool isSpinButtonPart() const override { return true; } | 74 bool isSpinButtonPart() const override { return true; } |
| 73 LayoutRect elementRect() const override; | 75 LayoutRect elementRect() const override; |
| 74 }; | 76 }; |
| 75 | 77 |
| 76 DEFINE_AX_OBJECT_TYPE_CASTS(AXSpinButton, isNativeSpinButton()); | 78 DEFINE_AX_OBJECT_TYPE_CASTS(AXSpinButton, isNativeSpinButton()); |
| 77 DEFINE_AX_OBJECT_TYPE_CASTS(AXSpinButtonPart, isSpinButtonPart()); | 79 DEFINE_AX_OBJECT_TYPE_CASTS(AXSpinButtonPart, isSpinButtonPart()); |
| 78 | 80 |
| 79 } // namespace blink | 81 } // namespace blink |
| 80 | 82 |
| 81 #endif // AXSpinButton_h | 83 #endif // AXSpinButton_h |
| OLD | NEW |