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

Unified Diff: ash/shelf/shelf_widget.cc

Issue 2007003002: mash: Preliminary support for shelf auto-hide (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shutdown
Patch Set: rebase Created 4 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 | « ash/shelf/shelf_widget.h ('k') | ash/shelf/shelf_widget_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_widget.cc
diff --git a/ash/shelf/shelf_widget.cc b/ash/shelf/shelf_widget.cc
index c504175f376135bca0b98bd47f7791ba2d2343d8..ee3a29e6ea0377a76f95884e448fd56404b51652 100644
--- a/ash/shelf/shelf_widget.cc
+++ b/ash/shelf/shelf_widget.cc
@@ -803,4 +803,16 @@ void ShelfWidget::WillDeleteShelfLayoutManager() {
shelf_layout_manager_ = NULL;
}
+void ShelfWidget::OnMouseEvent(ui::MouseEvent* event) {
+ Widget::OnMouseEvent(event);
+ if (Shell::GetInstance()->in_mus() && shelf_layout_manager_)
+ shelf_layout_manager_->UpdateAutoHideForMouseEvent(event);
+}
+
+void ShelfWidget::OnGestureEvent(ui::GestureEvent* event) {
+ Widget::OnGestureEvent(event);
+ if (Shell::GetInstance()->in_mus() && shelf_layout_manager_)
+ shelf_layout_manager_->UpdateAutoHideForGestureEvent(event);
+}
+
} // namespace ash
« no previous file with comments | « ash/shelf/shelf_widget.h ('k') | ash/shelf/shelf_widget_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698