Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2066)

Unified Diff: views/widget/root_view.cc

Issue 7540002: Fix a few issues with touch-events and views-desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/widget/native_widget_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/root_view.cc
diff --git a/views/widget/root_view.cc b/views/widget/root_view.cc
index 64142f4c32570bc84340a3257fe3d3d55bcce9e3..85cb53736ea5ae2aa52b4bdf1780e4f299d12355 100644
--- a/views/widget/root_view.cc
+++ b/views/widget/root_view.cc
@@ -367,6 +367,10 @@ bool RootView::OnMouseWheel(const MouseWheelEvent& event) {
ui::TouchStatus RootView::OnTouchEvent(const TouchEvent& event) {
TouchEvent e(event, this);
+ if (capture_view_) {
+ TouchEvent ce(e, this, capture_view_);
+ return capture_view_->OnTouchEvent(ce);
+ }
// If touch_pressed_handler_ is non null, we are currently processing
// a touch down on the screen situation. In that case we send the
« no previous file with comments | « views/widget/native_widget_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698