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

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
« no previous file with comments | « ui/message_center/views/slide_out_controller.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
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() {
« no previous file with comments | « ui/message_center/views/slide_out_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698