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

Unified Diff: ui/views/bubble/tray_bubble_view.cc

Issue 2961313003: Touch gestures for System Tray/ IME/ Stylus/ Notifications (Closed)
Patch Set: Swiping IME/Stylues/System tray/Notifications tray/bubble. Created 3 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
Index: ui/views/bubble/tray_bubble_view.cc
diff --git a/ui/views/bubble/tray_bubble_view.cc b/ui/views/bubble/tray_bubble_view.cc
index 46eebae8b028a3e95ceb7d357b08bfebfb71b686..b37dd8b2c55e0e2c442ffd653ac0bf9fc40723d6 100644
--- a/ui/views/bubble/tray_bubble_view.cc
+++ b/ui/views/bubble/tray_bubble_view.cc
@@ -393,6 +393,13 @@ void TrayBubbleView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
}
}
+void TrayBubbleView::OnGestureEvent(ui::GestureEvent* event) {
+ if (delegate_ && delegate_->ProcessGestureEventForBubble(event))
+ event->SetHandled();
+ else
+ BubbleDialogDelegateView::OnGestureEvent(event);
+}
+
void TrayBubbleView::MouseMovedOutOfHost() {
// The mouse was accidentally over the bubble when it opened and the AutoClose
// logic was not activated. Now that the user did move the mouse we tell the
« ash/system/web_notification/web_notification_tray.h ('K') | « ui/views/bubble/tray_bubble_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698