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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 void revealSelectionAfterEditingOperation(const ScrollAlignment& = ScrollAli
gnment::alignCenterIfNeeded, RevealExtentOption = DoNotRevealExtent); | 273 void revealSelectionAfterEditingOperation(const ScrollAlignment& = ScrollAli
gnment::alignCenterIfNeeded, RevealExtentOption = DoNotRevealExtent); |
274 void changeSelectionAfterCommand(const VisibleSelection& newSelection, Frame
Selection::SetSelectionOptions); | 274 void changeSelectionAfterCommand(const VisibleSelection& newSelection, Frame
Selection::SetSelectionOptions); |
275 void notifyComponentsOnChangedSelection(const VisibleSelection& oldSelection
, FrameSelection::SetSelectionOptions); | 275 void notifyComponentsOnChangedSelection(const VisibleSelection& oldSelection
, FrameSelection::SetSelectionOptions); |
276 | 276 |
277 Element* findEventTargetFromSelection() const; | 277 Element* findEventTargetFromSelection() const; |
278 | 278 |
279 PassRefPtrWillBeRawPtr<Range> rangeOfString(const String&, Range*, FindOptio
ns); | 279 PassRefPtrWillBeRawPtr<Range> rangeOfString(const String&, Range*, FindOptio
ns); |
280 | 280 |
281 SpellChecker& spellChecker() const; | 281 SpellChecker& spellChecker() const; |
282 | 282 |
283 bool handleEditingKeyboardEvent(blink::KeyboardEvent*); | 283 bool handleEditingKeyboardEvent(KeyboardEvent*); |
284 }; | 284 }; |
285 | 285 |
286 inline void Editor::setStartNewKillRingSequence(bool flag) | 286 inline void Editor::setStartNewKillRingSequence(bool flag) |
287 { | 287 { |
288 m_shouldStartNewKillRingSequence = flag; | 288 m_shouldStartNewKillRingSequence = flag; |
289 } | 289 } |
290 | 290 |
291 inline const VisibleSelection& Editor::mark() const | 291 inline const VisibleSelection& Editor::mark() const |
292 { | 292 { |
293 return m_mark; | 293 return m_mark; |
294 } | 294 } |
295 | 295 |
296 inline void Editor::setMark(const VisibleSelection& selection) | 296 inline void Editor::setMark(const VisibleSelection& selection) |
297 { | 297 { |
298 m_mark = selection; | 298 m_mark = selection; |
299 } | 299 } |
300 | 300 |
301 inline bool Editor::markedTextMatchesAreHighlighted() const | 301 inline bool Editor::markedTextMatchesAreHighlighted() const |
302 { | 302 { |
303 return m_areMarkedTextMatchesHighlighted; | 303 return m_areMarkedTextMatchesHighlighted; |
304 } | 304 } |
305 | 305 |
306 | 306 |
307 } // namespace blink | 307 } // namespace blink |
308 | 308 |
309 #endif // Editor_h | 309 #endif // Editor_h |
OLD | NEW |