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

Unified Diff: services/ui/demo/mus_demo.h

Issue 2459123003: Unsplit the MUS demo. (Closed)
Patch Set: Fixed gn check Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/demo/main.cc ('k') | services/ui/demo/mus_demo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/demo/mus_demo.h
diff --git a/services/ui/demo/mus_demo.h b/services/ui/demo/mus_demo.h
index d247aa2d2ed25c345ab6c3ce6399233c4fde0d7e..942ee9d95d5509fa5f94ec1ec4502e725fe5a405 100644
--- a/services/ui/demo/mus_demo.h
+++ b/services/ui/demo/mus_demo.h
@@ -25,18 +25,22 @@ class GpuService;
namespace demo {
-// A simple MUS Demo. It connects to the service:ui, creates a new window and
-// draws a spinning square in the center of the window. Provides a simple way
-// to demonstrate that the graphic stack works as intended.
-class MusDemo : public WindowTreeClientDelegate,
+// A simple MUS Demo service. This service connects to the service:ui, creates a
+// new window and draws a spinning square in the center of the window. Provides
+// a simple way to demonstrate that the graphic stack works as intended.
+class MusDemo : public service_manager::Service,
+ public WindowTreeClientDelegate,
public WindowManagerDelegate {
public:
MusDemo();
~MusDemo() override;
- void Start(service_manager::Connector* connector);
-
private:
+ // service_manager::Service:
+ void OnStart(const service_manager::ServiceInfo& info) override;
+ bool OnConnect(const service_manager::ServiceInfo& remote_info,
+ service_manager::InterfaceRegistry* registry) override;
+
// WindowTreeClientDelegate:
void OnEmbed(Window* root) override;
void OnEmbedRootDestroyed(Window* root) override;
« no previous file with comments | « services/ui/demo/main.cc ('k') | services/ui/demo/mus_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698