| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef ASH_SYSUI_SYSUI_APPLICATION_H_ | |
| 6 #define ASH_SYSUI_SYSUI_APPLICATION_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "mojo/public/cpp/bindings/binding_set.h" | |
| 12 #include "services/shell/public/cpp/service.h" | |
| 13 #include "services/tracing/public/cpp/provider.h" | |
| 14 #include "services/ui/public/cpp/input_devices/input_device_client.h" | |
| 15 | |
| 16 namespace ash { | |
| 17 namespace sysui { | |
| 18 | |
| 19 class AshInit; | |
| 20 | |
| 21 class SysUIApplication : public shell::Service { | |
| 22 public: | |
| 23 SysUIApplication(); | |
| 24 ~SysUIApplication() override; | |
| 25 | |
| 26 private: | |
| 27 // shell::Service: | |
| 28 void OnStart(const ::shell::Identity& identity) override; | |
| 29 bool OnConnect(const ::shell::Identity& remote_identity, | |
| 30 ::shell::InterfaceRegistry* registry) override; | |
| 31 | |
| 32 tracing::Provider tracing_; | |
| 33 std::unique_ptr<AshInit> ash_init_; | |
| 34 | |
| 35 // Subscribes to updates about input-devices. | |
| 36 ui::InputDeviceClient input_device_client_; | |
| 37 | |
| 38 DISALLOW_COPY_AND_ASSIGN(SysUIApplication); | |
| 39 }; | |
| 40 | |
| 41 } // namespace sysui | |
| 42 } // namespace ash | |
| 43 | |
| 44 #endif // ASH_SYSUI_SYSUI_APPLICATION_H_ | |
| OLD | NEW |