OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
210 | 210 |
211 Range* findStringAndScrollToVisible(const String&, Range*, FindOptions); | 211 Range* findStringAndScrollToVisible(const String&, Range*, FindOptions); |
212 Range* findRangeOfString(const String& target, const EphemeralRange& referen ceRange, FindOptions); | 212 Range* findRangeOfString(const String& target, const EphemeralRange& referen ceRange, FindOptions); |
213 Range* findRangeOfString(const String& target, const EphemeralRangeInFlatTre e& referenceRange, FindOptions); | 213 Range* findRangeOfString(const String& target, const EphemeralRangeInFlatTre e& referenceRange, FindOptions); |
214 | 214 |
215 const VisibleSelection& mark() const; // Mark, to be used as emacs uses it. | 215 const VisibleSelection& mark() const; // Mark, to be used as emacs uses it. |
216 void setMark(const VisibleSelection&); | 216 void setMark(const VisibleSelection&); |
217 | 217 |
218 void computeAndSetTypingStyle(StylePropertySet*, InputEvent::InputType); | 218 void computeAndSetTypingStyle(StylePropertySet*, InputEvent::InputType); |
219 | 219 |
220 IntRect firstRectForRange(const EphemeralRange&) const; | 220 IntRect firstRectForRange(const EphemeralRange&) const; |
tkent
2016/09/23 05:32:14
Now this function assumes up-to-date layout. We s
Xiaocheng
2016/09/23 05:54:44
Done.
| |
221 IntRect firstRectForRange(const Range*) const; | |
tkent
2016/09/23 05:32:14
Please mention this removal in the CL description.
Xiaocheng
2016/09/23 05:54:44
Done.
| |
222 | 221 |
223 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe lection::SetSelectionOptions); | 222 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe lection::SetSelectionOptions); |
224 | 223 |
225 bool markedTextMatchesAreHighlighted() const; | 224 bool markedTextMatchesAreHighlighted() const; |
226 void setMarkedTextMatchesAreHighlighted(bool); | 225 void setMarkedTextMatchesAreHighlighted(bool); |
227 | 226 |
228 void replaceSelectionWithFragment(DocumentFragment*, bool selectReplacement, bool smartReplace, bool matchStyle); | 227 void replaceSelectionWithFragment(DocumentFragment*, bool selectReplacement, bool smartReplace, bool matchStyle); |
229 void replaceSelectionWithText(const String&, bool selectReplacement, bool sm artReplace); | 228 void replaceSelectionWithText(const String&, bool selectReplacement, bool sm artReplace); |
230 | 229 |
231 // TODO(xiaochengh): Replace |bool| parameters by |enum|. | 230 // TODO(xiaochengh): Replace |bool| parameters by |enum|. |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
313 | 312 |
314 inline bool Editor::markedTextMatchesAreHighlighted() const | 313 inline bool Editor::markedTextMatchesAreHighlighted() const |
315 { | 314 { |
316 return m_areMarkedTextMatchesHighlighted; | 315 return m_areMarkedTextMatchesHighlighted; |
317 } | 316 } |
318 | 317 |
319 | 318 |
320 } // namespace blink | 319 } // namespace blink |
321 | 320 |
322 #endif // Editor_h | 321 #endif // Editor_h |
OLD | NEW |