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

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

Issue 2399663003: Reflow comments in //third_party/WebKit/Source/core/editing (Closed)
Patch Set: Created 4 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
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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // Leftmost position when expanded to respect granularity 200 // Leftmost position when expanded to respect granularity
201 PositionTemplate<Strategy> m_start; 201 PositionTemplate<Strategy> m_start;
202 // Rightmost position when expanded to respect granularity 202 // Rightmost position when expanded to respect granularity
203 PositionTemplate<Strategy> m_end; 203 PositionTemplate<Strategy> m_end;
204 204
205 TextAffinity m_affinity; // the upstream/downstream affinity of the caret 205 TextAffinity m_affinity; // the upstream/downstream affinity of the caret
206 206
207 // these are cached, can be recalculated by validate() 207 // these are cached, can be recalculated by validate()
208 SelectionType m_selectionType; // None, Caret, Range 208 SelectionType m_selectionType; // None, Caret, Range
209 bool m_baseIsFirst : 1; // True if base is before the extent 209 bool m_baseIsFirst : 1; // True if base is before the extent
210 bool 210 // Non-directional ignores m_baseIsFirst and selection always extends on shift
211 m_isDirectional : 1; // Non-directional ignores m_baseIsFirst and selecti on always extends on shift + arrow key. 211 // + arrow key.
212 bool m_isDirectional : 1;
212 213
213 TextGranularity m_granularity; 214 TextGranularity m_granularity;
214 // |updateIfNeeded()| uses |m_hasTrailingWhitespace| for word granularity. 215 // |updateIfNeeded()| uses |m_hasTrailingWhitespace| for word granularity.
215 // |m_hasTrailingWhitespace| is set by |appendTrailingWhitespace()|. 216 // |m_hasTrailingWhitespace| is set by |appendTrailingWhitespace()|.
216 // TODO(yosin): Once we unify start/end and base/extent, we should get rid 217 // TODO(yosin): Once we unify start/end and base/extent, we should get rid
217 // of |m_hasTrailingWhitespace|. 218 // of |m_hasTrailingWhitespace|.
218 bool m_hasTrailingWhitespace : 1; 219 bool m_hasTrailingWhitespace : 1;
219 }; 220 };
220 221
221 extern template class CORE_EXTERN_TEMPLATE_EXPORT 222 extern template class CORE_EXTERN_TEMPLATE_EXPORT
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 338
338 #ifndef NDEBUG 339 #ifndef NDEBUG
339 // Outside the WebCore namespace for ease of invocation from gdb. 340 // Outside the WebCore namespace for ease of invocation from gdb.
340 void showTree(const blink::VisibleSelection&); 341 void showTree(const blink::VisibleSelection&);
341 void showTree(const blink::VisibleSelection*); 342 void showTree(const blink::VisibleSelection*);
342 void showTree(const blink::VisibleSelectionInFlatTree&); 343 void showTree(const blink::VisibleSelectionInFlatTree&);
343 void showTree(const blink::VisibleSelectionInFlatTree*); 344 void showTree(const blink::VisibleSelectionInFlatTree*);
344 #endif 345 #endif
345 346
346 #endif // VisibleSelection_h 347 #endif // VisibleSelection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698