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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 IntRect firstRectForRange(const Range*) const; | 215 IntRect firstRectForRange(const Range*) const; |
216 | 216 |
217 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe
lection::SetSelectionOptions); | 217 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe
lection::SetSelectionOptions); |
218 | 218 |
219 bool markedTextMatchesAreHighlighted() const; | 219 bool markedTextMatchesAreHighlighted() const; |
220 void setMarkedTextMatchesAreHighlighted(bool); | 220 void setMarkedTextMatchesAreHighlighted(bool); |
221 | 221 |
222 void replaceSelectionWithFragment(PassRefPtrWillBeRawPtr<DocumentFragment>,
bool selectReplacement, bool smartReplace, bool matchStyle); | 222 void replaceSelectionWithFragment(PassRefPtrWillBeRawPtr<DocumentFragment>,
bool selectReplacement, bool smartReplace, bool matchStyle); |
223 void replaceSelectionWithText(const String&, bool selectReplacement, bool sm
artReplace); | 223 void replaceSelectionWithText(const String&, bool selectReplacement, bool sm
artReplace); |
224 | 224 |
| 225 // TODO(xiaochengh): Replace |bool| parameters by |enum|. |
| 226 void replaceSelectionAfterDragging(PassRefPtrWillBeRawPtr<DocumentFragment>,
bool smartReplace, bool plainText); |
| 227 void moveSelectionAfterDragging(PassRefPtrWillBeRawPtr<DocumentFragment>, co
nst Position&, bool smartInsert, bool smartDelete); |
| 228 |
225 EditorParagraphSeparator defaultParagraphSeparator() const { return m_defaul
tParagraphSeparator; } | 229 EditorParagraphSeparator defaultParagraphSeparator() const { return m_defaul
tParagraphSeparator; } |
226 void setDefaultParagraphSeparator(EditorParagraphSeparator separator) { m_de
faultParagraphSeparator = separator; } | 230 void setDefaultParagraphSeparator(EditorParagraphSeparator separator) { m_de
faultParagraphSeparator = separator; } |
227 | 231 |
228 class RevealSelectionScope { | 232 class RevealSelectionScope { |
229 WTF_MAKE_NONCOPYABLE(RevealSelectionScope); | 233 WTF_MAKE_NONCOPYABLE(RevealSelectionScope); |
230 STACK_ALLOCATED(); | 234 STACK_ALLOCATED(); |
231 public: | 235 public: |
232 explicit RevealSelectionScope(Editor*); | 236 explicit RevealSelectionScope(Editor*); |
233 ~RevealSelectionScope(); | 237 ~RevealSelectionScope(); |
234 private: | 238 private: |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 | 305 |
302 inline bool Editor::markedTextMatchesAreHighlighted() const | 306 inline bool Editor::markedTextMatchesAreHighlighted() const |
303 { | 307 { |
304 return m_areMarkedTextMatchesHighlighted; | 308 return m_areMarkedTextMatchesHighlighted; |
305 } | 309 } |
306 | 310 |
307 | 311 |
308 } // namespace blink | 312 } // namespace blink |
309 | 313 |
310 #endif // Editor_h | 314 #endif // Editor_h |
OLD | NEW |