-
commit-queue@webkit.org authored
Reviewed by Kenneth Rohde Christiansen. [Qt] Move Qt's popup menu implementation from WebCore to WebKit layer https://bugs.webkit.org/show_bug.cgi?id=43427 After PopupMenu changes in bug 42592 class QtAbstractWebPopup became unecessary and there is no need to keep any Qt specific code for popup menus in WebCore/platform/qt. PopupMenuQt has been moved from WebCore/platform/qt to WebKit/qt/WebCoreSupport and assumed the responsibilities of QtAbstractWebPopup. SearchPopupMenuQt has been moved to WebKit/qt/WebCoreSupport as well. All classes that previously inherited from QtAbstractWebPopup now inherit from QWebSelectMethod and QtPlatformPlugin's method createSelectInputMethod now returns an instance of class QWebSelectMethod instead of QtAbstractWebPopup. * WebCore.pro: * platform/qt/PopupMenuQt.cpp: Removed. * platform/qt/PopupMenuQt.h: Removed. * platform/qt/QtAbstractWebPopup.cpp: Removed. * platform/qt/QtAbstractWebPopup.h: Removed. * platform/qt/SearchPopupMenuQt.cpp: Removed. * platform/qt/SearchPopupMenuQt.h: Removed. 2010-08-06 Luiz Agostini <luiz.agostini@openbossa.org> Reviewed by Kenneth Rohde Christiansen. [Qt] Move Qt's popup menu implementation from WebCore to WebKit layer https://bugs.webkit.org/show_bug.cgi?id=43427 After PopupMenu changes in bug 42592 class QtAbstractWebPopup became unecessary and there is no need to keep any Qt specific code for popup menus in WebCore/platform/qt. PopupMenuQt has been moved from WebCore/platform/qt to WebKit/qt/WebCoreSupport and assumed the responsibilities of QtAbstractWebPopup. SearchPopupMenuQt has been moved to WebKit/qt/WebCoreSupport as well. All classes that previously inherited from QtAbstractWebPopup now inherit from QWebSelectMethod and QtPlatformPlugin's method createSelectInputMethod now returns an instance of class QWebSelectMethod instead of QtAbstractWebPopup. * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::createSelectPopup): (WebCore::ChromeClientQt::createPopupMenu): (WebCore::ChromeClientQt::createSearchPopupMenu): * WebCoreSupport/ChromeClientQt.h: * WebCoreSupport/PopupMenuQt.cpp: Added. (SelectData::SelectData): (SelectData::itemText): (SelectData::itemToolTip): (SelectData::itemIsEnabled): (SelectData::itemCount): (SelectData::itemIsSelected): (SelectData::multiple): (SelectData::itemType): (WebCore::PopupMenuQt::PopupMenuQt): (WebCore::PopupMenuQt::~PopupMenuQt): (WebCore::PopupMenuQt::disconnectClient): (WebCore::PopupMenuQt::show): (WebCore::PopupMenuQt::didHide): (WebCore::PopupMenuQt::hide): (WebCore::PopupMenuQt::updateFromElement): (WebCore::PopupMenuQt::selectItem): * WebCoreSupport/PopupMenuQt.h: Added. * WebCoreSupport/QtFallbackWebPopup.cpp: (WebCore::QtFallbackWebPopupCombo::hidePopup): (WebCore::QtFallbackWebPopup::QtFallbackWebPopup): (WebCore::QtFallbackWebPopup::show): (WebCore::QtFallbackWebPopup::populate): (WebCore::QtFallbackWebPopup::activeChanged): (WebCore::QtFallbackWebPopup::pageClient): * WebCoreSupport/QtFallbackWebPopup.h: (WebCore::QtFallbackWebPopup::setGeometry): (WebCore::QtFallbackWebPopup::geometry): (WebCore::QtFallbackWebPopup::setFont): (WebCore::QtFallbackWebPopup::font): * WebCoreSupport/QtMaemoWebPopup.cpp: (WebCore::Maemo5Popup::populateList): (WebCore::QtMaemoWebPopup::QtMaemoWebPopup): (WebCore::QtMaemoWebPopup::createSingleSelectionPopup): (WebCore::QtMaemoWebPopup::createMultipleSelectionPopup): (WebCore::QtMaemoWebPopup::createPopup): (WebCore::QtMaemoWebPopup::show): (WebCore::QtMaemoWebPopup::popupClosed): (WebCore::QtMaemoWebPopup::itemClicked): (WebCore::Maemo5SingleSelectionPopup::Maemo5SingleSelectionPopup): (WebCore::Maemo5MultipleSelectionPopup::Maemo5MultipleSelectionPopup): * WebCoreSupport/QtMaemoWebPopup.h: (WebCore::Maemo5Popup::Maemo5Popup): * WebCoreSupport/QtPlatformPlugin.cpp: (WebCore::QtPlatformPlugin::createSelectInputMethod): * WebCoreSupport/QtPlatformPlugin.h: * WebCoreSupport/SearchPopupMenuQt.cpp: Added. (WebCore::SearchPopupMenuQt::SearchPopupMenuQt): (WebCore::SearchPopupMenuQt::popupMenu): (WebCore::SearchPopupMenuQt::saveRecentSearches): (WebCore::SearchPopupMenuQt::loadRecentSearches): (WebCore::SearchPopupMenuQt::enabled): * WebCoreSupport/SearchPopupMenuQt.h: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
11f86205