OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #ifndef ASH_ACCELERATORS_ACCELERATOR_DISPATCHER_H_ | 5 #ifndef ASH_ACCELERATORS_ACCELERATOR_DISPATCHER_H_ |
6 #define ASH_ACCELERATORS_ACCELERATOR_DISPATCHER_H_ | 6 #define ASH_ACCELERATORS_ACCELERATOR_DISPATCHER_H_ |
7 #pragma once | |
8 | 7 |
9 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
10 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
11 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
12 #include "ui/aura/window_observer.h" | 11 #include "ui/aura/window_observer.h" |
13 | 12 |
14 namespace ash { | 13 namespace ash { |
15 | 14 |
16 // Dispatcher for handling accelerators in ash. | 15 // Dispatcher for handling accelerators in ash. |
17 // Wraps a nested dispatcher to which control is passed if no accelerator key | 16 // Wraps a nested dispatcher to which control is passed if no accelerator key |
(...skipping 20 matching lines...) Expand all Loading... |
38 // Window associated with |nested_dispatcher_| which is used to determine | 37 // Window associated with |nested_dispatcher_| which is used to determine |
39 // whether the |nested_dispatcher_| is allowed to receive events. | 38 // whether the |nested_dispatcher_| is allowed to receive events. |
40 aura::Window* associated_window_; | 39 aura::Window* associated_window_; |
41 | 40 |
42 DISALLOW_COPY_AND_ASSIGN(AcceleratorDispatcher); | 41 DISALLOW_COPY_AND_ASSIGN(AcceleratorDispatcher); |
43 }; | 42 }; |
44 | 43 |
45 } // namespace ash | 44 } // namespace ash |
46 | 45 |
47 #endif // ASH_ACCELERATORS_ACCELERATOR_DISPATCHER_H_ | 46 #endif // ASH_ACCELERATORS_ACCELERATOR_DISPATCHER_H_ |
OLD | NEW |