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

Unified Diff: ui/message_center/views/slide_out_controller.cc

Issue 2873553002: [Notifications] Fix swipe to close for ARC notifications. (Closed)
Patch Set: Address comments. 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
Index: ui/message_center/views/slide_out_controller.cc
diff --git a/ui/message_center/views/slide_out_controller.cc b/ui/message_center/views/slide_out_controller.cc
index 68883b672db5c8d28770dd095ce7a9e91c9828a8..efcf8e027d1d5581e45c60e281c052fc306ff667 100644
--- a/ui/message_center/views/slide_out_controller.cc
+++ b/ui/message_center/views/slide_out_controller.cc
@@ -72,6 +72,7 @@ void SlideOutController::OnGestureEvent(ui::GestureEvent* event) {
RestoreVisualState();
}
+ delegate_->OnSlideChanged();
Evan Stade 2017/05/16 21:58:14 Can the interested party (ArcCustomNotificationVie
Eliot Courtney 2017/05/17 04:48:25 I tried this (by adding an override for OnLayerAni
event->SetHandled();
}
@@ -100,6 +101,7 @@ void SlideOutController::SlideOutAndClose(int direction) {
transform.Translate(direction < 0 ? -width : width, 0.0);
layer->SetTransform(transform);
layer->SetOpacity(0.f);
+ delegate_->OnSlideChanged();
}
void SlideOutController::OnImplicitAnimationsCompleted() {

Powered by Google App Engine
This is Rietveld 408576698