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

Unified Diff: Source/core/editing/TypingCommand.h

Issue 134343002: Update editing classes to use OVERRIDE / FINAL when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/editing/TypingCommand.h
diff --git a/Source/core/editing/TypingCommand.h b/Source/core/editing/TypingCommand.h
index 05032abe59b0380e01f2c56eb7c6820bd4062c64..b0b46678a3e2d2e2a7b74652eee42e6fb3a685a2 100644
--- a/Source/core/editing/TypingCommand.h
+++ b/Source/core/editing/TypingCommand.h
@@ -30,7 +30,7 @@
namespace WebCore {
-class TypingCommand : public TextInsertionBaseCommand {
+class TypingCommand FINAL : public TextInsertionBaseCommand {
public:
enum ETypingCommand {
DeleteSelection,
@@ -97,17 +97,17 @@ private:
static PassRefPtr<TypingCommand> lastTypingCommandIfStillOpenForTyping(Frame*);
- virtual void doApply();
- virtual EditAction editingAction() const;
- virtual bool isTypingCommand() const;
- virtual bool preservesTypingStyle() const { return m_preservesTypingStyle; }
- virtual bool shouldRetainAutocorrectionIndicator() const
+ virtual void doApply() OVERRIDE;
+ virtual EditAction editingAction() const OVERRIDE;
+ virtual bool isTypingCommand() const OVERRIDE;
+ virtual bool preservesTypingStyle() const OVERRIDE { return m_preservesTypingStyle; }
+ virtual bool shouldRetainAutocorrectionIndicator() const OVERRIDE
{
ASSERT(isTopLevelCommand());
return m_shouldRetainAutocorrectionIndicator;
}
- virtual void setShouldRetainAutocorrectionIndicator(bool retain) { m_shouldRetainAutocorrectionIndicator = retain; }
- virtual bool shouldStopCaretBlinking() const { return true; }
+ virtual void setShouldRetainAutocorrectionIndicator(bool retain) OVERRIDE { m_shouldRetainAutocorrectionIndicator = retain; }
+ virtual bool shouldStopCaretBlinking() const OVERRIDE { return true; }
void setShouldPreventSpellChecking(bool prevent) { m_shouldPreventSpellChecking = prevent; }
static void updateSelectionIfDifferentFromCurrentSelection(TypingCommand*, Frame*);

Powered by Google App Engine
This is Rietveld 408576698