OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 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 15 matching lines...) Expand all Loading... |
26 #ifndef EditingUtilities_h | 26 #ifndef EditingUtilities_h |
27 #define EditingUtilities_h | 27 #define EditingUtilities_h |
28 | 28 |
29 #include "core/CoreExport.h" | 29 #include "core/CoreExport.h" |
30 #include "core/editing/EditingBoundary.h" | 30 #include "core/editing/EditingBoundary.h" |
31 #include "core/editing/EphemeralRange.h" | 31 #include "core/editing/EphemeralRange.h" |
32 #include "core/editing/Position.h" | 32 #include "core/editing/Position.h" |
33 #include "core/editing/PositionWithAffinity.h" | 33 #include "core/editing/PositionWithAffinity.h" |
34 #include "core/editing/VisiblePosition.h" | 34 #include "core/editing/VisiblePosition.h" |
35 #include "core/editing/VisibleSelection.h" | 35 #include "core/editing/VisibleSelection.h" |
| 36 #include "core/events/InputEvent.h" |
36 #include "platform/text/TextDirection.h" | 37 #include "platform/text/TextDirection.h" |
37 #include "wtf/Forward.h" | 38 #include "wtf/Forward.h" |
38 #include "wtf/text/CharacterNames.h" | 39 #include "wtf/text/CharacterNames.h" |
39 | 40 |
40 namespace blink { | 41 namespace blink { |
41 | 42 |
42 enum class PositionMoveType { | 43 enum class PositionMoveType { |
43 // Move by a single code unit. |PositionMoveType::CodeUnit| is used for | 44 // Move by a single code unit. |PositionMoveType::CodeUnit| is used for |
44 // implementing other |PositionMoveType|. You should not use this. | 45 // implementing other |PositionMoveType|. You should not use this. |
45 CodeUnit, | 46 CodeUnit, |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 { | 340 { |
340 // These are characters that can behave as word boundaries, but can appear w
ithin words. | 341 // These are characters that can behave as word boundaries, but can appear w
ithin words. |
341 // If they are just typed, i.e. if they are immediately followed by a caret,
we want to delay text checking until the next character has been typed. | 342 // If they are just typed, i.e. if they are immediately followed by a caret,
we want to delay text checking until the next character has been typed. |
342 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. | 343 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. |
343 return character == '\'' || character == rightSingleQuotationMarkCharacter |
| character == hebrewPunctuationGershayimCharacter; | 344 return character == '\'' || character == rightSingleQuotationMarkCharacter |
| character == hebrewPunctuationGershayimCharacter; |
344 } | 345 } |
345 | 346 |
346 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); | 347 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); |
347 const String& nonBreakingSpaceString(); | 348 const String& nonBreakingSpaceString(); |
348 | 349 |
| 350 // ------------------------------------------------------------------------- |
| 351 // Events |
| 352 // ------------------------------------------------------------------------- |
| 353 |
| 354 // Functions dispatch InputEvent |
| 355 DispatchEventResult dispatchBeforeInputInsertText(EventTarget*, const String& da
ta); |
| 356 DispatchEventResult dispatchBeforeInputFromComposition(EventTarget*, InputEvent:
:InputType, const String& data); |
| 357 DispatchEventResult dispatchBeforeInputEditorCommand(EventTarget*, InputEvent::I
nputType, const String& data = ""); |
| 358 |
349 } // namespace blink | 359 } // namespace blink |
350 | 360 |
351 #endif | 361 #endif |
OLD | NEW |