| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 // except for taking |SelectionInDOMTree| and |SelectionInFlatTree|. | 210 // except for taking |SelectionInDOMTree| and |SelectionInFlatTree|. |
| 211 CORE_EXPORT VisibleSelection createVisibleSelection(const SelectionInDOMTree&); | 211 CORE_EXPORT VisibleSelection createVisibleSelection(const SelectionInDOMTree&); |
| 212 CORE_EXPORT VisibleSelection createVisibleSelection(const Position&, | 212 CORE_EXPORT VisibleSelection createVisibleSelection(const Position&, |
| 213 TextAffinity, | 213 TextAffinity, |
| 214 bool isDirectional = false); | 214 bool isDirectional = false); |
| 215 CORE_EXPORT VisibleSelection | 215 CORE_EXPORT VisibleSelection |
| 216 createVisibleSelection(const Position& base, | 216 createVisibleSelection(const Position& base, |
| 217 const Position& extent, | 217 const Position& extent, |
| 218 TextAffinity = SelDefaultAffinity, | 218 TextAffinity = SelDefaultAffinity, |
| 219 bool isDirectional = false); | 219 bool isDirectional = false); |
| 220 CORE_EXPORT VisibleSelection createVisibleSelection(const VisiblePosition&, | |
| 221 const VisiblePosition&, | |
| 222 bool isDirectional = false); | |
| 223 | 220 |
| 224 CORE_EXPORT VisibleSelectionInFlatTree | 221 CORE_EXPORT VisibleSelectionInFlatTree |
| 225 createVisibleSelection(const SelectionInFlatTree&); | 222 createVisibleSelection(const SelectionInFlatTree&); |
| 226 | 223 |
| 227 // We don't yet support multi-range selections, so we only ever have one range | 224 // We don't yet support multi-range selections, so we only ever have one range |
| 228 // to return. | 225 // to return. |
| 229 CORE_EXPORT EphemeralRange firstEphemeralRangeOf(const VisibleSelection&); | 226 CORE_EXPORT EphemeralRange firstEphemeralRangeOf(const VisibleSelection&); |
| 230 | 227 |
| 231 // TODO(sof): move more firstRangeOf() uses to be over EphemeralRange instead. | 228 // TODO(sof): move more firstRangeOf() uses to be over EphemeralRange instead. |
| 232 CORE_EXPORT Range* firstRangeOf(const VisibleSelection&); | 229 CORE_EXPORT Range* firstRangeOf(const VisibleSelection&); |
| 233 | 230 |
| 234 CORE_EXPORT std::ostream& operator<<(std::ostream&, const VisibleSelection&); | 231 CORE_EXPORT std::ostream& operator<<(std::ostream&, const VisibleSelection&); |
| 235 CORE_EXPORT std::ostream& operator<<(std::ostream&, | 232 CORE_EXPORT std::ostream& operator<<(std::ostream&, |
| 236 const VisibleSelectionInFlatTree&); | 233 const VisibleSelectionInFlatTree&); |
| 237 | 234 |
| 238 } // namespace blink | 235 } // namespace blink |
| 239 | 236 |
| 240 #ifndef NDEBUG | 237 #ifndef NDEBUG |
| 241 // Outside the WebCore namespace for ease of invocation from gdb. | 238 // Outside the WebCore namespace for ease of invocation from gdb. |
| 242 void showTree(const blink::VisibleSelection&); | 239 void showTree(const blink::VisibleSelection&); |
| 243 void showTree(const blink::VisibleSelection*); | 240 void showTree(const blink::VisibleSelection*); |
| 244 void showTree(const blink::VisibleSelectionInFlatTree&); | 241 void showTree(const blink::VisibleSelectionInFlatTree&); |
| 245 void showTree(const blink::VisibleSelectionInFlatTree*); | 242 void showTree(const blink::VisibleSelectionInFlatTree*); |
| 246 #endif | 243 #endif |
| 247 | 244 |
| 248 #endif // VisibleSelection_h | 245 #endif // VisibleSelection_h |
| OLD | NEW |