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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 |
OLD | NEW |