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