| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2006 Apple Computer, Inc. | 3 * Copyright (C) 2006 Apple Computer, Inc. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "core/editing/Position.h" | 25 #include "core/editing/Position.h" |
| 26 #include "core/editing/VisibleSelection.h" | 26 #include "core/editing/VisibleSelection.h" |
| 27 #include "platform/heap/Handle.h" | 27 #include "platform/heap/Handle.h" |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 class Document; | 31 class Document; |
| 32 class FrameSelection; | 32 class FrameSelection; |
| 33 class LayoutView; | 33 class LayoutView; |
| 34 | 34 |
| 35 class PendingSelection final : public NoBaseWillBeGarbageCollected<PendingSelect
ion> { | 35 class PendingSelection final : public GarbageCollected<PendingSelection> { |
| 36 USING_FAST_MALLOC_WILL_BE_REMOVED(PendingSelection); | |
| 37 public: | 36 public: |
| 38 static PassOwnPtrWillBeRawPtr<PendingSelection> create(FrameSelection& frame
Selection) | 37 static RawPtr<PendingSelection> create(FrameSelection& frameSelection) |
| 39 { | 38 { |
| 40 return adoptPtrWillBeNoop(new PendingSelection(frameSelection)); | 39 return new PendingSelection(frameSelection); |
| 41 } | 40 } |
| 42 | 41 |
| 43 bool hasPendingSelection() const { return m_hasPendingSelection; } | 42 bool hasPendingSelection() const { return m_hasPendingSelection; } |
| 44 void setHasPendingSelection() { m_hasPendingSelection = true; } | 43 void setHasPendingSelection() { m_hasPendingSelection = true; } |
| 45 void commit(LayoutView&); | 44 void commit(LayoutView&); |
| 46 | 45 |
| 47 DECLARE_TRACE(); | 46 DECLARE_TRACE(); |
| 48 | 47 |
| 49 private: | 48 private: |
| 50 PendingSelection(FrameSelection&); | 49 PendingSelection(FrameSelection&); |
| 51 | 50 |
| 52 const VisibleSelection& visibleSelection() const; | 51 const VisibleSelection& visibleSelection() const; |
| 53 | 52 |
| 54 VisibleSelectionInFlatTree calcVisibleSelection(const VisibleSelectionInFlat
Tree&) const; | 53 VisibleSelectionInFlatTree calcVisibleSelection(const VisibleSelectionInFlat
Tree&) const; |
| 55 | 54 |
| 56 RawPtrWillBeMember<FrameSelection> m_frameSelection; | 55 Member<FrameSelection> m_frameSelection; |
| 57 bool m_hasPendingSelection : 1; | 56 bool m_hasPendingSelection : 1; |
| 58 }; | 57 }; |
| 59 | 58 |
| 60 } // namespace blink | 59 } // namespace blink |
| 61 | 60 |
| 62 #endif | 61 #endif |
| OLD | NEW |