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 MASH_APP_DRIVER_APP_DRIVER_H_ | 5 #ifndef MASH_APP_DRIVER_APP_DRIVER_H_ |
6 #define MASH_APP_DRIVER_APP_DRIVER_H_ | 6 #define MASH_APP_DRIVER_APP_DRIVER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "components/mus/public/interfaces/accelerator_registrar.mojom.h" | |
16 #include "mojo/public/cpp/bindings/binding.h" | 15 #include "mojo/public/cpp/bindings/binding.h" |
17 #include "services/catalog/public/interfaces/catalog.mojom.h" | 16 #include "services/catalog/public/interfaces/catalog.mojom.h" |
18 #include "services/shell/public/cpp/shell_client.h" | 17 #include "services/shell/public/cpp/shell_client.h" |
| 18 #include "services/ui/public/interfaces/accelerator_registrar.mojom.h" |
19 | 19 |
20 namespace mash { | 20 namespace mash { |
21 namespace app_driver { | 21 namespace app_driver { |
22 | 22 |
23 class AppDriver : public shell::ShellClient, | 23 class AppDriver : public shell::ShellClient, |
24 public mus::mojom::AcceleratorHandler { | 24 public mus::mojom::AcceleratorHandler { |
25 public: | 25 public: |
26 AppDriver(); | 26 AppDriver(); |
27 ~AppDriver() override; | 27 ~AppDriver() override; |
28 | 28 |
(...skipping 17 matching lines...) Expand all Loading... |
46 mojo::Binding<mus::mojom::AcceleratorHandler> binding_; | 46 mojo::Binding<mus::mojom::AcceleratorHandler> binding_; |
47 base::WeakPtrFactory<AppDriver> weak_factory_; | 47 base::WeakPtrFactory<AppDriver> weak_factory_; |
48 | 48 |
49 DISALLOW_COPY_AND_ASSIGN(AppDriver); | 49 DISALLOW_COPY_AND_ASSIGN(AppDriver); |
50 }; | 50 }; |
51 | 51 |
52 } // namespace app_driver | 52 } // namespace app_driver |
53 } // namespace mash | 53 } // namespace mash |
54 | 54 |
55 #endif // MASH_APP_DRIVER_APP_DRIVER_H_ | 55 #endif // MASH_APP_DRIVER_APP_DRIVER_H_ |
OLD | NEW |