Commit fba08173 authored by keishi@webkit.org's avatar keishi@webkit.org

[Chromium] Enable touch events in PagePopup

https://bugs.webkit.org/show_bug.cgi?id=113380

We want to use touch events inside the calendar picker. This patch adds
PagePopupChromeClient::needTouchEvents() and moved hasTouchEventHandlers()
from WebViewClient to WebWidgetClient.

Reviewed by Kent Tamura.

* public/WebViewClient.h:
* public/WebWidgetClient.h:
(WebWidgetClient):
(WebKit::WebWidgetClient::hasTouchEventHandlers): Moved from WebViewClient.
* src/WebPagePopupImpl.cpp:
(WebKit):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147045 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 908dc002
2013-03-27 Keishi Hattori <keishi@webkit.org>
[Chromium] Enable touch events in PagePopup
https://bugs.webkit.org/show_bug.cgi?id=113380
We want to use touch events inside the calendar picker. This patch adds
PagePopupChromeClient::needTouchEvents() and moved hasTouchEventHandlers()
from WebViewClient to WebWidgetClient.
Reviewed by Kent Tamura.
* public/WebViewClient.h:
* public/WebWidgetClient.h:
(WebWidgetClient):
(WebKit::WebWidgetClient::hasTouchEventHandlers): Moved from WebViewClient.
* src/WebPagePopupImpl.cpp:
(WebKit):
2013-03-27 Timothy Hatcher <timothy@apple.com>
Add support for dock-to-right of the Web Inspector in the Mac port.
......
......@@ -280,7 +280,6 @@ public:
virtual void focusedNodeChanged(const WebNode&) { }
virtual void numberOfWheelEventHandlersChanged(unsigned) { }
virtual void hasTouchEventHandlers(bool) { }
// Indicates two things:
// 1) This view may have a new layout now.
......
......@@ -172,6 +172,9 @@ public:
// Called when a gesture event is handled.
virtual void didHandleGestureEvent(const WebGestureEvent& event, bool eventCancelled) { }
// Called to update if touch events should be sent.
virtual void hasTouchEventHandlers(bool) { }
protected:
~WebWidgetClient() { }
};
......
......@@ -138,6 +138,13 @@ private:
m_popup->m_webView->client()->didChangeCursor(WebCursorInfo(cursor));
}
#if ENABLE(TOUCH_EVENTS)
virtual void needTouchEvents(bool needsTouchEvents) OVERRIDE
{
m_popup->widgetClient()->hasTouchEventHandlers(needsTouchEvents);
}
#endif // ENABLE(TOUCH_EVENTS)
// PageClientChromium methods:
virtual WebKit::WebScreenInfo screenInfo() OVERRIDE
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment