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

Unified Diff: ash/shelf/shelf_button.cc

Issue 2876203003: Make shelf item can be dragged when context menu is opened.
Patch Set: rebased Created 3 years, 7 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 | « no previous file | ash/shelf/shelf_view.cc » ('j') | ash/shelf/shelf_view.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_button.cc
diff --git a/ash/shelf/shelf_button.cc b/ash/shelf/shelf_button.cc
index 53cf800bbb5e92de9455233308ccf9c3be89871c..dd81805c7b98bb3490d830ad086db3fb7d6e4fd9 100644
--- a/ash/shelf/shelf_button.cc
+++ b/ash/shelf/shelf_button.cc
@@ -461,6 +461,9 @@ void ShelfButton::OnGestureEvent(ui::GestureEvent* event) {
shelf_view_->PointerReleasedOnButton(this, ShelfView::TOUCH, false);
event->SetHandled();
return;
+ case ui::ET_GESTURE_LONG_TAP:
+ event->SetHandled();
msw 2017/06/01 20:24:27 nit: comment why |event| is ignored (marked handle
minch1 2017/06/23 23:13:02 Done.
+ return;
default:
return CustomButton::OnGestureEvent(event);
}
« no previous file with comments | « no previous file | ash/shelf/shelf_view.cc » ('j') | ash/shelf/shelf_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698