| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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_TOUCH_HUD_MUS_TOUCH_HUD_APPLICATION_H_ | 5 #ifndef ASH_TOUCH_HUD_MUS_TOUCH_HUD_APPLICATION_H_ |
| 6 #define ASH_TOUCH_HUD_MUS_TOUCH_HUD_APPLICATION_H_ | 6 #define ASH_TOUCH_HUD_MUS_TOUCH_HUD_APPLICATION_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 : public service_manager::Service, | 26 : public service_manager::Service, |
| 27 public mash::mojom::Launchable, | 27 public mash::mojom::Launchable, |
| 28 public service_manager::InterfaceFactory<mash::mojom::Launchable> { | 28 public service_manager::InterfaceFactory<mash::mojom::Launchable> { |
| 29 public: | 29 public: |
| 30 TouchHudApplication(); | 30 TouchHudApplication(); |
| 31 ~TouchHudApplication() override; | 31 ~TouchHudApplication() override; |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 // service_manager::Service: | 34 // service_manager::Service: |
| 35 void OnStart() override; | 35 void OnStart() override; |
| 36 void OnBindInterface(const service_manager::ServiceInfo& source_info, | 36 void OnBindInterface(const service_manager::BindSourceInfo& source_info, |
| 37 const std::string& interface_name, | 37 const std::string& interface_name, |
| 38 mojo::ScopedMessagePipeHandle interface_pipe) override; | 38 mojo::ScopedMessagePipeHandle interface_pipe) override; |
| 39 | 39 |
| 40 // mojom::Launchable: | 40 // mojom::Launchable: |
| 41 void Launch(uint32_t what, mash::mojom::LaunchMode how) override; | 41 void Launch(uint32_t what, mash::mojom::LaunchMode how) override; |
| 42 | 42 |
| 43 // service_manager::InterfaceFactory<mojom::Launchable>: | 43 // service_manager::InterfaceFactory<mojom::Launchable>: |
| 44 void Create(const service_manager::Identity& remote_identity, | 44 void Create(const service_manager::Identity& remote_identity, |
| 45 mash::mojom::LaunchableRequest request) override; | 45 mash::mojom::LaunchableRequest request) override; |
| 46 | 46 |
| 47 service_manager::BinderRegistry registry_; | 47 service_manager::BinderRegistry registry_; |
| 48 mojo::Binding<mash::mojom::Launchable> binding_; | 48 mojo::Binding<mash::mojom::Launchable> binding_; |
| 49 views::Widget* widget_ = nullptr; | 49 views::Widget* widget_ = nullptr; |
| 50 | 50 |
| 51 std::unique_ptr<views::AuraInit> aura_init_; | 51 std::unique_ptr<views::AuraInit> aura_init_; |
| 52 | 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(TouchHudApplication); | 53 DISALLOW_COPY_AND_ASSIGN(TouchHudApplication); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace touch_hud | 56 } // namespace touch_hud |
| 57 } // namespace ash | 57 } // namespace ash |
| 58 | 58 |
| 59 #endif // ASH_TOUCH_HUD_MUS_TOUCH_HUD_APPLICATION_H_ | 59 #endif // ASH_TOUCH_HUD_MUS_TOUCH_HUD_APPLICATION_H_ |
| OLD | NEW |