Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(947)

Side by Side Diff: third_party/WebKit/Source/core/editing/commands/TypingCommand.h

Issue 2723003002: Editing: Fix caret blinking after a typing. (Closed)
Patch Set: Apply review comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 static TypingCommand* lastTypingCommandIfStillOpenForTyping(LocalFrame*); 138 static TypingCommand* lastTypingCommandIfStillOpenForTyping(LocalFrame*);
139 139
140 void doApply(EditingState*) override; 140 void doApply(EditingState*) override;
141 InputEvent::InputType inputType() const override; 141 InputEvent::InputType inputType() const override;
142 bool isTypingCommand() const override; 142 bool isTypingCommand() const override;
143 bool preservesTypingStyle() const override { return m_preservesTypingStyle; } 143 bool preservesTypingStyle() const override { return m_preservesTypingStyle; }
144 void setShouldRetainAutocorrectionIndicator(bool retain) override { 144 void setShouldRetainAutocorrectionIndicator(bool retain) override {
145 m_shouldRetainAutocorrectionIndicator = retain; 145 m_shouldRetainAutocorrectionIndicator = retain;
146 } 146 }
147 bool shouldStopCaretBlinking() const override { return true; }
148 void setShouldPreventSpellChecking(bool prevent) { 147 void setShouldPreventSpellChecking(bool prevent) {
149 m_shouldPreventSpellChecking = prevent; 148 m_shouldPreventSpellChecking = prevent;
150 } 149 }
151 150
152 static void updateSelectionIfDifferentFromCurrentSelection(TypingCommand*, 151 static void updateSelectionIfDifferentFromCurrentSelection(TypingCommand*,
153 LocalFrame*); 152 LocalFrame*);
154 153
155 void updatePreservesTypingStyle(ETypingCommand); 154 void updatePreservesTypingStyle(ETypingCommand);
156 void typingAddedToOpenCommand(ETypingCommand); 155 void typingAddedToOpenCommand(ETypingCommand);
157 bool makeEditableRootEmpty(EditingState*); 156 bool makeEditableRootEmpty(EditingState*);
(...skipping 28 matching lines...) Expand all
186 185
187 DEFINE_TYPE_CASTS(TypingCommand, 186 DEFINE_TYPE_CASTS(TypingCommand,
188 CompositeEditCommand, 187 CompositeEditCommand,
189 command, 188 command,
190 command->isTypingCommand(), 189 command->isTypingCommand(),
191 command.isTypingCommand()); 190 command.isTypingCommand());
192 191
193 } // namespace blink 192 } // namespace blink
194 193
195 #endif // TypingCommand_h 194 #endif // TypingCommand_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698