diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-18 19:08:01 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-18 19:08:01 +0000 |
commit | 2839e0061402c2f6d9d409e67850e9e708defa8d (patch) | |
tree | ed7090ef4e9bdcfa295b64aea49be5180d11b5d7 /views/focus | |
parent | da7abbb92e3cb6774f91ab37571bca6aaaa7b41a (diff) | |
download | chromium_src-2839e0061402c2f6d9d409e67850e9e708defa8d.zip chromium_src-2839e0061402c2f6d9d409e67850e9e708defa8d.tar.gz chromium_src-2839e0061402c2f6d9d409e67850e9e708defa8d.tar.bz2 |
touch: Return an enum from OnTouchEvent.
The enum returned from OnTouchEvent reflects the current status of the touch-sequence. This can be used by the RootView to determine when the touch-event-handler should be reset.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6347002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71677 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/focus')
-rw-r--r-- | views/focus/accelerator_handler_touch.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/focus/accelerator_handler_touch.cc b/views/focus/accelerator_handler_touch.cc index 84b4404..84c042d 100644 --- a/views/focus/accelerator_handler_touch.cc +++ b/views/focus/accelerator_handler_touch.cc @@ -97,7 +97,7 @@ bool DispatchX2Event(RootView* root, XEvent* xev) { // can be used (if desired) as a mouse event. TouchEvent touch(xev); - if (root->OnTouchEvent(touch)) + if (root->OnTouchEvent(touch) != views::View::TOUCH_STATUS_UNKNOWN) return true; } |