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, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 * | 19 * |
20 */ | 20 */ |
21 | 21 |
22 #ifndef PendingSelection_h | 22 #ifndef PendingSelection_h |
23 #define PendingSelection_h | 23 #define PendingSelection_h |
24 | 24 |
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 | 28 |
28 namespace blink { | 29 namespace blink { |
29 | 30 |
30 class Document; | 31 class Document; |
31 class FrameSelection; | 32 class FrameSelection; |
32 | 33 |
33 class PendingSelection final : public NoBaseWillBeGarbageCollected<PendingSelect
ion> { | 34 class PendingSelection final : public NoBaseWillBeGarbageCollected<PendingSelect
ion> { |
| 35 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(PendingSelection); |
34 public: | 36 public: |
35 static PassOwnPtrWillBeRawPtr<PendingSelection> create() | 37 static PassOwnPtrWillBeRawPtr<PendingSelection> create() |
36 { | 38 { |
37 return adoptPtrWillBeNoop(new PendingSelection); | 39 return adoptPtrWillBeNoop(new PendingSelection); |
38 } | 40 } |
39 | 41 |
40 bool hasPendingSelection() const { return m_hasPendingSelection; } | 42 bool hasPendingSelection() const { return m_hasPendingSelection; } |
41 void setSelection(const FrameSelection&); | 43 void setSelection(const FrameSelection&); |
42 void clear(); | 44 void clear(); |
43 | 45 |
(...skipping 12 matching lines...) Expand all Loading... |
56 VisibleSelection calcVisibleSelectionAlgorithm() const; | 58 VisibleSelection calcVisibleSelectionAlgorithm() const; |
57 | 59 |
58 VisibleSelection m_selection; | 60 VisibleSelection m_selection; |
59 bool m_hasPendingSelection : 1; | 61 bool m_hasPendingSelection : 1; |
60 bool m_shouldShowBlockCursor : 1; | 62 bool m_shouldShowBlockCursor : 1; |
61 }; | 63 }; |
62 | 64 |
63 } // namespace blink | 65 } // namespace blink |
64 | 66 |
65 #endif | 67 #endif |
OLD | NEW |