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

Side by Side Diff: ash/sysui/sysui_application.h

Issue 2323063003: mash: Port sysui's WallpaperDelegateMus to mojo:ash. (Closed)
Patch Set: Alternative display info workaround. Created 4 years, 3 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
OLDNEW
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_SYSUI_SYSUI_APPLICATION_H_ 5 #ifndef ASH_SYSUI_SYSUI_APPLICATION_H_
6 #define ASH_SYSUI_SYSUI_APPLICATION_H_ 6 #define ASH_SYSUI_SYSUI_APPLICATION_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/public/interfaces/wallpaper.mojom.h"
11 #include "base/macros.h" 10 #include "base/macros.h"
12 #include "mojo/public/cpp/bindings/binding_set.h" 11 #include "mojo/public/cpp/bindings/binding_set.h"
13 #include "services/shell/public/cpp/service.h" 12 #include "services/shell/public/cpp/service.h"
14 #include "services/tracing/public/cpp/provider.h" 13 #include "services/tracing/public/cpp/provider.h"
15 #include "services/ui/public/cpp/input_devices/input_device_client.h" 14 #include "services/ui/public/cpp/input_devices/input_device_client.h"
16 15
17 namespace ash { 16 namespace ash {
18 namespace sysui { 17 namespace sysui {
19 18
20 class AshInit; 19 class AshInit;
21 20
22 class SysUIApplication 21 class SysUIApplication : public shell::Service {
23 : public shell::Service,
24 public shell::InterfaceFactory<mojom::WallpaperController> {
25 public: 22 public:
26 SysUIApplication(); 23 SysUIApplication();
27 ~SysUIApplication() override; 24 ~SysUIApplication() override;
28 25
29 private: 26 private:
30 // shell::Service: 27 // shell::Service:
31 void OnStart(const ::shell::Identity& identity) override; 28 void OnStart(const ::shell::Identity& identity) override;
32 bool OnConnect(const ::shell::Identity& remote_identity, 29 bool OnConnect(const ::shell::Identity& remote_identity,
33 ::shell::InterfaceRegistry* registry) override; 30 ::shell::InterfaceRegistry* registry) override;
34 31
35 // InterfaceFactory<mojom::WallpaperController>:
36 void Create(const shell::Identity& remote_identity,
37 mojom::WallpaperControllerRequest request) override;
38
39 tracing::Provider tracing_; 32 tracing::Provider tracing_;
40 std::unique_ptr<AshInit> ash_init_; 33 std::unique_ptr<AshInit> ash_init_;
41 34
42 mojo::BindingSet<mojom::WallpaperController> wallpaper_controller_bindings_;
43
44 // Subscribes to updates about input-devices. 35 // Subscribes to updates about input-devices.
45 ui::InputDeviceClient input_device_client_; 36 ui::InputDeviceClient input_device_client_;
46 37
47 DISALLOW_COPY_AND_ASSIGN(SysUIApplication); 38 DISALLOW_COPY_AND_ASSIGN(SysUIApplication);
48 }; 39 };
49 40
50 } // namespace sysui 41 } // namespace sysui
51 } // namespace ash 42 } // namespace ash
52 43
53 #endif // ASH_SYSUI_SYSUI_APPLICATION_H_ 44 #endif // ASH_SYSUI_SYSUI_APPLICATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698