[EFL][Qt][WK2] Implement shared undo controller for EFL and Qt port.
https://bugs.webkit.org/show_bug.cgi?id=92504

Patch by Michał Pakuła vel Rutka <m.pakula@samsung.com> on 2012-09-13
Reviewed by Kenneth Rohde Christiansen.

Source/WebKit2:

EFL port needs an undo controller similiar to one from Qt port. Instead of
duplicating the code existing class was renamed and moved to UIProcess
directory.

* PlatformEfl.cmake:
* Target.pri:
* UIProcess/API/efl/PageClientImpl.cpp:
(WebKit::PageClientImpl::registerEditCommand):
(WebKit::PageClientImpl::clearAllEditCommands):
(WebKit::PageClientImpl::canUndoRedo):
(WebKit::PageClientImpl::executeUndoRedo):
* UIProcess/API/efl/PageClientImpl.h:
(PageClientImpl):
* UIProcess/API/qt/qquickwebview_p_p.h:
(QQuickWebViewPrivate):
* UIProcess/DefaultUndoController.cpp: Renamed from Source/WebKit2/UIProcess/qt/QtWebUndoController.cpp.
(WebKit):
(WebKit::DefaultUndoController::registerEditCommand):
(WebKit::DefaultUndoController::clearAllEditCommands):
(WebKit::DefaultUndoController::canUndoRedo):
(WebKit::DefaultUndoController::executeUndoRedo):
* UIProcess/DefaultUndoController.h: Renamed from Source/WebKit2/UIProcess/qt/QtWebUndoController.h.
(WebKit):
(DefaultUndoController):
* UIProcess/qt/QtPageClient.cpp:
(WebKit::QtPageClient::initialize):
* UIProcess/qt/QtPageClient.h:
(WebKit):
(QtPageClient):

LayoutTests:

Unskip the editing/undo category now that the tests are passing. Also add
missing expected results.

* platform/efl-wk1/TestExpectations:
* platform/efl-wk2/TestExpectations:
* platform/efl/Skipped:
* platform/efl/editing/undo/4063751-expected.txt: Added.
* platform/efl/editing/undo/5378473-expected.txt: Added.
* platform/efl/editing/undo/redo-typing-001-expected.txt: Added.
* platform/efl/editing/undo/undo-combined-delete-boundary-expected.txt: Added.
* platform/efl/editing/undo/undo-combined-delete-expected.txt: Added.
* platform/efl/editing/undo/undo-delete-boundary-expected.txt: Added.
* platform/efl/editing/undo/undo-delete-expected.txt: Added.
* platform/efl/editing/undo/undo-forward-delete-boundary-expected.txt: Added.
* platform/efl/editing/undo/undo-forward-delete-expected.txt: Added.
* platform/efl/editing/undo/undo-misspellings-expected.txt: Added.
* platform/efl/editing/undo/undo-typing-001-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128436 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebKit2/PlatformEfl.cmake b/Source/WebKit2/PlatformEfl.cmake
index 9abc6ec..51b8e73 100644
--- a/Source/WebKit2/PlatformEfl.cmake
+++ b/Source/WebKit2/PlatformEfl.cmake
@@ -24,6 +24,8 @@
     Shared/soup/PlatformCertificateInfo.cpp
     Shared/soup/WebCoreArgumentCodersSoup.cpp
 
+    UIProcess/DefaultUndoController.cpp
+
     UIProcess/API/C/efl/WKView.cpp
     
     UIProcess/API/cpp/efl/WKEinaSharedString.cpp