Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: ash/mus/accelerator_registrar_impl.cc

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/mus/accelerator_registrar_impl.h ('k') | ash/mus/accelerator_registrar_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/mus/accelerator_registrar_impl.h ('k') | ash/mus/accelerator_registrar_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698