Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: third_party/WebKit/Source/core/editing/VisibleSelection.cpp

Issue 1378463004: Another attempt at fixing Win-Clang link error (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698