| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |