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

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

Issue 2967113002: Expose Compute{Start,End}RespectingGranularity() (Closed)
Patch Set: 2017-07-05T17:22:09 Created 3 years, 5 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 | third_party/WebKit/Source/core/editing/VisibleSelection.cpp » ('j') | 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 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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/VisibleSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698