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

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

Issue 2457523003: Support 'insertReplacementText' for spellcheck (Closed)
Patch Set: Created 4 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
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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 248
249 void respondToChangedSelection(const Position& oldSelectionStart, 249 void respondToChangedSelection(const Position& oldSelectionStart,
250 FrameSelection::SetSelectionOptions); 250 FrameSelection::SetSelectionOptions);
251 251
252 bool markedTextMatchesAreHighlighted() const; 252 bool markedTextMatchesAreHighlighted() const;
253 void setMarkedTextMatchesAreHighlighted(bool); 253 void setMarkedTextMatchesAreHighlighted(bool);
254 254
255 void replaceSelectionWithFragment(DocumentFragment*, 255 void replaceSelectionWithFragment(DocumentFragment*,
256 bool selectReplacement, 256 bool selectReplacement,
257 bool smartReplace, 257 bool smartReplace,
258 bool matchStyle); 258 bool matchStyle,
259 InputEvent::InputType);
259 void replaceSelectionWithText(const String&, 260 void replaceSelectionWithText(const String&,
260 bool selectReplacement, 261 bool selectReplacement,
261 bool smartReplace); 262 bool smartReplace,
263 InputEvent::InputType);
262 264
263 // TODO(xiaochengh): Replace |bool| parameters by |enum|. 265 // TODO(xiaochengh): Replace |bool| parameters by |enum|.
264 void replaceSelectionAfterDragging(DocumentFragment*, 266 void replaceSelectionAfterDragging(DocumentFragment*,
265 InsertMode, 267 InsertMode,
266 DragSourceType); 268 DragSourceType);
267 269
268 // Return false if frame was destroyed by event handler, should stop executing 270 // Return false if frame was destroyed by event handler, should stop executing
269 // remaining actions. 271 // remaining actions.
270 bool deleteSelectionAfterDraggingWithEvents( 272 bool deleteSelectionAfterDraggingWithEvents(
271 Element* dragSource, 273 Element* dragSource,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 m_mark = selection; 363 m_mark = selection;
362 } 364 }
363 365
364 inline bool Editor::markedTextMatchesAreHighlighted() const { 366 inline bool Editor::markedTextMatchesAreHighlighted() const {
365 return m_areMarkedTextMatchesHighlighted; 367 return m_areMarkedTextMatchesHighlighted;
366 } 368 }
367 369
368 } // namespace blink 370 } // namespace blink
369 371
370 #endif // Editor_h 372 #endif // Editor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698