| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 CreateVisibleSelection(const SelectionInFlatTree&); | 194 CreateVisibleSelection(const SelectionInFlatTree&); |
| 195 | 195 |
| 196 // We don't yet support multi-range selections, so we only ever have one range | 196 // We don't yet support multi-range selections, so we only ever have one range |
| 197 // to return. | 197 // to return. |
| 198 CORE_EXPORT EphemeralRange FirstEphemeralRangeOf(const VisibleSelection&); | 198 CORE_EXPORT EphemeralRange FirstEphemeralRangeOf(const VisibleSelection&); |
| 199 | 199 |
| 200 CORE_EXPORT std::ostream& operator<<(std::ostream&, const VisibleSelection&); | 200 CORE_EXPORT std::ostream& operator<<(std::ostream&, const VisibleSelection&); |
| 201 CORE_EXPORT std::ostream& operator<<(std::ostream&, | 201 CORE_EXPORT std::ostream& operator<<(std::ostream&, |
| 202 const VisibleSelectionInFlatTree&); | 202 const VisibleSelectionInFlatTree&); |
| 203 | 203 |
| 204 PositionInFlatTree ComputeStartRespectingGranularity( |
| 205 const PositionInFlatTreeWithAffinity&, |
| 206 TextGranularity); |
| 207 |
| 208 PositionInFlatTree ComputeEndRespectingGranularity( |
| 209 const PositionInFlatTree&, |
| 210 const PositionInFlatTreeWithAffinity&, |
| 211 TextGranularity); |
| 212 |
| 204 } // namespace blink | 213 } // namespace blink |
| 205 | 214 |
| 206 #ifndef NDEBUG | 215 #ifndef NDEBUG |
| 207 // Outside the WebCore namespace for ease of invocation from gdb. | 216 // Outside the WebCore namespace for ease of invocation from gdb. |
| 208 void showTree(const blink::VisibleSelection&); | 217 void showTree(const blink::VisibleSelection&); |
| 209 void showTree(const blink::VisibleSelection*); | 218 void showTree(const blink::VisibleSelection*); |
| 210 void showTree(const blink::VisibleSelectionInFlatTree&); | 219 void showTree(const blink::VisibleSelectionInFlatTree&); |
| 211 void showTree(const blink::VisibleSelectionInFlatTree*); | 220 void showTree(const blink::VisibleSelectionInFlatTree*); |
| 212 #endif | 221 #endif |
| 213 | 222 |
| 214 #endif // VisibleSelection_h | 223 #endif // VisibleSelection_h |
| OLD | NEW |