| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Google Inc. All rights reserved. | 3 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 void releaseCapture(EventDispatch = EventDispatchAllowed); | 63 void releaseCapture(EventDispatch = EventDispatchAllowed); |
| 64 void removeSpinButtonOwner() { m_spinButtonOwner = nullptr; } | 64 void removeSpinButtonOwner() { m_spinButtonOwner = nullptr; } |
| 65 | 65 |
| 66 void step(int amount); | 66 void step(int amount); |
| 67 | 67 |
| 68 virtual bool willRespondToMouseMoveEvents() override; | 68 virtual bool willRespondToMouseMoveEvents() override; |
| 69 virtual bool willRespondToMouseClickEvents() override; | 69 virtual bool willRespondToMouseClickEvents() override; |
| 70 | 70 |
| 71 void forwardEvent(Event*); | 71 void forwardEvent(Event*); |
| 72 | 72 |
| 73 virtual void trace(Visitor*) override; | 73 DECLARE_VIRTUAL_TRACE(); |
| 74 | 74 |
| 75 private: | 75 private: |
| 76 SpinButtonElement(Document&, SpinButtonOwner&); | 76 SpinButtonElement(Document&, SpinButtonOwner&); |
| 77 | 77 |
| 78 virtual void detach(const AttachContext&) override; | 78 virtual void detach(const AttachContext&) override; |
| 79 virtual bool isSpinButtonElement() const override { return true; } | 79 virtual bool isSpinButtonElement() const override { return true; } |
| 80 virtual bool isDisabledFormControl() const override { return shadowHost() &&
shadowHost()->isDisabledFormControl(); } | 80 virtual bool isDisabledFormControl() const override { return shadowHost() &&
shadowHost()->isDisabledFormControl(); } |
| 81 virtual bool matchesReadOnlyPseudoClass() const override; | 81 virtual bool matchesReadOnlyPseudoClass() const override; |
| 82 virtual bool matchesReadWritePseudoClass() const override; | 82 virtual bool matchesReadWritePseudoClass() const override; |
| 83 virtual void defaultEventHandler(Event*) override; | 83 virtual void defaultEventHandler(Event*) override; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 95 UpDownState m_upDownState; | 95 UpDownState m_upDownState; |
| 96 UpDownState m_pressStartingState; | 96 UpDownState m_pressStartingState; |
| 97 Timer<SpinButtonElement> m_repeatingTimer; | 97 Timer<SpinButtonElement> m_repeatingTimer; |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 DEFINE_TYPE_CASTS(SpinButtonElement, Node, node, toElement(node)->isSpinButtonEl
ement(), toElement(node).isSpinButtonElement()); | 100 DEFINE_TYPE_CASTS(SpinButtonElement, Node, node, toElement(node)->isSpinButtonEl
ement(), toElement(node).isSpinButtonElement()); |
| 101 | 101 |
| 102 } // namespace | 102 } // namespace |
| 103 | 103 |
| 104 #endif | 104 #endif |
| OLD | NEW |