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

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

Issue 1636883003: Perform Spellcheck Requesting before Dispatching Events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test case Created 4 years, 11 months 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 275
276 void revealSelectionAfterEditingOperation(const ScrollAlignment& = ScrollAli gnment::alignCenterIfNeeded, RevealExtentOption = DoNotRevealExtent); 276 void revealSelectionAfterEditingOperation(const ScrollAlignment& = ScrollAli gnment::alignCenterIfNeeded, RevealExtentOption = DoNotRevealExtent);
277 void changeSelectionAfterCommand(const VisibleSelection& newSelection, Frame Selection::SetSelectionOptions); 277 void changeSelectionAfterCommand(const VisibleSelection& newSelection, Frame Selection::SetSelectionOptions);
278 void notifyComponentsOnChangedSelection(const VisibleSelection& oldSelection , FrameSelection::SetSelectionOptions); 278 void notifyComponentsOnChangedSelection(const VisibleSelection& oldSelection , FrameSelection::SetSelectionOptions);
279 279
280 Element* findEventTargetFromSelection() const; 280 Element* findEventTargetFromSelection() const;
281 281
282 SpellChecker& spellChecker() const; 282 SpellChecker& spellChecker() const;
283 283
284 bool handleEditingKeyboardEvent(KeyboardEvent*); 284 bool handleEditingKeyboardEvent(KeyboardEvent*);
285
yosin_UTC9 2016/01/27 06:02:38 nit: we don't need to have an extra blank line
Xiaocheng 2016/01/27 07:20:37 Done.
286 void requestSpellcheckingAfterApplyingCommand(CompositeEditCommand*);
285 }; 287 };
286 288
287 inline void Editor::setStartNewKillRingSequence(bool flag) 289 inline void Editor::setStartNewKillRingSequence(bool flag)
288 { 290 {
289 m_shouldStartNewKillRingSequence = flag; 291 m_shouldStartNewKillRingSequence = flag;
290 } 292 }
291 293
292 inline const VisibleSelection& Editor::mark() const 294 inline const VisibleSelection& Editor::mark() const
293 { 295 {
294 return m_mark; 296 return m_mark;
295 } 297 }
296 298
297 inline void Editor::setMark(const VisibleSelection& selection) 299 inline void Editor::setMark(const VisibleSelection& selection)
298 { 300 {
299 m_mark = selection; 301 m_mark = selection;
300 } 302 }
301 303
302 inline bool Editor::markedTextMatchesAreHighlighted() const 304 inline bool Editor::markedTextMatchesAreHighlighted() const
303 { 305 {
304 return m_areMarkedTextMatchesHighlighted; 306 return m_areMarkedTextMatchesHighlighted;
305 } 307 }
306 308
307 309
308 } // namespace blink 310 } // namespace blink
309 311
310 #endif // Editor_h 312 #endif // Editor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698