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 #include "ash/mus/accelerator_registrar_impl.h" | 5 #include "ash/mus/accelerator_registrar_impl.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "ash/mus/root_window_controller.h" | 10 #include "ash/mus/root_window_controller.h" |
11 #include "ash/mus/window_manager.h" | 11 #include "ash/mus/window_manager.h" |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "components/mus/public/cpp/window_manager_delegate.h" | 13 #include "services/ui/public/cpp/window_manager_delegate.h" |
14 | 14 |
15 namespace ash { | 15 namespace ash { |
16 namespace mus { | 16 namespace mus { |
17 | 17 |
18 namespace { | 18 namespace { |
19 const int kAcceleratorIdMask = 0xffff; | 19 const int kAcceleratorIdMask = 0xffff; |
20 | 20 |
21 void CallAddAcceleratorCallback( | 21 void CallAddAcceleratorCallback( |
22 const ::mus::mojom::AcceleratorRegistrar::AddAcceleratorCallback& callback, | 22 const ::mus::mojom::AcceleratorRegistrar::AddAcceleratorCallback& callback, |
23 bool result) { | 23 bool result) { |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 if (OwnsAccelerator(id)) | 139 if (OwnsAccelerator(id)) |
140 ProcessAccelerator(id, event); | 140 ProcessAccelerator(id, event); |
141 } | 141 } |
142 | 142 |
143 void AcceleratorRegistrarImpl::OnWindowTreeClientDestroyed() { | 143 void AcceleratorRegistrarImpl::OnWindowTreeClientDestroyed() { |
144 delete this; | 144 delete this; |
145 } | 145 } |
146 | 146 |
147 } // namespace mus | 147 } // namespace mus |
148 } // namespace ash | 148 } // namespace ash |
OLD | NEW |