OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004 Apple Computer, 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 }; | 92 }; |
93 | 93 |
94 VisibleSelection(); | 94 VisibleSelection(); |
95 | 95 |
96 VisibleSelection(const Position&, TextAffinity, bool isDirectional = false); | 96 VisibleSelection(const Position&, TextAffinity, bool isDirectional = false); |
97 VisibleSelection(const Position& base, const Position& extent, TextAffinity
= SEL_DEFAULT_AFFINITY, bool isDirectional = false); | 97 VisibleSelection(const Position& base, const Position& extent, TextAffinity
= SEL_DEFAULT_AFFINITY, bool isDirectional = false); |
98 VisibleSelection(const PositionInComposedTree& base, const PositionInCompose
dTree& extent, TextAffinity = SEL_DEFAULT_AFFINITY, bool isDirectional = false); | 98 VisibleSelection(const PositionInComposedTree& base, const PositionInCompose
dTree& extent, TextAffinity = SEL_DEFAULT_AFFINITY, bool isDirectional = false); |
99 | 99 |
100 explicit VisibleSelection(const EphemeralRange&, TextAffinity = SEL_DEFAULT_
AFFINITY, bool isDirectional = false); | 100 explicit VisibleSelection(const EphemeralRange&, TextAffinity = SEL_DEFAULT_
AFFINITY, bool isDirectional = false); |
101 | 101 |
| 102 explicit VisibleSelection(const PositionWithAffinity&, bool isDirectional =
false); |
102 explicit VisibleSelection(const VisiblePosition&, bool isDirectional = false
); | 103 explicit VisibleSelection(const VisiblePosition&, bool isDirectional = false
); |
103 VisibleSelection(const VisiblePosition&, const VisiblePosition&, bool isDire
ctional = false); | 104 VisibleSelection(const VisiblePosition&, const VisiblePosition&, bool isDire
ctional = false); |
104 | 105 |
105 VisibleSelection(const VisibleSelection&); | 106 VisibleSelection(const VisibleSelection&); |
106 VisibleSelection& operator=(const VisibleSelection&); | 107 VisibleSelection& operator=(const VisibleSelection&); |
107 | 108 |
108 static VisibleSelection selectionFromContentsOfNode(Node*); | 109 static VisibleSelection selectionFromContentsOfNode(Node*); |
109 | 110 |
110 SelectionType selectionType() const { return m_selectionType; } | 111 SelectionType selectionType() const { return m_selectionType; } |
111 SelectionType selectionTypeInComposedTree() const; | 112 SelectionType selectionTypeInComposedTree() const; |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 | 260 |
260 } // namespace blink | 261 } // namespace blink |
261 | 262 |
262 #ifndef NDEBUG | 263 #ifndef NDEBUG |
263 // Outside the WebCore namespace for ease of invocation from gdb. | 264 // Outside the WebCore namespace for ease of invocation from gdb. |
264 void showTree(const blink::VisibleSelection&); | 265 void showTree(const blink::VisibleSelection&); |
265 void showTree(const blink::VisibleSelection*); | 266 void showTree(const blink::VisibleSelection*); |
266 #endif | 267 #endif |
267 | 268 |
268 #endif // VisibleSelection_h | 269 #endif // VisibleSelection_h |
OLD | NEW |