| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 const VisibleSelection& endingSelection() const { return m_endingSelection; } | 58 const VisibleSelection& endingSelection() const { return m_endingSelection; } |
| 59 void setStartingSelection(const VisibleSelection&); | 59 void setStartingSelection(const VisibleSelection&); |
| 60 void setEndingSelection(const VisibleSelection&); | 60 void setEndingSelection(const VisibleSelection&); |
| 61 Element* startingRootEditableElement() const { | 61 Element* startingRootEditableElement() const { |
| 62 return m_startingRootEditableElement.get(); | 62 return m_startingRootEditableElement.get(); |
| 63 } | 63 } |
| 64 Element* endingRootEditableElement() const { | 64 Element* endingRootEditableElement() const { |
| 65 return m_endingRootEditableElement.get(); | 65 return m_endingRootEditableElement.get(); |
| 66 } | 66 } |
| 67 | 67 |
| 68 uint64_t sequenceNumber() const { return m_sequenceNumber; } |
| 69 |
| 68 DECLARE_TRACE(); | 70 DECLARE_TRACE(); |
| 69 | 71 |
| 70 private: | 72 private: |
| 71 UndoStep(Document*, | 73 UndoStep(Document*, |
| 72 const VisibleSelection& startingSelection, | 74 const VisibleSelection& startingSelection, |
| 73 const VisibleSelection& endingSelection, | 75 const VisibleSelection& endingSelection, |
| 74 InputEvent::InputType); | 76 InputEvent::InputType); |
| 75 | 77 |
| 76 Member<Document> m_document; | 78 Member<Document> m_document; |
| 77 VisibleSelection m_startingSelection; | 79 VisibleSelection m_startingSelection; |
| 78 VisibleSelection m_endingSelection; | 80 VisibleSelection m_endingSelection; |
| 79 HeapVector<Member<SimpleEditCommand>> m_commands; | 81 HeapVector<Member<SimpleEditCommand>> m_commands; |
| 80 Member<Element> m_startingRootEditableElement; | 82 Member<Element> m_startingRootEditableElement; |
| 81 Member<Element> m_endingRootEditableElement; | 83 Member<Element> m_endingRootEditableElement; |
| 82 InputEvent::InputType m_inputType; | 84 InputEvent::InputType m_inputType; |
| 85 const uint64_t m_sequenceNumber; |
| 83 }; | 86 }; |
| 84 | 87 |
| 85 } // namespace blink | 88 } // namespace blink |
| 86 | 89 |
| 87 #endif | 90 #endif |
| OLD | NEW |