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

Side by Side 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: typo 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/shelf/shelf_widget.h" 5 #include "ash/shelf/shelf_widget.h"
6 6
7 #include "ash/ash_switches.h" 7 #include "ash/ash_switches.h"
8 #include "ash/focus_cycler.h" 8 #include "ash/focus_cycler.h"
9 #include "ash/root_window_controller.h" 9 #include "ash/root_window_controller.h"
10 #include "ash/session/session_state_delegate.h" 10 #include "ash/session/session_state_delegate.h"
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 if (delegate_view_) 791 if (delegate_view_)
792 return delegate_view_->GetDimmerBoundsForTest(); 792 return delegate_view_->GetDimmerBoundsForTest();
793 return gfx::Rect(); 793 return gfx::Rect();
794 } 794 }
795 795
796 void ShelfWidget::DisableDimmingAnimationsForTest() { 796 void ShelfWidget::DisableDimmingAnimationsForTest() {
797 DCHECK(delegate_view_); 797 DCHECK(delegate_view_);
798 return delegate_view_->disable_dimming_animations_for_test(); 798 return delegate_view_->disable_dimming_animations_for_test();
799 } 799 }
800 800
801 void ShelfWidget::OnMouseEvent(ui::MouseEvent* event) {
802 Widget::OnMouseEvent(event);
803 if (Shell::GetInstance()->in_mus() && shelf_layout_manager_)
804 shelf_layout_manager_->UpdateAutoHideForMouseEvent(event);
805 }
806
807 void ShelfWidget::OnGestureEvent(ui::GestureEvent* event) {
808 Widget::OnGestureEvent(event);
809 if (Shell::GetInstance()->in_mus() && shelf_layout_manager_)
810 shelf_layout_manager_->UpdateAutoHideForGestureEvent(event);
811 }
812
801 } // namespace ash 813 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698