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/DeleteSelectionCommand.h

Issue 2151353002: [InputEvent] Replace |EditAction| with |InputType| (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@inputevent-text-styling
Patch Set: Replaced |EditAction| with |InputType| Created 4 years, 5 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 return new DeleteSelectionCommand(selection, smartDelete, mergeBlocksAft erDelete, expandForSpecialElements, sanitizeMarkup); 44 return new DeleteSelectionCommand(selection, smartDelete, mergeBlocksAft erDelete, expandForSpecialElements, sanitizeMarkup);
45 } 45 }
46 46
47 DECLARE_VIRTUAL_TRACE(); 47 DECLARE_VIRTUAL_TRACE();
48 48
49 private: 49 private:
50 DeleteSelectionCommand(Document&, bool smartDelete, bool mergeBlocksAfterDel ete, bool expandForSpecialElements, bool santizeMarkup); 50 DeleteSelectionCommand(Document&, bool smartDelete, bool mergeBlocksAfterDel ete, bool expandForSpecialElements, bool santizeMarkup);
51 DeleteSelectionCommand(const VisibleSelection&, bool smartDelete, bool merge BlocksAfterDelete, bool expandForSpecialElements, bool sanitizeMarkup); 51 DeleteSelectionCommand(const VisibleSelection&, bool smartDelete, bool merge BlocksAfterDelete, bool expandForSpecialElements, bool sanitizeMarkup);
52 52
53 void doApply(EditingState*) override; 53 void doApply(EditingState*) override;
54 EditAction editingAction() const override; 54 InputEvent::InputType inputType() const override;
55 55
56 bool preservesTypingStyle() const override; 56 bool preservesTypingStyle() const override;
57 57
58 void initializeStartEnd(Position&, Position&); 58 void initializeStartEnd(Position&, Position&);
59 void setStartingSelectionOnSmartDelete(const Position&, const Position&); 59 void setStartingSelectionOnSmartDelete(const Position&, const Position&);
60 void initializePositionData(EditingState*); 60 void initializePositionData(EditingState*);
61 void saveTypingStyleState(); 61 void saveTypingStyleState();
62 bool handleSpecialCaseBRDelete(EditingState*); 62 bool handleSpecialCaseBRDelete(EditingState*);
63 void handleGeneralDelete(EditingState*); 63 void handleGeneralDelete(EditingState*);
64 void fixupWhitespace(); 64 void fixupWhitespace();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 Member<Element> m_startRoot; 96 Member<Element> m_startRoot;
97 Member<Element> m_endRoot; 97 Member<Element> m_endRoot;
98 Member<HTMLTableRowElement> m_startTableRow; 98 Member<HTMLTableRowElement> m_startTableRow;
99 Member<HTMLTableRowElement> m_endTableRow; 99 Member<HTMLTableRowElement> m_endTableRow;
100 Member<Node> m_temporaryPlaceholder; 100 Member<Node> m_temporaryPlaceholder;
101 }; 101 };
102 102
103 } // namespace blink 103 } // namespace blink
104 104
105 #endif // DeleteSelectionCommand_h 105 #endif // DeleteSelectionCommand_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698