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

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

Issue 21235009: Make sure the last selection gets spell checked when focusing different frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 4 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 303
304 void computeAndSetTypingStyle(StylePropertySet* , EditAction = EditActionUns pecified); 304 void computeAndSetTypingStyle(StylePropertySet* , EditAction = EditActionUns pecified);
305 void applyEditingStyleToBodyElement() const; 305 void applyEditingStyleToBodyElement() const;
306 void applyEditingStyleToElement(Element*) const; 306 void applyEditingStyleToElement(Element*) const;
307 307
308 IntRect firstRectForRange(Range*) const; 308 IntRect firstRectForRange(Range*) const;
309 309
310 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe lection::SetSelectionOptions); 310 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe lection::SetSelectionOptions);
311 bool shouldChangeSelection(const VisibleSelection& oldSelection, const Visib leSelection& newSelection, EAffinity, bool stillSelecting) const; 311 bool shouldChangeSelection(const VisibleSelection& oldSelection, const Visib leSelection& newSelection, EAffinity, bool stillSelecting) const;
312 312
313 void spellCheckAfterBlur();
314 void spellCheckOldSelection(const VisibleSelection& oldSelection, const Visi bleSelection& newAdjacentWords, const VisibleSelection& newSelectedSentence);
315
313 bool markedTextMatchesAreHighlighted() const; 316 bool markedTextMatchesAreHighlighted() const;
314 void setMarkedTextMatchesAreHighlighted(bool); 317 void setMarkedTextMatchesAreHighlighted(bool);
315 318
316 void textFieldDidBeginEditing(Element*); 319 void textFieldDidBeginEditing(Element*);
317 void textFieldDidEndEditing(Element*); 320 void textFieldDidEndEditing(Element*);
318 void textDidChangeInTextField(Element*); 321 void textDidChangeInTextField(Element*);
319 bool doTextFieldCommandFromEvent(Element*, KeyboardEvent*); 322 bool doTextFieldCommandFromEvent(Element*, KeyboardEvent*);
320 WritingDirection baseWritingDirectionForSelectionStart() const; 323 WritingDirection baseWritingDirectionForSelectionStart() const;
321 324
322 void replaceSelectionWithFragment(PassRefPtr<DocumentFragment>, bool selectR eplacement, bool smartReplace, bool matchStyle); 325 void replaceSelectionWithFragment(PassRefPtr<DocumentFragment>, bool selectR eplacement, bool smartReplace, bool matchStyle);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 392
390 inline bool Editor::markedTextMatchesAreHighlighted() const 393 inline bool Editor::markedTextMatchesAreHighlighted() const
391 { 394 {
392 return m_areMarkedTextMatchesHighlighted; 395 return m_areMarkedTextMatchesHighlighted;
393 } 396 }
394 397
395 398
396 } // namespace WebCore 399 } // namespace WebCore
397 400
398 #endif // Editor_h 401 #endif // Editor_h
OLDNEW
« no previous file with comments | « LayoutTests/editing/spelling/focusing-other-frame-expected.txt ('k') | Source/core/editing/Editor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698