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

Unified Diff: ui/views/widget/desktop_aura/desktop_activation_client.cc

Issue 11280290: events: Change gesture-event handler in EventHandler to not return any values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
Index: ui/views/widget/desktop_aura/desktop_activation_client.cc
diff --git a/ui/views/widget/desktop_aura/desktop_activation_client.cc b/ui/views/widget/desktop_aura/desktop_activation_client.cc
index b53feba221ae8d2f53ebd8b6f7dbc55d326fcd20..a099e4898667f77821adb0c074d1701edae4a8ee 100644
--- a/ui/views/widget/desktop_aura/desktop_activation_client.cc
+++ b/ui/views/widget/desktop_aura/desktop_activation_client.cc
@@ -164,13 +164,11 @@ ui::EventResult DesktopActivationClient::OnTouchEvent(ui::TouchEvent* event) {
return ui::ER_UNHANDLED;
}
-ui::EventResult DesktopActivationClient::OnGestureEvent(
- ui::GestureEvent* event) {
+void DesktopActivationClient::OnGestureEvent(ui::GestureEvent* event) {
if (event->type() == ui::ET_GESTURE_BEGIN &&
event->details().touch_points() == 1) {
FocusWindowWithEvent(event);
}
- return ui::ER_UNHANDLED;
}
void DesktopActivationClient::FocusWindowWithEvent(const ui::Event* event) {
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_activation_client.h ('k') | ui/views/widget/desktop_aura/desktop_native_widget_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698