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

Side by Side Diff: third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.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, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 UndoStep* ensureUndoStep(); 71 UndoStep* ensureUndoStep();
72 // Append undo step from an already applied command. 72 // Append undo step from an already applied command.
73 void appendCommandToUndoStep(CompositeEditCommand*); 73 void appendCommandToUndoStep(CompositeEditCommand*);
74 74
75 virtual bool isReplaceSelectionCommand() const; 75 virtual bool isReplaceSelectionCommand() const;
76 virtual bool isTypingCommand() const; 76 virtual bool isTypingCommand() const;
77 virtual bool isCommandGroupWrapper() const; 77 virtual bool isCommandGroupWrapper() const;
78 virtual bool isDragAndDropCommand() const; 78 virtual bool isDragAndDropCommand() const;
79 virtual bool preservesTypingStyle() const; 79 virtual bool preservesTypingStyle() const;
80 virtual void setShouldRetainAutocorrectionIndicator(bool); 80 virtual void setShouldRetainAutocorrectionIndicator(bool);
81 virtual bool shouldStopCaretBlinking() const { return false; }
82 81
83 DECLARE_VIRTUAL_TRACE(); 82 DECLARE_VIRTUAL_TRACE();
84 83
85 protected: 84 protected:
86 explicit CompositeEditCommand(Document&); 85 explicit CompositeEditCommand(Document&);
87 86
88 // 87 //
89 // sugary-sweet convenience functions to help create and apply edit commands 88 // sugary-sweet convenience functions to help create and apply edit commands
90 // in composite commands 89 // in composite commands
91 // 90 //
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 239
241 DEFINE_TYPE_CASTS(CompositeEditCommand, 240 DEFINE_TYPE_CASTS(CompositeEditCommand,
242 EditCommand, 241 EditCommand,
243 command, 242 command,
244 command->isCompositeEditCommand(), 243 command->isCompositeEditCommand(),
245 command.isCompositeEditCommand()); 244 command.isCompositeEditCommand());
246 245
247 } // namespace blink 246 } // namespace blink
248 247
249 #endif // CompositeEditCommand_h 248 #endif // CompositeEditCommand_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698