| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 | 200 |
| 201 TextGranularity m_granularity; | 201 TextGranularity m_granularity; |
| 202 // |updateIfNeeded()| uses |m_hasTrailingWhitespace| for word granularity. | 202 // |updateIfNeeded()| uses |m_hasTrailingWhitespace| for word granularity. |
| 203 // |m_hasTrailingWhitespace| is set by |appendTrailingWhitespace()|. | 203 // |m_hasTrailingWhitespace| is set by |appendTrailingWhitespace()|. |
| 204 // TODO(yosin): Once we unify start/end and base/extent, we should get rid | 204 // TODO(yosin): Once we unify start/end and base/extent, we should get rid |
| 205 // of |m_hasTrailingWhitespace|. | 205 // of |m_hasTrailingWhitespace|. |
| 206 bool m_hasTrailingWhitespace : 1; | 206 bool m_hasTrailingWhitespace : 1; |
| 207 }; | 207 }; |
| 208 | 208 |
| 209 extern template class CORE_EXTERN_TEMPLATE_EXPORT VisibleSelectionTemplate<Editi
ngStrategy>; | 209 extern template class CORE_EXTERN_TEMPLATE_EXPORT VisibleSelectionTemplate<Editi
ngStrategy>; |
| 210 extern template class CORE_EXTERN_TEMPLATE_EXPORT VisibleSelectionTemplate<Editi
ngInComposedTreeStrategy>; | 210 extern template class CORE_EXTERN_TEMPLATE_EXPORT VisibleSelectionTemplate<Editi
ngInFlatTreeStrategy>; |
| 211 | 211 |
| 212 using VisibleSelection = VisibleSelectionTemplate<EditingStrategy>; | 212 using VisibleSelection = VisibleSelectionTemplate<EditingStrategy>; |
| 213 using VisibleSelectionInComposedTree = VisibleSelectionTemplate<EditingInCompose
dTreeStrategy>; | 213 using VisibleSelectionInFlatTree = VisibleSelectionTemplate<EditingInFlatTreeStr
ategy>; |
| 214 | 214 |
| 215 // TODO(yosin): We should use |operator==()| instead of | 215 // TODO(yosin): We should use |operator==()| instead of |
| 216 // |equalSelectionsInDOMTree()|. | 216 // |equalSelectionsInDOMTree()|. |
| 217 bool equalSelectionsInDOMTree(const VisibleSelection&, const VisibleSelection&); | 217 bool equalSelectionsInDOMTree(const VisibleSelection&, const VisibleSelection&); |
| 218 | 218 |
| 219 // We don't yet support multi-range selections, so we only ever have one range | 219 // We don't yet support multi-range selections, so we only ever have one range |
| 220 // to return. | 220 // to return. |
| 221 CORE_EXPORT EphemeralRange firstEphemeralRangeOf(const VisibleSelection&); | 221 CORE_EXPORT EphemeralRange firstEphemeralRangeOf(const VisibleSelection&); |
| 222 | 222 |
| 223 // TODO(sof): move more firstRangeOf() uses to be over EphemeralRange instead. | 223 // TODO(sof): move more firstRangeOf() uses to be over EphemeralRange instead. |
| 224 CORE_EXPORT PassRefPtrWillBeRawPtr<Range> firstRangeOf(const VisibleSelection&); | 224 CORE_EXPORT PassRefPtrWillBeRawPtr<Range> firstRangeOf(const VisibleSelection&); |
| 225 | 225 |
| 226 } // namespace blink | 226 } // namespace blink |
| 227 | 227 |
| 228 #ifndef NDEBUG | 228 #ifndef NDEBUG |
| 229 // Outside the WebCore namespace for ease of invocation from gdb. | 229 // Outside the WebCore namespace for ease of invocation from gdb. |
| 230 void showTree(const blink::VisibleSelection&); | 230 void showTree(const blink::VisibleSelection&); |
| 231 void showTree(const blink::VisibleSelection*); | 231 void showTree(const blink::VisibleSelection*); |
| 232 void showTree(const blink::VisibleSelectionInComposedTree&); | 232 void showTree(const blink::VisibleSelectionInFlatTree&); |
| 233 void showTree(const blink::VisibleSelectionInComposedTree*); | 233 void showTree(const blink::VisibleSelectionInFlatTree*); |
| 234 #endif | 234 #endif |
| 235 | 235 |
| 236 #endif // VisibleSelection_h | 236 #endif // VisibleSelection_h |
| OLD | NEW |