[Qt] Move QMenu dependant scrollbar context menu handling out of WebCore
authorhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 22 Feb 2012 15:10:21 +0000 (15:10 +0000)
committerhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 22 Feb 2012 15:10:21 +0000 (15:10 +0000)
commitacf913d5b4221659078fab728920ac96b5cf175c
tree94f25e2d8719a946dcfa84450d2d675079b57280
parent920c40514eb2e753a6045d80bf134acf926f1a5a
[Qt] Move QMenu dependant scrollbar context menu handling out of WebCore
https://bugs.webkit.org/show_bug.cgi?id=79233

Reviewed by Kenneth Rohde Christiansen.

Source/WebCore:

Move the code into WebKit/qt/Api/qwebpage.cpp, the only place where it is called from.

* Target.pri: Remove ScrollbarQt.cpp from build.
* platform/Scrollbar.h: Remove Qt-only context menu handling but make moveThum
accessible from the outside.
* platform/qt/ScrollbarQt.cpp: Removed. Not needed anymore.

Source/WebKit/qt:

Move scrollbar context menu handling here, it's the only place where it is
used.

* Api/qwebpage.cpp:
(handleScrollbarContextMenuEvent):
(QWebPage::swallowContextMenuEvent):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108498 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/Target.pri
Source/WebCore/platform/Scrollbar.h
Source/WebCore/platform/qt/ScrollbarQt.cpp [deleted file]
Source/WebKit/qt/Api/qwebpage.cpp
Source/WebKit/qt/ChangeLog