| 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 | 225 |
| 226 void computeAndSetTypingStyle(StylePropertySet* , EditAction = EditActionUns
pecified); | 226 void computeAndSetTypingStyle(StylePropertySet* , EditAction = EditActionUns
pecified); |
| 227 | 227 |
| 228 IntRect firstRectForRange(Range*) const; | 228 IntRect firstRectForRange(Range*) const; |
| 229 | 229 |
| 230 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe
lection::SetSelectionOptions); | 230 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe
lection::SetSelectionOptions); |
| 231 | 231 |
| 232 bool markedTextMatchesAreHighlighted() const; | 232 bool markedTextMatchesAreHighlighted() const; |
| 233 void setMarkedTextMatchesAreHighlighted(bool); | 233 void setMarkedTextMatchesAreHighlighted(bool); |
| 234 | 234 |
| 235 void textAreaOrTextFieldDidBeginEditing(Element*); | |
| 236 void textFieldDidEndEditing(Element*); | |
| 237 void textDidChangeInTextField(Element*); | |
| 238 bool doTextFieldCommandFromEvent(Element*, KeyboardEvent*); | |
| 239 | |
| 240 void replaceSelectionWithFragment(PassRefPtr<DocumentFragment>, bool selectR
eplacement, bool smartReplace, bool matchStyle); | 235 void replaceSelectionWithFragment(PassRefPtr<DocumentFragment>, bool selectR
eplacement, bool smartReplace, bool matchStyle); |
| 241 void replaceSelectionWithText(const String&, bool selectReplacement, bool sm
artReplace); | 236 void replaceSelectionWithText(const String&, bool selectReplacement, bool sm
artReplace); |
| 242 | 237 |
| 243 void simplifyMarkup(Node* startNode, Node* endNode); | 238 void simplifyMarkup(Node* startNode, Node* endNode); |
| 244 | 239 |
| 245 EditorParagraphSeparator defaultParagraphSeparator() const { return m_defaul
tParagraphSeparator; } | 240 EditorParagraphSeparator defaultParagraphSeparator() const { return m_defaul
tParagraphSeparator; } |
| 246 void setDefaultParagraphSeparator(EditorParagraphSeparator separator) { m_de
faultParagraphSeparator = separator; } | 241 void setDefaultParagraphSeparator(EditorParagraphSeparator separator) { m_de
faultParagraphSeparator = separator; } |
| 247 | 242 |
| 248 class RevealSelectionScope { | 243 class RevealSelectionScope { |
| 249 WTF_MAKE_NONCOPYABLE(RevealSelectionScope); | 244 WTF_MAKE_NONCOPYABLE(RevealSelectionScope); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 | 304 |
| 310 inline bool Editor::markedTextMatchesAreHighlighted() const | 305 inline bool Editor::markedTextMatchesAreHighlighted() const |
| 311 { | 306 { |
| 312 return m_areMarkedTextMatchesHighlighted; | 307 return m_areMarkedTextMatchesHighlighted; |
| 313 } | 308 } |
| 314 | 309 |
| 315 | 310 |
| 316 } // namespace WebCore | 311 } // namespace WebCore |
| 317 | 312 |
| 318 #endif // Editor_h | 313 #endif // Editor_h |
| OLD | NEW |