summaryrefslogtreecommitdiffstats
path: root/views/widget/native_widget_view.cc
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-29 23:43:26 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-29 23:43:26 +0000
commitcd446c6cb4acd4afba06e18c0b84f6f8e1ba2ca3 (patch)
treed0d41dd262a3d4a069f37651a4e640ba39f1390f /views/widget/native_widget_view.cc
parentbaff1d0461a2d10eb9f99b64d3fd724e7b363a44 (diff)
downloadchromium_src-cd446c6cb4acd4afba06e18c0b84f6f8e1ba2ca3.zip
chromium_src-cd446c6cb4acd4afba06e18c0b84f6f8e1ba2ca3.tar.gz
chromium_src-cd446c6cb4acd4afba06e18c0b84f6f8e1ba2ca3.tar.bz2
Fix a few issues with touch-events and views-desktop.
* Activate a widget when it is touched. * Drop a synthetic mouse event on the toplevel widget instead of the immediate parent widget. * Send touch-events to the captured view if there is one. BUG=none TEST=manually Review URL: http://codereview.chromium.org/7540002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94796 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/native_widget_view.cc')
-rw-r--r--views/widget/native_widget_view.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/widget/native_widget_view.cc b/views/widget/native_widget_view.cc
index 911170d..85cb30e 100644
--- a/views/widget/native_widget_view.cc
+++ b/views/widget/native_widget_view.cc
@@ -104,7 +104,8 @@ void NativeWidgetView::OnMouseExited(const MouseEvent& event) {
}
ui::TouchStatus NativeWidgetView::OnTouchEvent(const TouchEvent& event) {
- return delegate()->OnTouchEvent(event);
+ TouchEvent e(event, this);
+ return delegate()->OnTouchEvent(e);
}
bool NativeWidgetView::OnKeyPressed(const KeyEvent& event) {