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

Unified Diff: third_party/WebKit/Source/core/editing/commands/EditorCommandNames.h

Issue 1841143002: Add enum class |WebEditingCommandType| for EditorCommand (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Introducing |codePointCompareIgnoringASCIICase()| Created 4 years, 8 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: third_party/WebKit/Source/core/editing/commands/EditorCommandNames.h
diff --git a/third_party/WebKit/Source/core/editing/commands/EditorCommandNames.h b/third_party/WebKit/Source/core/editing/commands/EditorCommandNames.h
new file mode 100644
index 0000000000000000000000000000000000000000..25737c8ace0ba1d2681118fd559ca9c2cdd3a685
--- /dev/null
+++ b/third_party/WebKit/Source/core/editing/commands/EditorCommandNames.h
@@ -0,0 +1,155 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef EditorCommandNames_h
+#define EditorCommandNames_h
+
+namespace blink {
+
+// Must be ordered in a case-folding manner for binary search.
+// Covered by unit tests in EditingCommandTest.cpp (not able to use static_assert)
+#define FOR_EACH_BLINK_EDITING_COMMAND_NAME(V) \
+ V(AlignCenter) \
+ V(AlignJustified) \
+ V(AlignLeft) \
+ V(AlignRight) \
+ V(BackColor) \
+ V(BackwardDelete) \
+ V(Bold) \
+ V(Copy) \
+ V(CreateLink) \
+ V(Cut) \
+ V(DefaultParagraphSeparator) \
+ V(Delete) \
+ V(DeleteBackward) \
+ V(DeleteBackwardByDecomposingPreviousCharacter) \
+ V(DeleteForward) \
+ V(DeleteToBeginningOfLine) \
+ V(DeleteToBeginningOfParagraph) \
+ V(DeleteToEndOfLine) \
+ V(DeleteToEndOfParagraph) \
+ V(DeleteToMark) \
+ V(DeleteWordBackward) \
+ V(DeleteWordForward) \
+ V(FindString) \
+ V(FontName) \
+ V(FontSize) \
+ V(FontSizeDelta) \
+ V(ForeColor) \
+ V(FormatBlock) \
+ V(ForwardDelete) \
+ V(HiliteColor) \
+ V(IgnoreSpelling) \
+ V(Indent) \
+ V(InsertBacktab) \
+ V(InsertHorizontalRule) \
+ V(InsertHTML) \
+ V(InsertImage) \
+ V(InsertLineBreak) \
+ V(InsertNewline) \
+ V(InsertNewlineInQuotedContent) \
+ V(InsertOrderedList) \
+ V(InsertParagraph) \
+ V(InsertTab) \
+ V(InsertText) \
+ V(InsertUnorderedList) \
+ V(Italic) \
+ V(JustifyCenter) \
+ V(JustifyFull) \
+ V(JustifyLeft) \
+ V(JustifyNone) \
+ V(JustifyRight) \
+ V(MakeTextWritingDirectionLeftToRight) \
+ V(MakeTextWritingDirectionNatural) \
+ V(MakeTextWritingDirectionRightToLeft) \
+ V(MoveBackward) \
+ V(MoveBackwardAndModifySelection) \
+ V(MoveDown) \
+ V(MoveDownAndModifySelection) \
+ V(MoveForward) \
+ V(MoveForwardAndModifySelection) \
+ V(MoveLeft) \
+ V(MoveLeftAndModifySelection) \
+ V(MovePageDown) \
+ V(MovePageDownAndModifySelection) \
+ V(MovePageUp) \
+ V(MovePageUpAndModifySelection) \
+ V(MoveParagraphBackward) \
+ V(MoveParagraphBackwardAndModifySelection) \
+ V(MoveParagraphForward) \
+ V(MoveParagraphForwardAndModifySelection) \
+ V(MoveRight) \
+ V(MoveRightAndModifySelection) \
+ V(MoveToBeginningOfDocument) \
+ V(MoveToBeginningOfDocumentAndModifySelection) \
+ V(MoveToBeginningOfLine) \
+ V(MoveToBeginningOfLineAndModifySelection) \
+ V(MoveToBeginningOfParagraph) \
+ V(MoveToBeginningOfParagraphAndModifySelection) \
+ V(MoveToBeginningOfSentence) \
+ V(MoveToBeginningOfSentenceAndModifySelection) \
+ V(MoveToEndOfDocument) \
+ V(MoveToEndOfDocumentAndModifySelection) \
+ V(MoveToEndOfLine) \
+ V(MoveToEndOfLineAndModifySelection) \
+ V(MoveToEndOfParagraph) \
+ V(MoveToEndOfParagraphAndModifySelection) \
+ V(MoveToEndOfSentence) \
+ V(MoveToEndOfSentenceAndModifySelection) \
+ V(MoveToLeftEndOfLine) \
+ V(MoveToLeftEndOfLineAndModifySelection) \
+ V(MoveToRightEndOfLine) \
+ V(MoveToRightEndOfLineAndModifySelection) \
+ V(MoveUp) \
+ V(MoveUpAndModifySelection) \
+ V(MoveWordBackward) \
+ V(MoveWordBackwardAndModifySelection) \
+ V(MoveWordForward) \
+ V(MoveWordForwardAndModifySelection) \
+ V(MoveWordLeft) \
+ V(MoveWordLeftAndModifySelection) \
+ V(MoveWordRight) \
+ V(MoveWordRightAndModifySelection) \
+ V(Outdent) \
+ V(OverWrite) \
+ V(Paste) \
+ V(PasteAndMatchStyle) \
+ V(PasteGlobalSelection) \
+ V(Print) \
+ V(Redo) \
+ V(RemoveFormat) \
+ V(ScrollLineDown) \
+ V(ScrollLineUp) \
+ V(ScrollPageBackward) \
+ V(ScrollPageForward) \
+ V(ScrollToBeginningOfDocument) \
+ V(ScrollToEndOfDocument) \
+ V(SelectAll) \
+ V(SelectLine) \
+ V(SelectParagraph) \
+ V(SelectSentence) \
+ V(SelectToMark) \
+ V(SelectWord) \
+ V(SetMark) \
+ V(Strikethrough) \
+ V(StyleWithCSS) \
+ V(Subscript) \
+ V(Superscript) \
+ V(SwapWithMark) \
+ V(ToggleBold) \
+ V(ToggleItalic) \
+ V(ToggleUnderline) \
+ V(Transpose) \
+ V(Underline) \
+ V(Undo) \
+ V(Unlink) \
+ V(Unscript) \
+ V(Unselect) \
+ V(UseCSS) \
+ V(Yank) \
+ V(YankAndSelect)
+
+} // namespace blink
+
+#endif // EditorCommandNames_h
« no previous file with comments | « third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp ('k') | third_party/WebKit/Source/wtf/text/StringImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698