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

Side by Side Diff: third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp

Issue 1752933002: [InputEvent] Fire 'beforeinput' during typing, pressing hot keys and IME composition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dtapuska's review, also add layout tests Created 4 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) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
4 * Copyright (C) 2009 Igalia S.L. 4 * Copyright (C) 2009 Igalia S.L.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 #include "platform/scroll/Scrollbar.h" 65 #include "platform/scroll/Scrollbar.h"
66 #include "public/platform/Platform.h" 66 #include "public/platform/Platform.h"
67 #include "wtf/text/AtomicString.h" 67 #include "wtf/text/AtomicString.h"
68 68
69 namespace blink { 69 namespace blink {
70 70
71 using namespace HTMLNames; 71 using namespace HTMLNames;
72 72
73 class EditorInternalCommand { 73 class EditorInternalCommand {
74 public: 74 public:
75 const char* commandName;
75 int idForUserMetrics; 76 int idForUserMetrics;
yosin_UTC9 2016/03/15 08:32:32 I think we should have a field to specify whether
76 bool (*execute)(LocalFrame&, Event*, EditorCommandSource, const String&); 77 bool (*execute)(LocalFrame&, Event*, EditorCommandSource, const String&);
77 bool (*isSupportedFromDOM)(LocalFrame*); 78 bool (*isSupportedFromDOM)(LocalFrame*);
78 bool (*isEnabled)(LocalFrame&, Event*, EditorCommandSource); 79 bool (*isEnabled)(LocalFrame&, Event*, EditorCommandSource);
79 TriState (*state)(LocalFrame&, Event*); 80 TriState (*state)(LocalFrame&, Event*);
80 String (*value)(LocalFrame&, Event*); 81 String (*value)(LocalFrame&, Event*);
81 bool isTextInsertion; 82 bool isTextInsertion;
82 // TODO(yosin) We should have |canExecute()|, which checks clipboard 83 // TODO(yosin) We should have |canExecute()|, which checks clipboard
83 // accessibility to simplify |Editor::Command::execute()|. 84 // accessibility to simplify |Editor::Command::execute()|.
84 bool allowExecutionWhenDisabled; 85 bool allowExecutionWhenDisabled;
85 }; 86 };
(...skipping 1386 matching lines...) Expand 10 before | Expand all | Expand 10 after
1472 if (!selection.isNonOrphanedCaretOrRange() || !selection.isContentEditable() ) 1473 if (!selection.isNonOrphanedCaretOrRange() || !selection.isContentEditable() )
1473 return ""; 1474 return "";
1474 Element* formatBlockElement = FormatBlockCommand::elementForFormatBlockComma nd(firstRangeOf(selection).get()); 1475 Element* formatBlockElement = FormatBlockCommand::elementForFormatBlockComma nd(firstRangeOf(selection).get());
1475 if (!formatBlockElement) 1476 if (!formatBlockElement)
1476 return ""; 1477 return "";
1477 return formatBlockElement->localName(); 1478 return formatBlockElement->localName();
1478 } 1479 }
1479 1480
1480 // Map of functions 1481 // Map of functions
1481 1482
1482 struct CommandEntry {
1483 const char* name;
1484 EditorInternalCommand command;
1485 };
1486
1487 static const CommandMap& createCommandMap() 1483 static const CommandMap& createCommandMap()
1488 { 1484 {
1489 // If you add new commands, you should assign new Id to each idForUserMetric s and update MappedEditingCommands 1485 // If you add new commands, you should assign new Id to each idForUserMetric s and update MappedEditingCommands
1490 // in chrome/trunk/src/tools/metrics/histograms/histograms.xml. 1486 // in chrome/trunk/src/tools/metrics/histograms/histograms.xml.
1491 static const CommandEntry commands[] = { 1487 static const EditorInternalCommand commands[] = {
1492 { "AlignCenter", {139, executeJustifyCenter, supportedFromMenuOrKeyBindi ng, enabledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAl lowExecutionWhenDisabled } }, 1488 { "AlignCenter", 139, executeJustifyCenter, supportedFromMenuOrKeyBindin g, enabledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAll owExecutionWhenDisabled },
1493 { "AlignJustified", {1, executeJustifyFull, supportedFromMenuOrKeyBindin g, enabledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAll owExecutionWhenDisabled } }, 1489 { "AlignJustified", 1, executeJustifyFull, supportedFromMenuOrKeyBinding , enabledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAllo wExecutionWhenDisabled },
1494 { "AlignLeft", {2, executeJustifyLeft, supportedFromMenuOrKeyBinding, en abledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExe cutionWhenDisabled } }, 1490 { "AlignLeft", 2, executeJustifyLeft, supportedFromMenuOrKeyBinding, ena bledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExec utionWhenDisabled },
1495 { "AlignRight", {3, executeJustifyRight, supportedFromMenuOrKeyBinding, enabledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAllowE xecutionWhenDisabled } }, 1491 { "AlignRight", 3, executeJustifyRight, supportedFromMenuOrKeyBinding, e nabledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAllowEx ecutionWhenDisabled },
1496 { "BackColor", {4, executeBackColor, supported, enabledInRichlyEditableT ext, stateNone, valueBackColor, notTextInsertion, doNotAllowExecutionWhenDisable d } }, 1492 { "BackColor", 4, executeBackColor, supported, enabledInRichlyEditableTe xt, stateNone, valueBackColor, notTextInsertion, doNotAllowExecutionWhenDisabled },
1497 { "BackwardDelete", {5, executeDeleteBackward, supportedFromMenuOrKeyBin ding, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowE xecutionWhenDisabled } }, // FIXME: remove BackwardDelete when Safari for Window s stops using it. 1493 { "BackwardDelete", 5, executeDeleteBackward, supportedFromMenuOrKeyBind ing, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowEx ecutionWhenDisabled }, // FIXME: remove BackwardDelete when Safari for Windows s tops using it.
1498 { "Bold", {6, executeToggleBold, supported, enabledInRichlyEditableText, stateBold, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1494 { "Bold", 6, executeToggleBold, supported, enabledInRichlyEditableText, stateBold, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1499 { "Copy", {7, executeCopy, supported, enabledCopy, stateNone, valueNull, notTextInsertion, allowExecutionWhenDisabled } }, 1495 { "Copy", 7, executeCopy, supported, enabledCopy, stateNone, valueNull, notTextInsertion, allowExecutionWhenDisabled },
1500 { "CreateLink", {8, executeCreateLink, supported, enabledInRichlyEditabl eText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1496 { "CreateLink", 8, executeCreateLink, supported, enabledInRichlyEditable Text, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1501 { "Cut", {9, executeCut, supported, enabledCut, stateNone, valueNull, no tTextInsertion, allowExecutionWhenDisabled } }, 1497 { "Cut", 9, executeCut, supported, enabledCut, stateNone, valueNull, not TextInsertion, allowExecutionWhenDisabled },
1502 { "DefaultParagraphSeparator", {10, executeDefaultParagraphSeparator, su pported, enabled, stateNone, valueDefaultParagraphSeparator, notTextInsertion, d oNotAllowExecutionWhenDisabled} }, 1498 { "DefaultParagraphSeparator", 10, executeDefaultParagraphSeparator, sup ported, enabled, stateNone, valueDefaultParagraphSeparator, notTextInsertion, do NotAllowExecutionWhenDisabled },
1503 { "Delete", {11, executeDelete, supported, enabledDelete, stateNone, val ueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1499 { "Delete", 11, executeDelete, supported, enabledDelete, stateNone, valu eNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1504 { "DeleteBackward", {12, executeDeleteBackward, supportedFromMenuOrKeyBi nding, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllow ExecutionWhenDisabled } }, 1500 { "DeleteBackward", 12, executeDeleteBackward, supportedFromMenuOrKeyBin ding, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowE xecutionWhenDisabled },
1505 { "DeleteBackwardByDecomposingPreviousCharacter", {13, executeDeleteBack wardByDecomposingPreviousCharacter, supportedFromMenuOrKeyBinding, enabledInEdit ableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisable d } }, 1501 { "DeleteBackwardByDecomposingPreviousCharacter", 13, executeDeleteBackw ardByDecomposingPreviousCharacter, supportedFromMenuOrKeyBinding, enabledInEdita bleText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1506 { "DeleteForward", {14, executeDeleteForward, supportedFromMenuOrKeyBind ing, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowEx ecutionWhenDisabled } }, 1502 { "DeleteForward", 14, executeDeleteForward, supportedFromMenuOrKeyBindi ng, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExe cutionWhenDisabled },
1507 { "DeleteToBeginningOfLine", {15, executeDeleteToBeginningOfLine, suppor tedFromMenuOrKeyBinding, enabledInEditableText, stateNone, valueNull, notTextIns ertion, doNotAllowExecutionWhenDisabled } }, 1503 { "DeleteToBeginningOfLine", 15, executeDeleteToBeginningOfLine, support edFromMenuOrKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInse rtion, doNotAllowExecutionWhenDisabled },
1508 { "DeleteToBeginningOfParagraph", {16, executeDeleteToBeginningOfParagra ph, supportedFromMenuOrKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1504 { "DeleteToBeginningOfParagraph", 16, executeDeleteToBeginningOfParagrap h, supportedFromMenuOrKeyBinding, enabledInEditableText, stateNone, valueNull, n otTextInsertion, doNotAllowExecutionWhenDisabled },
1509 { "DeleteToEndOfLine", {17, executeDeleteToEndOfLine, supportedFromMenuO rKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNo tAllowExecutionWhenDisabled } }, 1505 { "DeleteToEndOfLine", 17, executeDeleteToEndOfLine, supportedFromMenuOr KeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNot AllowExecutionWhenDisabled },
1510 { "DeleteToEndOfParagraph", {18, executeDeleteToEndOfParagraph, supporte dFromMenuOrKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInser tion, doNotAllowExecutionWhenDisabled } }, 1506 { "DeleteToEndOfParagraph", 18, executeDeleteToEndOfParagraph, supported FromMenuOrKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsert ion, doNotAllowExecutionWhenDisabled },
1511 { "DeleteToMark", {19, executeDeleteToMark, supportedFromMenuOrKeyBindin g, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExec utionWhenDisabled } }, 1507 { "DeleteToMark", 19, executeDeleteToMark, supportedFromMenuOrKeyBinding , enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExecu tionWhenDisabled },
1512 { "DeleteWordBackward", {20, executeDeleteWordBackward, supportedFromMen uOrKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsertion, do NotAllowExecutionWhenDisabled } }, 1508 { "DeleteWordBackward", 20, executeDeleteWordBackward, supportedFromMenu OrKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsertion, doN otAllowExecutionWhenDisabled },
1513 { "DeleteWordForward", {21, executeDeleteWordForward, supportedFromMenuO rKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNo tAllowExecutionWhenDisabled } }, 1509 { "DeleteWordForward", 21, executeDeleteWordForward, supportedFromMenuOr KeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNot AllowExecutionWhenDisabled },
1514 { "FindString", {22, executeFindString, supported, enabled, stateNone, v alueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1510 { "FindString", 22, executeFindString, supported, enabled, stateNone, va lueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1515 { "FontName", {23, executeFontName, supported, enabledInEditableText, st ateNone, valueFontName, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1511 { "FontName", 23, executeFontName, supported, enabledInEditableText, sta teNone, valueFontName, notTextInsertion, doNotAllowExecutionWhenDisabled },
1516 { "FontSize", {24, executeFontSize, supported, enabledInEditableText, st ateNone, valueFontSize, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1512 { "FontSize", 24, executeFontSize, supported, enabledInEditableText, sta teNone, valueFontSize, notTextInsertion, doNotAllowExecutionWhenDisabled },
1517 { "FontSizeDelta", {25, executeFontSizeDelta, supported, enabledInEditab leText, stateNone, valueFontSizeDelta, notTextInsertion, doNotAllowExecutionWhen Disabled } }, 1513 { "FontSizeDelta", 25, executeFontSizeDelta, supported, enabledInEditabl eText, stateNone, valueFontSizeDelta, notTextInsertion, doNotAllowExecutionWhenD isabled },
1518 { "ForeColor", {26, executeForeColor, supported, enabledInRichlyEditable Text, stateNone, valueForeColor, notTextInsertion, doNotAllowExecutionWhenDisabl ed } }, 1514 { "ForeColor", 26, executeForeColor, supported, enabledInRichlyEditableT ext, stateNone, valueForeColor, notTextInsertion, doNotAllowExecutionWhenDisable d },
1519 { "FormatBlock", {27, executeFormatBlock, supported, enabledInRichlyEdit ableText, stateNone, valueFormatBlock, notTextInsertion, doNotAllowExecutionWhen Disabled } }, 1515 { "FormatBlock", 27, executeFormatBlock, supported, enabledInRichlyEdita bleText, stateNone, valueFormatBlock, notTextInsertion, doNotAllowExecutionWhenD isabled },
1520 { "ForwardDelete", {28, executeForwardDelete, supported, enabledInEditab leText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1516 { "ForwardDelete", 28, executeForwardDelete, supported, enabledInEditabl eText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } ,
1521 { "HiliteColor", {29, executeBackColor, supported, enabledInRichlyEditab leText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1517 { "HiliteColor", 29, executeBackColor, supported, enabledInRichlyEditabl eText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } ,
1522 { "IgnoreSpelling", {30, executeIgnoreSpelling, supportedFromMenuOrKeyBi nding, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllow ExecutionWhenDisabled } }, 1518 { "IgnoreSpelling", 30, executeIgnoreSpelling, supportedFromMenuOrKeyBin ding, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowE xecutionWhenDisabled },
1523 { "Indent", {31, executeIndent, supported, enabledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1519 { "Indent", 31, executeIndent, supported, enabledInRichlyEditableText, s tateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1524 { "InsertBacktab", {32, executeInsertBacktab, supportedFromMenuOrKeyBind ing, enabledInEditableText, stateNone, valueNull, isTextInsertion, doNotAllowExe cutionWhenDisabled } }, 1520 { "InsertBacktab", 32, executeInsertBacktab, supportedFromMenuOrKeyBindi ng, enabledInEditableText, stateNone, valueNull, isTextInsertion, doNotAllowExec utionWhenDisabled },
1525 { "InsertHTML", {33, executeInsertHTML, supported, enabledInEditableText , stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1521 { "InsertHTML", 33, executeInsertHTML, supported, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1526 { "InsertHorizontalRule", {34, executeInsertHorizontalRule, supported, e nabledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAllowEx ecutionWhenDisabled } }, 1522 { "InsertHorizontalRule", 34, executeInsertHorizontalRule, supported, en abledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExe cutionWhenDisabled },
1527 { "InsertImage", {35, executeInsertImage, supported, enabledInRichlyEdit ableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisable d } }, 1523 { "InsertImage", 35, executeInsertImage, supported, enabledInRichlyEdita bleText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1528 { "InsertLineBreak", {36, executeInsertLineBreak, supported, enabledInEd itableText, stateNone, valueNull, isTextInsertion, doNotAllowExecutionWhenDisabl ed } }, 1524 { "InsertLineBreak", 36, executeInsertLineBreak, supported, enabledInEdi tableText, stateNone, valueNull, isTextInsertion, doNotAllowExecutionWhenDisable d },
1529 { "InsertNewline", {37, executeInsertNewline, supportedFromMenuOrKeyBind ing, enabledInEditableText, stateNone, valueNull, isTextInsertion, doNotAllowExe cutionWhenDisabled } }, 1525 { "InsertNewline", 37, executeInsertNewline, supportedFromMenuOrKeyBindi ng, enabledInEditableText, stateNone, valueNull, isTextInsertion, doNotAllowExec utionWhenDisabled },
1530 { "InsertNewlineInQuotedContent", {38, executeInsertNewlineInQuotedConte nt, supported, enabledInRichlyEditableText, stateNone, valueNull, notTextInserti on, doNotAllowExecutionWhenDisabled } }, 1526 { "InsertNewlineInQuotedContent", 38, executeInsertNewlineInQuotedConten t, supported, enabledInRichlyEditableText, stateNone, valueNull, notTextInsertio n, doNotAllowExecutionWhenDisabled },
1531 { "InsertOrderedList", {39, executeInsertOrderedList, supported, enabled InRichlyEditableText, stateOrderedList, valueNull, notTextInsertion, doNotAllowE xecutionWhenDisabled } }, 1527 { "InsertOrderedList", 39, executeInsertOrderedList, supported, enabledI nRichlyEditableText, stateOrderedList, valueNull, notTextInsertion, doNotAllowEx ecutionWhenDisabled },
1532 { "InsertParagraph", {40, executeInsertParagraph, supported, enabledInEd itableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisab led } }, 1528 { "InsertParagraph", 40, executeInsertParagraph, supported, enabledInEdi tableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabl ed },
1533 { "InsertTab", {41, executeInsertTab, supportedFromMenuOrKeyBinding, ena bledInEditableText, stateNone, valueNull, isTextInsertion, doNotAllowExecutionWh enDisabled } }, 1529 { "InsertTab", 41, executeInsertTab, supportedFromMenuOrKeyBinding, enab ledInEditableText, stateNone, valueNull, isTextInsertion, doNotAllowExecutionWhe nDisabled },
1534 { "InsertText", {42, executeInsertText, supported, enabledInEditableText , stateNone, valueNull, isTextInsertion, doNotAllowExecutionWhenDisabled } }, 1530 { "InsertText", 42, executeInsertText, supported, enabledInEditableText, stateNone, valueNull, isTextInsertion, doNotAllowExecutionWhenDisabled },
1535 { "InsertUnorderedList", {43, executeInsertUnorderedList, supported, ena bledInRichlyEditableText, stateUnorderedList, valueNull, notTextInsertion, doNot AllowExecutionWhenDisabled } }, 1531 { "InsertUnorderedList", 43, executeInsertUnorderedList, supported, enab ledInRichlyEditableText, stateUnorderedList, valueNull, notTextInsertion, doNotA llowExecutionWhenDisabled },
1536 { "Italic", {44, executeToggleItalic, supported, enabledInRichlyEditable Text, stateItalic, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1532 { "Italic", 44, executeToggleItalic, supported, enabledInRichlyEditableT ext, stateItalic, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } ,
1537 { "JustifyCenter", {45, executeJustifyCenter, supported, enabledInRichly EditableText, stateJustifyCenter, valueNull, notTextInsertion, doNotAllowExecuti onWhenDisabled } }, 1533 { "JustifyCenter", 45, executeJustifyCenter, supported, enabledInRichlyE ditableText, stateJustifyCenter, valueNull, notTextInsertion, doNotAllowExecutio nWhenDisabled },
1538 { "JustifyFull", {46, executeJustifyFull, supported, enabledInRichlyEdit ableText, stateJustifyFull, valueNull, notTextInsertion, doNotAllowExecutionWhen Disabled } }, 1534 { "JustifyFull", 46, executeJustifyFull, supported, enabledInRichlyEdita bleText, stateJustifyFull, valueNull, notTextInsertion, doNotAllowExecutionWhenD isabled },
1539 { "JustifyLeft", {47, executeJustifyLeft, supported, enabledInRichlyEdit ableText, stateJustifyLeft, valueNull, notTextInsertion, doNotAllowExecutionWhen Disabled } }, 1535 { "JustifyLeft", 47, executeJustifyLeft, supported, enabledInRichlyEdita bleText, stateJustifyLeft, valueNull, notTextInsertion, doNotAllowExecutionWhenD isabled },
1540 { "JustifyNone", {48, executeJustifyLeft, supported, enabledInRichlyEdit ableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisable d } }, 1536 { "JustifyNone", 48, executeJustifyLeft, supported, enabledInRichlyEdita bleText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1541 { "JustifyRight", {49, executeJustifyRight, supported, enabledInRichlyEd itableText, stateJustifyRight, valueNull, notTextInsertion, doNotAllowExecutionW henDisabled } }, 1537 { "JustifyRight", 49, executeJustifyRight, supported, enabledInRichlyEdi tableText, stateJustifyRight, valueNull, notTextInsertion, doNotAllowExecutionWh enDisabled },
1542 { "MakeTextWritingDirectionLeftToRight", {50, executeMakeTextWritingDire ctionLeftToRight, supportedFromMenuOrKeyBinding, enabledInRichlyEditableText, st ateTextWritingDirectionLeftToRight, valueNull, notTextInsertion, doNotAllowExecu tionWhenDisabled } }, 1538 { "MakeTextWritingDirectionLeftToRight", 50, executeMakeTextWritingDirec tionLeftToRight, supportedFromMenuOrKeyBinding, enabledInRichlyEditableText, sta teTextWritingDirectionLeftToRight, valueNull, notTextInsertion, doNotAllowExecut ionWhenDisabled },
1543 { "MakeTextWritingDirectionNatural", {51, executeMakeTextWritingDirectio nNatural, supportedFromMenuOrKeyBinding, enabledInRichlyEditableText, stateTextW ritingDirectionNatural, valueNull, notTextInsertion, doNotAllowExecutionWhenDisa bled } }, 1539 { "MakeTextWritingDirectionNatural", 51, executeMakeTextWritingDirection Natural, supportedFromMenuOrKeyBinding, enabledInRichlyEditableText, stateTextWr itingDirectionNatural, valueNull, notTextInsertion, doNotAllowExecutionWhenDisab led },
1544 { "MakeTextWritingDirectionRightToLeft", {52, executeMakeTextWritingDire ctionRightToLeft, supportedFromMenuOrKeyBinding, enabledInRichlyEditableText, st ateTextWritingDirectionRightToLeft, valueNull, notTextInsertion, doNotAllowExecu tionWhenDisabled } }, 1540 { "MakeTextWritingDirectionRightToLeft", 52, executeMakeTextWritingDirec tionRightToLeft, supportedFromMenuOrKeyBinding, enabledInRichlyEditableText, sta teTextWritingDirectionRightToLeft, valueNull, notTextInsertion, doNotAllowExecut ionWhenDisabled },
1545 { "MoveBackward", {53, executeMoveBackward, supportedFromMenuOrKeyBindin g, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1541 { "MoveBackward", 53, executeMoveBackward, supportedFromMenuOrKeyBinding , enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1546 { "MoveBackwardAndModifySelection", {54, executeMoveBackwardAndModifySel ection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, s tateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1542 { "MoveBackwardAndModifySelection", 54, executeMoveBackwardAndModifySele ction, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, st ateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1547 { "MoveDown", {55, executeMoveDown, supportedFromMenuOrKeyBinding, enabl edInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAl lowExecutionWhenDisabled } }, 1543 { "MoveDown", 55, executeMoveDown, supportedFromMenuOrKeyBinding, enable dInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAll owExecutionWhenDisabled },
1548 { "MoveDownAndModifySelection", {56, executeMoveDownAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, stateNone , valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1544 { "MoveDownAndModifySelection", 56, executeMoveDownAndModifySelection, s upportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1549 { "MoveForward", {57, executeMoveForward, supportedFromMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, d oNotAllowExecutionWhenDisabled } }, 1545 { "MoveForward", 57, executeMoveForward, supportedFromMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, do NotAllowExecutionWhenDisabled },
1550 { "MoveForwardAndModifySelection", {58, executeMoveForwardAndModifySelec tion, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, sta teNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1546 { "MoveForwardAndModifySelection", 58, executeMoveForwardAndModifySelect ion, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, stat eNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1551 { "MoveLeft", {59, executeMoveLeft, supportedFromMenuOrKeyBinding, enabl edInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAl lowExecutionWhenDisabled } }, 1547 { "MoveLeft", 59, executeMoveLeft, supportedFromMenuOrKeyBinding, enable dInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAll owExecutionWhenDisabled },
1552 { "MoveLeftAndModifySelection", {60, executeMoveLeftAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, stateNone , valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1548 { "MoveLeftAndModifySelection", 60, executeMoveLeftAndModifySelection, s upportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1553 { "MovePageDown", {61, executeMovePageDown, supportedFromMenuOrKeyBindin g, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExec utionWhenDisabled } }, 1549 { "MovePageDown", 61, executeMovePageDown, supportedFromMenuOrKeyBinding , enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExecu tionWhenDisabled },
1554 { "MovePageDownAndModifySelection", {62, executeMovePageDownAndModifySel ection, supportedFromMenuOrKeyBinding, enabledVisibleSelection, stateNone, value Null, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1550 { "MovePageDownAndModifySelection", 62, executeMovePageDownAndModifySele ction, supportedFromMenuOrKeyBinding, enabledVisibleSelection, stateNone, valueN ull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1555 { "MovePageUp", {63, executeMovePageUp, supportedFromMenuOrKeyBinding, e nabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutio nWhenDisabled } }, 1551 { "MovePageUp", 63, executeMovePageUp, supportedFromMenuOrKeyBinding, en abledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExecution WhenDisabled },
1556 { "MovePageUpAndModifySelection", {64, executeMovePageUpAndModifySelecti on, supportedFromMenuOrKeyBinding, enabledVisibleSelection, stateNone, valueNull , notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1552 { "MovePageUpAndModifySelection", 64, executeMovePageUpAndModifySelectio n, supportedFromMenuOrKeyBinding, enabledVisibleSelection, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1557 { "MoveParagraphBackward", {65, executeMoveParagraphBackward, supportedF romMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1553 { "MoveParagraphBackward", 65, executeMoveParagraphBackward, supportedFr omMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1558 { "MoveParagraphBackwardAndModifySelection", {66, executeMoveParagraphBa ckwardAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelection OrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhen Disabled } }, 1554 { "MoveParagraphBackwardAndModifySelection", 66, executeMoveParagraphBac kwardAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionO rCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenD isabled },
1559 { "MoveParagraphForward", {67, executeMoveParagraphForward, supportedFro mMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, n otTextInsertion, doNotAllowExecutionWhenDisabled } }, 1555 { "MoveParagraphForward", 67, executeMoveParagraphForward, supportedFrom MenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, no tTextInsertion, doNotAllowExecutionWhenDisabled },
1560 { "MoveParagraphForwardAndModifySelection", {68, executeMoveParagraphFor wardAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOr CaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDi sabled } }, 1556 { "MoveParagraphForwardAndModifySelection", 68, executeMoveParagraphForw ardAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrC aretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDis abled },
1561 { "MoveRight", {69, executeMoveRight, supportedFromMenuOrKeyBinding, ena bledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNot AllowExecutionWhenDisabled } }, 1557 { "MoveRight", 69, executeMoveRight, supportedFromMenuOrKeyBinding, enab ledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotA llowExecutionWhenDisabled },
1562 { "MoveRightAndModifySelection", {70, executeMoveRightAndModifySelection , supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, stateNo ne, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1558 { "MoveRightAndModifySelection", 70, executeMoveRightAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, stateNon e, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1563 { "MoveToBeginningOfDocument", {71, executeMoveToBeginningOfDocument, su pportedFromMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, va lueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1559 { "MoveToBeginningOfDocument", 71, executeMoveToBeginningOfDocument, sup portedFromMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, val ueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1564 { "MoveToBeginningOfDocumentAndModifySelection", {72, executeMoveToBegin ningOfDocumentAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleS electionOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecu tionWhenDisabled } }, 1560 { "MoveToBeginningOfDocumentAndModifySelection", 72, executeMoveToBeginn ingOfDocumentAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSe lectionOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecut ionWhenDisabled },
1565 { "MoveToBeginningOfLine", {73, executeMoveToBeginningOfLine, supportedF romMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1561 { "MoveToBeginningOfLine", 73, executeMoveToBeginningOfLine, supportedFr omMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1566 { "MoveToBeginningOfLineAndModifySelection", {74, executeMoveToBeginning OfLineAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelection OrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhen Disabled } }, 1562 { "MoveToBeginningOfLineAndModifySelection", 74, executeMoveToBeginningO fLineAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionO rCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenD isabled },
1567 { "MoveToBeginningOfParagraph", {75, executeMoveToBeginningOfParagraph, supportedFromMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1563 { "MoveToBeginningOfParagraph", 75, executeMoveToBeginningOfParagraph, s upportedFromMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, v alueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1568 { "MoveToBeginningOfParagraphAndModifySelection", {76, executeMoveToBegi nningOfParagraphAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibl eSelectionOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExe cutionWhenDisabled } }, 1564 { "MoveToBeginningOfParagraphAndModifySelection", 76, executeMoveToBegin ningOfParagraphAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisible SelectionOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExec utionWhenDisabled },
1569 { "MoveToBeginningOfSentence", {77, executeMoveToBeginningOfSentence, su pportedFromMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, va lueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1565 { "MoveToBeginningOfSentence", 77, executeMoveToBeginningOfSentence, sup portedFromMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, val ueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1570 { "MoveToBeginningOfSentenceAndModifySelection", {78, executeMoveToBegin ningOfSentenceAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleS electionOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecu tionWhenDisabled } }, 1566 { "MoveToBeginningOfSentenceAndModifySelection", 78, executeMoveToBeginn ingOfSentenceAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSe lectionOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecut ionWhenDisabled },
1571 { "MoveToEndOfDocument", {79, executeMoveToEndOfDocument, supportedFromM enuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, not TextInsertion, doNotAllowExecutionWhenDisabled } }, 1567 { "MoveToEndOfDocument", 79, executeMoveToEndOfDocument, supportedFromMe nuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notT extInsertion, doNotAllowExecutionWhenDisabled },
1572 { "MoveToEndOfDocumentAndModifySelection", {80, executeMoveToEndOfDocume ntAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCa retBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisa bled } }, 1568 { "MoveToEndOfDocumentAndModifySelection", 80, executeMoveToEndOfDocumen tAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCar etBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisab led },
1573 { "MoveToEndOfLine", {81, executeMoveToEndOfLine, supportedFromMenuOrKey Binding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInse rtion, doNotAllowExecutionWhenDisabled } }, 1569 { "MoveToEndOfLine", 81, executeMoveToEndOfLine, supportedFromMenuOrKeyB inding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInser tion, doNotAllowExecutionWhenDisabled },
1574 { "MoveToEndOfLineAndModifySelection", {82, executeMoveToEndOfLineAndMod ifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrows ing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } } , 1570 { "MoveToEndOfLineAndModifySelection", 82, executeMoveToEndOfLineAndModi fySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsi ng, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1575 { "MoveToEndOfParagraph", {83, executeMoveToEndOfParagraph, supportedFro mMenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, n otTextInsertion, doNotAllowExecutionWhenDisabled } }, 1571 { "MoveToEndOfParagraph", 83, executeMoveToEndOfParagraph, supportedFrom MenuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, no tTextInsertion, doNotAllowExecutionWhenDisabled },
1576 { "MoveToEndOfParagraphAndModifySelection", {84, executeMoveToEndOfParag raphAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOr CaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDi sabled } }, 1572 { "MoveToEndOfParagraphAndModifySelection", 84, executeMoveToEndOfParagr aphAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrC aretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDis abled },
1577 { "MoveToEndOfSentence", {85, executeMoveToEndOfSentence, supportedFromM enuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, not TextInsertion, doNotAllowExecutionWhenDisabled } }, 1573 { "MoveToEndOfSentence", 85, executeMoveToEndOfSentence, supportedFromMe nuOrKeyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notT extInsertion, doNotAllowExecutionWhenDisabled },
1578 { "MoveToEndOfSentenceAndModifySelection", {86, executeMoveToEndOfSenten ceAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCa retBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisa bled } }, 1574 { "MoveToEndOfSentenceAndModifySelection", 86, executeMoveToEndOfSentenc eAndModifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCar etBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisab led },
1579 { "MoveToLeftEndOfLine", {87, executeMoveToLeftEndOfLine, supportedFromM enuOrKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1575 { "MoveToLeftEndOfLine", 87, executeMoveToLeftEndOfLine, supportedFromMe nuOrKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsertion, d oNotAllowExecutionWhenDisabled },
1580 { "MoveToLeftEndOfLineAndModifySelection", {88, executeMoveToLeftEndOfLi neAndModifySelection, supportedFromMenuOrKeyBinding, enabledInEditableText, stat eNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1576 { "MoveToLeftEndOfLineAndModifySelection", 88, executeMoveToLeftEndOfLin eAndModifySelection, supportedFromMenuOrKeyBinding, enabledInEditableText, state None, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1581 { "MoveToRightEndOfLine", {89, executeMoveToRightEndOfLine, supportedFro mMenuOrKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsertion , doNotAllowExecutionWhenDisabled } }, 1577 { "MoveToRightEndOfLine", 89, executeMoveToRightEndOfLine, supportedFrom MenuOrKeyBinding, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1582 { "MoveToRightEndOfLineAndModifySelection", {90, executeMoveToRightEndOf LineAndModifySelection, supportedFromMenuOrKeyBinding, enabledInEditableText, st ateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1578 { "MoveToRightEndOfLineAndModifySelection", 90, executeMoveToRightEndOfL ineAndModifySelection, supportedFromMenuOrKeyBinding, enabledInEditableText, sta teNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1583 { "MoveUp", {91, executeMoveUp, supportedFromMenuOrKeyBinding, enabledIn EditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowE xecutionWhenDisabled } }, 1579 { "MoveUp", 91, executeMoveUp, supportedFromMenuOrKeyBinding, enabledInE ditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowEx ecutionWhenDisabled },
1584 { "MoveUpAndModifySelection", {92, executeMoveUpAndModifySelection, supp ortedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, stateNone, va lueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1580 { "MoveUpAndModifySelection", 92, executeMoveUpAndModifySelection, suppo rtedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, stateNone, val ueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1585 { "MoveWordBackward", {93, executeMoveWordBackward, supportedFromMenuOrK eyBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextIn sertion, doNotAllowExecutionWhenDisabled } }, 1581 { "MoveWordBackward", 93, executeMoveWordBackward, supportedFromMenuOrKe yBinding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextIns ertion, doNotAllowExecutionWhenDisabled },
1586 { "MoveWordBackwardAndModifySelection", {94, executeMoveWordBackwardAndM odifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBro wsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1582 { "MoveWordBackwardAndModifySelection", 94, executeMoveWordBackwardAndMo difySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrow sing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1587 { "MoveWordForward", {95, executeMoveWordForward, supportedFromMenuOrKey Binding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInse rtion, doNotAllowExecutionWhenDisabled } }, 1583 { "MoveWordForward", 95, executeMoveWordForward, supportedFromMenuOrKeyB inding, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInser tion, doNotAllowExecutionWhenDisabled },
1588 { "MoveWordForwardAndModifySelection", {96, executeMoveWordForwardAndMod ifySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrows ing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } } , 1584 { "MoveWordForwardAndModifySelection", 96, executeMoveWordForwardAndModi fySelection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsi ng, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1589 { "MoveWordLeft", {97, executeMoveWordLeft, supportedFromMenuOrKeyBindin g, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1585 { "MoveWordLeft", 97, executeMoveWordLeft, supportedFromMenuOrKeyBinding , enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1590 { "MoveWordLeftAndModifySelection", {98, executeMoveWordLeftAndModifySel ection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, s tateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1586 { "MoveWordLeftAndModifySelection", 98, executeMoveWordLeftAndModifySele ction, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, st ateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1591 { "MoveWordRight", {99, executeMoveWordRight, supportedFromMenuOrKeyBind ing, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertio n, doNotAllowExecutionWhenDisabled } }, 1587 { "MoveWordRight", 99, executeMoveWordRight, supportedFromMenuOrKeyBindi ng, enabledInEditableTextOrCaretBrowsing, stateNone, valueNull, notTextInsertion , doNotAllowExecutionWhenDisabled },
1592 { "MoveWordRightAndModifySelection", {100, executeMoveWordRightAndModify Selection, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing , stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1588 { "MoveWordRightAndModifySelection", 100, executeMoveWordRightAndModifyS election, supportedFromMenuOrKeyBinding, enabledVisibleSelectionOrCaretBrowsing, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1593 { "Outdent", {101, executeOutdent, supported, enabledInRichlyEditableTex t, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1589 { "Outdent", 101, executeOutdent, supported, enabledInRichlyEditableText , stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1594 { "OverWrite", {102, executeToggleOverwrite, supportedFromMenuOrKeyBindi ng, enabledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAl lowExecutionWhenDisabled } }, 1590 { "OverWrite", 102, executeToggleOverwrite, supportedFromMenuOrKeyBindin g, enabledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAll owExecutionWhenDisabled },
1595 { "Paste", {103, executePaste, supported, enabledPaste, stateNone, value Null, notTextInsertion, allowExecutionWhenDisabled } }, 1591 { "Paste", 103, executePaste, supported, enabledPaste, stateNone, valueN ull, notTextInsertion, allowExecutionWhenDisabled },
1596 { "PasteAndMatchStyle", {104, executePasteAndMatchStyle, supported, enab ledPaste, stateNone, valueNull, notTextInsertion, allowExecutionWhenDisabled } } , 1592 { "PasteAndMatchStyle", 104, executePasteAndMatchStyle, supported, enabl edPaste, stateNone, valueNull, notTextInsertion, allowExecutionWhenDisabled },
1597 { "PasteGlobalSelection", {105, executePasteGlobalSelection, supportedFr omMenuOrKeyBinding, enabledPaste, stateNone, valueNull, notTextInsertion, allowE xecutionWhenDisabled } }, 1593 { "PasteGlobalSelection", 105, executePasteGlobalSelection, supportedFro mMenuOrKeyBinding, enabledPaste, stateNone, valueNull, notTextInsertion, allowEx ecutionWhenDisabled },
1598 { "Print", {106, executePrint, supported, enabled, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1594 { "Print", 106, executePrint, supported, enabled, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1599 { "Redo", {107, executeRedo, supported, enabledRedo, stateNone, valueNul l, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1595 { "Redo", 107, executeRedo, supported, enabledRedo, stateNone, valueNull , notTextInsertion, doNotAllowExecutionWhenDisabled },
1600 { "RemoveFormat", {108, executeRemoveFormat, supported, enabledRangeInEd itableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisab led } }, 1596 { "RemoveFormat", 108, executeRemoveFormat, supported, enabledRangeInEdi tableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabl ed },
1601 { "ScrollPageBackward", {109, executeScrollPageBackward, supportedFromMe nuOrKeyBinding, enabled, stateNone, valueNull, notTextInsertion, doNotAllowExecu tionWhenDisabled } }, 1597 { "ScrollPageBackward", 109, executeScrollPageBackward, supportedFromMen uOrKeyBinding, enabled, stateNone, valueNull, notTextInsertion, doNotAllowExecut ionWhenDisabled },
1602 { "ScrollPageForward", {110, executeScrollPageForward, supportedFromMenu OrKeyBinding, enabled, stateNone, valueNull, notTextInsertion, doNotAllowExecuti onWhenDisabled } }, 1598 { "ScrollPageForward", 110, executeScrollPageForward, supportedFromMenuO rKeyBinding, enabled, stateNone, valueNull, notTextInsertion, doNotAllowExecutio nWhenDisabled },
1603 { "ScrollLineUp", {111, executeScrollLineUp, supportedFromMenuOrKeyBindi ng, enabled, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisa bled } }, 1599 { "ScrollLineUp", 111, executeScrollLineUp, supportedFromMenuOrKeyBindin g, enabled, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisab led },
1604 { "ScrollLineDown", {112, executeScrollLineDown, supportedFromMenuOrKeyB inding, enabled, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhen Disabled } }, 1600 { "ScrollLineDown", 112, executeScrollLineDown, supportedFromMenuOrKeyBi nding, enabled, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenD isabled },
1605 { "ScrollToBeginningOfDocument", {113, executeScrollToBeginningOfDocumen t, supportedFromMenuOrKeyBinding, enabled, stateNone, valueNull, notTextInsertio n, doNotAllowExecutionWhenDisabled } }, 1601 { "ScrollToBeginningOfDocument", 113, executeScrollToBeginningOfDocument , supportedFromMenuOrKeyBinding, enabled, stateNone, valueNull, notTextInsertion , doNotAllowExecutionWhenDisabled },
1606 { "ScrollToEndOfDocument", {114, executeScrollToEndOfDocument, supported FromMenuOrKeyBinding, enabled, stateNone, valueNull, notTextInsertion, doNotAllo wExecutionWhenDisabled } }, 1602 { "ScrollToEndOfDocument", 114, executeScrollToEndOfDocument, supportedF romMenuOrKeyBinding, enabled, stateNone, valueNull, notTextInsertion, doNotAllow ExecutionWhenDisabled },
1607 { "SelectAll", {115, executeSelectAll, supported, enabled, stateNone, va lueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1603 { "SelectAll", 115, executeSelectAll, supported, enabled, stateNone, val ueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1608 { "SelectLine", {116, executeSelectLine, supportedFromMenuOrKeyBinding, enabledVisibleSelection, stateNone, valueNull, notTextInsertion, doNotAllowExecu tionWhenDisabled } }, 1604 { "SelectLine", 116, executeSelectLine, supportedFromMenuOrKeyBinding, e nabledVisibleSelection, stateNone, valueNull, notTextInsertion, doNotAllowExecut ionWhenDisabled },
1609 { "SelectParagraph", {117, executeSelectParagraph, supportedFromMenuOrKe yBinding, enabledVisibleSelection, stateNone, valueNull, notTextInsertion, doNot AllowExecutionWhenDisabled } }, 1605 { "SelectParagraph", 117, executeSelectParagraph, supportedFromMenuOrKey Binding, enabledVisibleSelection, stateNone, valueNull, notTextInsertion, doNotA llowExecutionWhenDisabled },
1610 { "SelectSentence", {118, executeSelectSentence, supportedFromMenuOrKeyB inding, enabledVisibleSelection, stateNone, valueNull, notTextInsertion, doNotAl lowExecutionWhenDisabled } }, 1606 { "SelectSentence", 118, executeSelectSentence, supportedFromMenuOrKeyBi nding, enabledVisibleSelection, stateNone, valueNull, notTextInsertion, doNotAll owExecutionWhenDisabled },
1611 { "SelectToMark", {119, executeSelectToMark, supportedFromMenuOrKeyBindi ng, enabledVisibleSelectionAndMark, stateNone, valueNull, notTextInsertion, doNo tAllowExecutionWhenDisabled } }, 1607 { "SelectToMark", 119, executeSelectToMark, supportedFromMenuOrKeyBindin g, enabledVisibleSelectionAndMark, stateNone, valueNull, notTextInsertion, doNot AllowExecutionWhenDisabled },
1612 { "SelectWord", {120, executeSelectWord, supportedFromMenuOrKeyBinding, enabledVisibleSelection, stateNone, valueNull, notTextInsertion, doNotAllowExecu tionWhenDisabled } }, 1608 { "SelectWord", 120, executeSelectWord, supportedFromMenuOrKeyBinding, e nabledVisibleSelection, stateNone, valueNull, notTextInsertion, doNotAllowExecut ionWhenDisabled },
1613 { "SetMark", {121, executeSetMark, supportedFromMenuOrKeyBinding, enable dVisibleSelection, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWh enDisabled } }, 1609 { "SetMark", 121, executeSetMark, supportedFromMenuOrKeyBinding, enabled VisibleSelection, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhe nDisabled },
1614 { "Strikethrough", {122, executeStrikethrough, supported, enabledInRichl yEditableText, stateStrikethrough, valueNull, notTextInsertion, doNotAllowExecut ionWhenDisabled } }, 1610 { "Strikethrough", 122, executeStrikethrough, supported, enabledInRichly EditableText, stateStrikethrough, valueNull, notTextInsertion, doNotAllowExecuti onWhenDisabled },
1615 { "StyleWithCSS", {123, executeStyleWithCSS, supported, enabled, stateSt yleWithCSS, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1611 { "StyleWithCSS", 123, executeStyleWithCSS, supported, enabled, stateSty leWithCSS, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1616 { "Subscript", {124, executeSubscript, supported, enabledInRichlyEditabl eText, stateSubscript, valueNull, notTextInsertion, doNotAllowExecutionWhenDisab led } }, 1612 { "Subscript", 124, executeSubscript, supported, enabledInRichlyEditable Text, stateSubscript, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabl ed },
1617 { "Superscript", {125, executeSuperscript, supported, enabledInRichlyEdi tableText, stateSuperscript, valueNull, notTextInsertion, doNotAllowExecutionWhe nDisabled } }, 1613 { "Superscript", 125, executeSuperscript, supported, enabledInRichlyEdit ableText, stateSuperscript, valueNull, notTextInsertion, doNotAllowExecutionWhen Disabled },
1618 { "SwapWithMark", {126, executeSwapWithMark, supportedFromMenuOrKeyBindi ng, enabledVisibleSelectionAndMark, stateNone, valueNull, notTextInsertion, doNo tAllowExecutionWhenDisabled } }, 1614 { "SwapWithMark", 126, executeSwapWithMark, supportedFromMenuOrKeyBindin g, enabledVisibleSelectionAndMark, stateNone, valueNull, notTextInsertion, doNot AllowExecutionWhenDisabled },
1619 { "ToggleBold", {127, executeToggleBold, supportedFromMenuOrKeyBinding, enabledInRichlyEditableText, stateBold, valueNull, notTextInsertion, doNotAllowE xecutionWhenDisabled } }, 1615 { "ToggleBold", 127, executeToggleBold, supportedFromMenuOrKeyBinding, e nabledInRichlyEditableText, stateBold, valueNull, notTextInsertion, doNotAllowEx ecutionWhenDisabled },
1620 { "ToggleItalic", {128, executeToggleItalic, supportedFromMenuOrKeyBindi ng, enabledInRichlyEditableText, stateItalic, valueNull, notTextInsertion, doNot AllowExecutionWhenDisabled } }, 1616 { "ToggleItalic", 128, executeToggleItalic, supportedFromMenuOrKeyBindin g, enabledInRichlyEditableText, stateItalic, valueNull, notTextInsertion, doNotA llowExecutionWhenDisabled },
1621 { "ToggleUnderline", {129, executeUnderline, supportedFromMenuOrKeyBindi ng, enabledInRichlyEditableText, stateUnderline, valueNull, notTextInsertion, do NotAllowExecutionWhenDisabled } }, 1617 { "ToggleUnderline", 129, executeUnderline, supportedFromMenuOrKeyBindin g, enabledInRichlyEditableText, stateUnderline, valueNull, notTextInsertion, doN otAllowExecutionWhenDisabled },
1622 { "Transpose", {130, executeTranspose, supported, enableCaretInEditableT ext, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } } , 1618 { "Transpose", 130, executeTranspose, supported, enableCaretInEditableTe xt, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1623 { "Underline", {131, executeUnderline, supported, enabledInRichlyEditabl eText, stateUnderline, valueNull, notTextInsertion, doNotAllowExecutionWhenDisab led } }, 1619 { "Underline", 131, executeUnderline, supported, enabledInRichlyEditable Text, stateUnderline, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabl ed },
1624 { "Undo", {132, executeUndo, supported, enabledUndo, stateNone, valueNul l, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1620 { "Undo", 132, executeUndo, supported, enabledUndo, stateNone, valueNull , notTextInsertion, doNotAllowExecutionWhenDisabled },
1625 { "Unlink", {133, executeUnlink, supported, enabledRangeInRichlyEditable Text, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1621 { "Unlink", 133, executeUnlink, supported, enabledRangeInRichlyEditableT ext, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1626 { "Unscript", {134, executeUnscript, supportedFromMenuOrKeyBinding, enab ledInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExecu tionWhenDisabled } }, 1622 { "Unscript", 134, executeUnscript, supportedFromMenuOrKeyBinding, enabl edInRichlyEditableText, stateNone, valueNull, notTextInsertion, doNotAllowExecut ionWhenDisabled },
1627 { "Unselect", {135, executeUnselect, supported, enabledVisibleSelection, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1623 { "Unselect", 135, executeUnselect, supported, enabledVisibleSelection, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled },
1628 { "UseCSS", {136, executeUseCSS, supported, enabled, stateNone, valueNul l, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1624 { "UseCSS", 136, executeUseCSS, supported, enabled, stateNone, valueNull , notTextInsertion, doNotAllowExecutionWhenDisabled },
1629 { "Yank", {137, executeYank, supportedFromMenuOrKeyBinding, enabledInEdi tableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabl ed } }, 1625 { "Yank", 137, executeYank, supportedFromMenuOrKeyBinding, enabledInEdit ableText, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisable d },
1630 { "YankAndSelect", {138, executeYankAndSelect, supportedFromMenuOrKeyBin ding, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowE xecutionWhenDisabled } }, 1626 { "YankAndSelect", 138, executeYankAndSelect, supportedFromMenuOrKeyBind ing, enabledInEditableText, stateNone, valueNull, notTextInsertion, doNotAllowEx ecutionWhenDisabled },
1631 }; 1627 };
1632 1628
1633 // These unsupported commands are listed here since they appear in the Micro soft 1629 // These unsupported commands are listed here since they appear in the Micro soft
1634 // documentation used as the starting point for our DOM executeCommand suppo rt. 1630 // documentation used as the starting point for our DOM executeCommand suppo rt.
1635 // 1631 //
1636 // 2D-Position (not supported) 1632 // 2D-Position (not supported)
1637 // AbsolutePosition (not supported) 1633 // AbsolutePosition (not supported)
1638 // BlockDirLTR (not supported) 1634 // BlockDirLTR (not supported)
1639 // BlockDirRTL (not supported) 1635 // BlockDirRTL (not supported)
1640 // BrowseMode (not supported) 1636 // BrowseMode (not supported)
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1674 // SizeToControlWidth (not supported) 1670 // SizeToControlWidth (not supported)
1675 // Stop (not supported) 1671 // Stop (not supported)
1676 // StopImage (not supported) 1672 // StopImage (not supported)
1677 // Unbookmark (not supported) 1673 // Unbookmark (not supported)
1678 1674
1679 CommandMap& commandMap = *new CommandMap; 1675 CommandMap& commandMap = *new CommandMap;
1680 #if ENABLE(ASSERT) 1676 #if ENABLE(ASSERT)
1681 HashSet<int> idSet; 1677 HashSet<int> idSet;
1682 #endif 1678 #endif
1683 for (size_t i = 0; i < WTF_ARRAY_LENGTH(commands); ++i) { 1679 for (size_t i = 0; i < WTF_ARRAY_LENGTH(commands); ++i) {
1684 const CommandEntry& command = commands[i]; 1680 const EditorInternalCommand& command = commands[i];
1685 ASSERT(!commandMap.get(command.name)); 1681 ASSERT(!commandMap.get(command.commandName));
1686 commandMap.set(command.name, &command.command); 1682 commandMap.set(command.commandName, &command);
1687 #if ENABLE(ASSERT) 1683 #if ENABLE(ASSERT)
1688 ASSERT(!idSet.contains(command.command.idForUserMetrics)); 1684 ASSERT(!idSet.contains(command.idForUserMetrics));
1689 idSet.add(command.command.idForUserMetrics); 1685 idSet.add(command.idForUserMetrics);
1690 #endif 1686 #endif
1691 } 1687 }
1692 1688
1693 return commandMap; 1689 return commandMap;
1694 } 1690 }
1695 1691
1696 static const EditorInternalCommand* internalCommand(const String& commandName) 1692 static const EditorInternalCommand* internalCommand(const String& commandName)
1697 { 1693 {
1698 static const CommandMap& commandMap = createCommandMap(); 1694 static const CommandMap& commandMap = createCommandMap();
1699 return commandName.isEmpty() ? 0 : commandMap.get(commandName); 1695 return commandName.isEmpty() ? 0 : commandMap.get(commandName);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
1772 { 1768 {
1773 // TODO(yosin) We should move this logic into |canExecute()| member function 1769 // TODO(yosin) We should move this logic into |canExecute()| member function
1774 // in |EditorInternalCommand| to replace |allowExecutionWhenDisabled|. 1770 // in |EditorInternalCommand| to replace |allowExecutionWhenDisabled|.
1775 // |allowExecutionWhenDisabled| is for "Copy", "Cut" and "Paste" commands 1771 // |allowExecutionWhenDisabled| is for "Copy", "Cut" and "Paste" commands
1776 // only. 1772 // only.
1777 if (!isEnabled(triggeringEvent)) { 1773 if (!isEnabled(triggeringEvent)) {
1778 // Let certain commands be executed when performed explicitly even if th ey are disabled. 1774 // Let certain commands be executed when performed explicitly even if th ey are disabled.
1779 if (!isSupported() || !m_frame || !m_command->allowExecutionWhenDisabled ) 1775 if (!isSupported() || !m_frame || !m_command->allowExecutionWhenDisabled )
1780 return false; 1776 return false;
1781 } 1777 }
1778
1779 if (dispatchBeforeInputEditorCommand(eventTargetNodeForDocument(m_frame->doc ument()), m_command->commandName) != DispatchEventResult::NotCanceled)
1780 return true;
chongz 2016/03/04 19:46:50 I assume we don't want to fallback to other defaul
1781
1782 frame().document()->updateLayoutIgnorePendingStylesheets(); 1782 frame().document()->updateLayoutIgnorePendingStylesheets();
yosin_UTC9 2016/03/15 08:32:32 Could you check whether |frame().document()| is nu
1783 DEFINE_STATIC_LOCAL(SparseHistogram, commandHistogram, ("WebCore.Editing.Com mands")); 1783 DEFINE_STATIC_LOCAL(SparseHistogram, commandHistogram, ("WebCore.Editing.Com mands"));
1784 commandHistogram.sample(m_command->idForUserMetrics); 1784 commandHistogram.sample(m_command->idForUserMetrics);
1785 return m_command->execute(*m_frame, triggeringEvent, m_source, parameter); 1785 return m_command->execute(*m_frame, triggeringEvent, m_source, parameter);
1786 } 1786 }
1787 1787
1788 bool Editor::Command::execute(Event* triggeringEvent) const 1788 bool Editor::Command::execute(Event* triggeringEvent) const
1789 { 1789 {
1790 return execute(String(), triggeringEvent); 1790 return execute(String(), triggeringEvent);
1791 } 1791 }
1792 1792
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1831 { 1831 {
1832 return m_command && m_command->isTextInsertion; 1832 return m_command && m_command->isTextInsertion;
1833 } 1833 }
1834 1834
1835 int Editor::Command::idForHistogram() const 1835 int Editor::Command::idForHistogram() const
1836 { 1836 {
1837 return isSupported() ? m_command->idForUserMetrics : 0; 1837 return isSupported() ? m_command->idForUserMetrics : 0;
1838 } 1838 }
1839 1839
1840 } // namespace blink 1840 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698