OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/accelerators/accelerator_delegate.h" | 5 #include "ash/accelerators/accelerator_delegate.h" |
6 | 6 |
7 #include "ash/accelerators/accelerator_controller.h" | 7 #include "ash/common/accelerators/accelerator_controller.h" |
8 #include "ash/common/wm/window_state.h" | 8 #include "ash/common/wm/window_state.h" |
9 #include "ash/common/wm_shell.h" | 9 #include "ash/common/wm_shell.h" |
10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
11 #include "ash/wm/window_state_aura.h" | 11 #include "ash/wm/window_state_aura.h" |
12 #include "ui/base/accelerators/accelerator.h" | 12 #include "ui/base/accelerators/accelerator.h" |
13 #include "ui/events/event.h" | 13 #include "ui/events/event.h" |
14 #include "ui/wm/core/window_util.h" | 14 #include "ui/wm/core/window_util.h" |
15 | 15 |
16 namespace ash { | 16 namespace ash { |
17 | 17 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 // Handle preferred accelerators (such as ALT-TAB) before sending | 108 // Handle preferred accelerators (such as ALT-TAB) before sending |
109 // to the target. | 109 // to the target. |
110 if (shell->accelerator_controller()->IsPreferred(accelerator)) | 110 if (shell->accelerator_controller()->IsPreferred(accelerator)) |
111 return true; | 111 return true; |
112 | 112 |
113 return WmShell::Get()->GetAppListTargetVisibility(); | 113 return WmShell::Get()->GetAppListTargetVisibility(); |
114 } | 114 } |
115 | 115 |
116 } // namespace ash | 116 } // namespace ash |
OLD | NEW |