| 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 // |firstRectForRange| requires up-to-date layout. |
| 220 IntRect firstRectForRange(const EphemeralRange&) const; | 221 IntRect firstRectForRange(const EphemeralRange&) const; |
| 221 IntRect firstRectForRange(const Range*) const; | |
| 222 | 222 |
| 223 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe
lection::SetSelectionOptions); | 223 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe
lection::SetSelectionOptions); |
| 224 | 224 |
| 225 bool markedTextMatchesAreHighlighted() const; | 225 bool markedTextMatchesAreHighlighted() const; |
| 226 void setMarkedTextMatchesAreHighlighted(bool); | 226 void setMarkedTextMatchesAreHighlighted(bool); |
| 227 | 227 |
| 228 void replaceSelectionWithFragment(DocumentFragment*, bool selectReplacement,
bool smartReplace, bool matchStyle); | 228 void replaceSelectionWithFragment(DocumentFragment*, bool selectReplacement,
bool smartReplace, bool matchStyle); |
| 229 void replaceSelectionWithText(const String&, bool selectReplacement, bool sm
artReplace); | 229 void replaceSelectionWithText(const String&, bool selectReplacement, bool sm
artReplace); |
| 230 | 230 |
| 231 // TODO(xiaochengh): Replace |bool| parameters by |enum|. | 231 // TODO(xiaochengh): Replace |bool| parameters by |enum|. |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 | 313 |
| 314 inline bool Editor::markedTextMatchesAreHighlighted() const | 314 inline bool Editor::markedTextMatchesAreHighlighted() const |
| 315 { | 315 { |
| 316 return m_areMarkedTextMatchesHighlighted; | 316 return m_areMarkedTextMatchesHighlighted; |
| 317 } | 317 } |
| 318 | 318 |
| 319 | 319 |
| 320 } // namespace blink | 320 } // namespace blink |
| 321 | 321 |
| 322 #endif // Editor_h | 322 #endif // Editor_h |
| OLD | NEW |