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

Side by Side Diff: Source/core/editing/Editor.h

Issue 72543005: Get rid of explict editor dependency from text field (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2013-11-18T17:22:32 Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/editing/Editor.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/editing/Editor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698