OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 bool preservesTypingStyle() const override { return m_preservesTypingStyle;
} | 102 bool preservesTypingStyle() const override { return m_preservesTypingStyle;
} |
103 void setShouldRetainAutocorrectionIndicator(bool retain) override { m_should
RetainAutocorrectionIndicator = retain; } | 103 void setShouldRetainAutocorrectionIndicator(bool retain) override { m_should
RetainAutocorrectionIndicator = retain; } |
104 bool shouldStopCaretBlinking() const override { return true; } | 104 bool shouldStopCaretBlinking() const override { return true; } |
105 void setShouldPreventSpellChecking(bool prevent) { m_shouldPreventSpellCheck
ing = prevent; } | 105 void setShouldPreventSpellChecking(bool prevent) { m_shouldPreventSpellCheck
ing = prevent; } |
106 | 106 |
107 static void updateSelectionIfDifferentFromCurrentSelection(TypingCommand*, L
ocalFrame*); | 107 static void updateSelectionIfDifferentFromCurrentSelection(TypingCommand*, L
ocalFrame*); |
108 | 108 |
109 void updatePreservesTypingStyle(ETypingCommand); | 109 void updatePreservesTypingStyle(ETypingCommand); |
110 void markMisspellingsAfterTyping(ETypingCommand); | 110 void markMisspellingsAfterTyping(ETypingCommand); |
111 void typingAddedToOpenCommand(ETypingCommand); | 111 void typingAddedToOpenCommand(ETypingCommand); |
112 bool makeEditableRootEmpty(); | 112 bool makeEditableRootEmpty(EditingState*); |
113 | 113 |
114 void updateCommandTypeOfOpenCommand(ETypingCommand typingCommand) { m_comman
dType = typingCommand; } | 114 void updateCommandTypeOfOpenCommand(ETypingCommand typingCommand) { m_comman
dType = typingCommand; } |
115 ETypingCommand commandTypeOfOpenCommand() const { return m_commandType; } | 115 ETypingCommand commandTypeOfOpenCommand() const { return m_commandType; } |
116 | 116 |
117 ETypingCommand m_commandType; | 117 ETypingCommand m_commandType; |
118 String m_textToInsert; | 118 String m_textToInsert; |
119 bool m_openForMoreTyping; | 119 bool m_openForMoreTyping; |
120 bool m_selectInsertedText; | 120 bool m_selectInsertedText; |
121 bool m_smartDelete; | 121 bool m_smartDelete; |
122 TextGranularity m_granularity; | 122 TextGranularity m_granularity; |
123 TextCompositionType m_compositionType; | 123 TextCompositionType m_compositionType; |
124 bool m_killRing; | 124 bool m_killRing; |
125 bool m_preservesTypingStyle; | 125 bool m_preservesTypingStyle; |
126 | 126 |
127 // Undoing a series of backward deletes will restore a selection around all
of the | 127 // Undoing a series of backward deletes will restore a selection around all
of the |
128 // characters that were deleted, but only if the typing command being undone | 128 // characters that were deleted, but only if the typing command being undone |
129 // was opened with a backward delete. | 129 // was opened with a backward delete. |
130 bool m_openedByBackwardDelete; | 130 bool m_openedByBackwardDelete; |
131 | 131 |
132 bool m_shouldRetainAutocorrectionIndicator; | 132 bool m_shouldRetainAutocorrectionIndicator; |
133 bool m_shouldPreventSpellChecking; | 133 bool m_shouldPreventSpellChecking; |
134 }; | 134 }; |
135 | 135 |
136 } // namespace blink | 136 } // namespace blink |
137 | 137 |
138 #endif // TypingCommand_h | 138 #endif // TypingCommand_h |
OLD | NEW |