| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_MUS_ACCELERATOR_REGISTRAR_IMPL_H_ | 5 #ifndef ASH_MUS_ACCELERATOR_REGISTRAR_IMPL_H_ |
| 6 #define ASH_MUS_ACCELERATOR_REGISTRAR_IMPL_H_ | 6 #define ASH_MUS_ACCELERATOR_REGISTRAR_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 | 11 |
| 12 #include "ash/mus/window_manager_observer.h" | 12 #include "ash/mus/window_manager_observer.h" |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "components/mus/public/interfaces/accelerator_registrar.mojom.h" | |
| 16 #include "mojo/public/cpp/bindings/binding_set.h" | 15 #include "mojo/public/cpp/bindings/binding_set.h" |
| 17 #include "mojo/public/cpp/bindings/strong_binding.h" | 16 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 17 #include "services/ui/public/interfaces/accelerator_registrar.mojom.h" |
| 18 | 18 |
| 19 namespace ash { | 19 namespace ash { |
| 20 namespace mus { | 20 namespace mus { |
| 21 | 21 |
| 22 class WindowManager; | 22 class WindowManager; |
| 23 | 23 |
| 24 // Manages AcceleratorHandlers from a particular AcceleratorRegistrar | 24 // Manages AcceleratorHandlers from a particular AcceleratorRegistrar |
| 25 // connection. This manages its own lifetime, and destroys itself when the | 25 // connection. This manages its own lifetime, and destroys itself when the |
| 26 // AcceleratorRegistrar and all its AcceleratorHandlers are disconnected. Upon | 26 // AcceleratorRegistrar and all its AcceleratorHandlers are disconnected. Upon |
| 27 // destruction, it calls the DestroyCallback. | 27 // destruction, it calls the DestroyCallback. |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 std::set<uint32_t> accelerators_; | 69 std::set<uint32_t> accelerators_; |
| 70 DestroyCallback destroy_callback_; | 70 DestroyCallback destroy_callback_; |
| 71 | 71 |
| 72 DISALLOW_COPY_AND_ASSIGN(AcceleratorRegistrarImpl); | 72 DISALLOW_COPY_AND_ASSIGN(AcceleratorRegistrarImpl); |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace mus | 75 } // namespace mus |
| 76 } // namespace ash | 76 } // namespace ash |
| 77 | 77 |
| 78 #endif // ASH_MUS_ACCELERATOR_REGISTRAR_IMPL_H_ | 78 #endif // ASH_MUS_ACCELERATOR_REGISTRAR_IMPL_H_ |
| OLD | NEW |