OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006 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 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1259 m_visibleSelection.setExtent(newExtent); | 1259 m_visibleSelection.setExtent(newExtent); |
1260 } | 1260 } |
1261 | 1261 |
1262 template <> CORE_TEMPLATE_EXPORT | 1262 template <> CORE_TEMPLATE_EXPORT |
1263 bool VisibleSelectionTemplate<EditingStrategy>::expandUsingGranularity(TextGranu
larity granularity) | 1263 bool VisibleSelectionTemplate<EditingStrategy>::expandUsingGranularity(TextGranu
larity granularity) |
1264 { | 1264 { |
1265 return m_visibleSelection.expandUsingGranularity(granularity); | 1265 return m_visibleSelection.expandUsingGranularity(granularity); |
1266 } | 1266 } |
1267 | 1267 |
1268 template <> CORE_TEMPLATE_EXPORT | 1268 template <> CORE_TEMPLATE_EXPORT |
1269 VisibleSelectionTemplate<EditingInComposedTreeStrategy>::VisibleSelectionTemplat
e() | |
1270 { | |
1271 } | |
1272 | |
1273 template <> CORE_TEMPLATE_EXPORT | |
1274 VisibleSelectionTemplate<EditingInComposedTreeStrategy>::VisibleSelectionTemplat
e(const VisibleSelection& visibleSelection) | 1269 VisibleSelectionTemplate<EditingInComposedTreeStrategy>::VisibleSelectionTemplat
e(const VisibleSelection& visibleSelection) |
1275 : m_visibleSelection(visibleSelection) | 1270 : m_visibleSelection(visibleSelection) |
1276 { | 1271 { |
1277 } | 1272 } |
1278 | 1273 |
| 1274 template <> CORE_TEMPLATE_EXPORT |
| 1275 VisibleSelectionTemplate<EditingInComposedTreeStrategy>::VisibleSelectionTemplat
e(const VisiblePositionTemplate<EditingInComposedTreeStrategy>& visiblePosition) |
| 1276 : VisibleSelectionTemplate(VisibleSelection(visiblePosition.deepEquivalent()
, visiblePosition.deepEquivalent(), visiblePosition.affinity())) |
| 1277 { |
| 1278 } |
| 1279 |
| 1280 template <> CORE_TEMPLATE_EXPORT |
| 1281 VisibleSelectionTemplate<EditingInComposedTreeStrategy>::VisibleSelectionTemplat
e() |
| 1282 { |
| 1283 } |
| 1284 |
1279 template <> CORE_TEMPLATE_EXPORT | 1285 template <> CORE_TEMPLATE_EXPORT |
1280 bool VisibleSelectionTemplate<EditingInComposedTreeStrategy>::operator==(const V
isibleSelectionTemplate<EditingInComposedTreeStrategy>& other) const | 1286 bool VisibleSelectionTemplate<EditingInComposedTreeStrategy>::operator==(const V
isibleSelectionTemplate<EditingInComposedTreeStrategy>& other) const |
1281 { | 1287 { |
1282 return equalSelectionsInComposedTree(m_visibleSelection, other.m_visibleSele
ction); | 1288 return equalSelectionsInComposedTree(m_visibleSelection, other.m_visibleSele
ction); |
1283 } | 1289 } |
1284 | 1290 |
1285 template <> CORE_TEMPLATE_EXPORT | 1291 template <> CORE_TEMPLATE_EXPORT |
1286 PositionInComposedTree VisibleSelectionTemplate<EditingInComposedTreeStrategy>::
base() const | 1292 PositionInComposedTree VisibleSelectionTemplate<EditingInComposedTreeStrategy>::
base() const |
1287 { | 1293 { |
1288 return m_visibleSelection.baseInComposedTree(); | 1294 return m_visibleSelection.baseInComposedTree(); |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1416 sel.showTreeForThis(); | 1422 sel.showTreeForThis(); |
1417 } | 1423 } |
1418 | 1424 |
1419 void showTree(const blink::VisibleSelection* sel) | 1425 void showTree(const blink::VisibleSelection* sel) |
1420 { | 1426 { |
1421 if (sel) | 1427 if (sel) |
1422 sel->showTreeForThis(); | 1428 sel->showTreeForThis(); |
1423 } | 1429 } |
1424 | 1430 |
1425 #endif | 1431 #endif |
OLD | NEW |