summaryrefslogtreecommitdiffstats
path: root/Source/WebKit2/UIProcess/WebEditCommandProxy.cpp
diff options
context:
space:
mode:
authorKonstantin Tokarev <annulen@yandex.ru>2016-08-25 19:20:41 +0300
committerKonstantin Tokarev <annulen@yandex.ru>2017-02-02 12:30:55 +0000
commit6882a04fb36642862b11efe514251d32070c3d65 (patch)
treeb7959826000b061fd5ccc7512035c7478742f7b0 /Source/WebKit2/UIProcess/WebEditCommandProxy.cpp
parentab6df191029eeeb0b0f16f127d553265659f739e (diff)
Imported QtWebKit TP3 (git b57bc6801f1876c3220d5a4bfea33d620d477443)
Change-Id: I3b1d8a2808782c9f34d50240000e20cb38d3680f Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
Diffstat (limited to 'Source/WebKit2/UIProcess/WebEditCommandProxy.cpp')
-rw-r--r--Source/WebKit2/UIProcess/WebEditCommandProxy.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/WebKit2/UIProcess/WebEditCommandProxy.cpp b/Source/WebKit2/UIProcess/WebEditCommandProxy.cpp
index 81f145d51..878559546 100644
--- a/Source/WebKit2/UIProcess/WebEditCommandProxy.cpp
+++ b/Source/WebKit2/UIProcess/WebEditCommandProxy.cpp
@@ -55,7 +55,7 @@ void WebEditCommandProxy::unapply()
if (!m_page || !m_page->isValid())
return;
- m_page->process()->send(Messages::WebPage::UnapplyEditCommand(m_commandID), m_page->pageID(), CoreIPC::DispatchMessageEvenWhenWaitingForSyncReply);
+ m_page->process().send(Messages::WebPage::UnapplyEditCommand(m_commandID), m_page->pageID(), IPC::DispatchMessageEvenWhenWaitingForSyncReply);
m_page->registerEditCommand(this, WebPageProxy::Redo);
}
@@ -64,15 +64,18 @@ void WebEditCommandProxy::reapply()
if (!m_page || !m_page->isValid())
return;
- m_page->process()->send(Messages::WebPage::ReapplyEditCommand(m_commandID), m_page->pageID(), CoreIPC::DispatchMessageEvenWhenWaitingForSyncReply);
+ m_page->process().send(Messages::WebPage::ReapplyEditCommand(m_commandID), m_page->pageID(), IPC::DispatchMessageEvenWhenWaitingForSyncReply);
m_page->registerEditCommand(this, WebPageProxy::Undo);
}
String WebEditCommandProxy::nameForEditAction(EditAction editAction)
{
+ // FIXME: This is identical to code in WebKit's WebEditorClient class; would be nice to share the strings instead of having two copies.
switch (editAction) {
case EditActionUnspecified:
return String();
+ case EditActionInsert:
+ return String();
case EditActionSetColor:
return WEB_UI_STRING_KEY("Set Color", "Set Color (Undo action name)", "Undo action name");
case EditActionSetBackgroundColor:
@@ -129,6 +132,10 @@ String WebEditCommandProxy::nameForEditAction(EditAction editAction)
return WEB_UI_STRING_KEY("Bold", "Bold (Undo action name)", "Undo action name");
case EditActionItalics:
return WEB_UI_STRING_KEY("Italics", "Italics (Undo action name)", "Undo action name");
+ case EditActionDelete:
+ return WEB_UI_STRING_KEY("Delete", "Delete (Undo action name)", "Undo action name");
+ case EditActionDictation:
+ return WEB_UI_STRING_KEY("Dictation", "Dictation (Undo action name)", "Undo action name");
case EditActionPaste:
return WEB_UI_STRING_KEY("Paste", "Paste (Undo action name)", "Undo action name");
case EditActionPasteFont: