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

Side by Side Diff: services/ui/demo/mus_demo.h

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 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
« no previous file with comments | « services/ui/demo/main.cc ('k') | services/ui/demo/mus_demo.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 SERVICES_UI_DEMO_MUS_DEMO_H_ 5 #ifndef SERVICES_UI_DEMO_MUS_DEMO_H_
6 #define SERVICES_UI_DEMO_MUS_DEMO_H_ 6 #define SERVICES_UI_DEMO_MUS_DEMO_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 10 matching lines...) Expand all
21 21
22 namespace ui { 22 namespace ui {
23 class BitmapUploader; 23 class BitmapUploader;
24 class GpuService; 24 class GpuService;
25 25
26 namespace demo { 26 namespace demo {
27 27
28 // A simple MUS Demo service. This service connects to the mojo:ui, creates a 28 // A simple MUS Demo service. This service connects to the mojo:ui, creates a
29 // new window and draws a spinning square in the center of the window. Provides 29 // new window and draws a spinning square in the center of the window. Provides
30 // a simple way to demonstrate that the graphic stack works as intended. 30 // a simple way to demonstrate that the graphic stack works as intended.
31 class MusDemo : public shell::Service, 31 class MusDemo : public service_manager::Service,
32 public WindowTreeClientDelegate, 32 public WindowTreeClientDelegate,
33 public WindowManagerDelegate { 33 public WindowManagerDelegate {
34 public: 34 public:
35 MusDemo(); 35 MusDemo();
36 ~MusDemo() override; 36 ~MusDemo() override;
37 37
38 private: 38 private:
39 // shell::Service: 39 // service_manager::Service:
40 void OnStart(const shell::Identity& identity) override; 40 void OnStart(const service_manager::Identity& identity) override;
41 bool OnConnect(const shell::Identity& remote_identity, 41 bool OnConnect(const service_manager::Identity& remote_identity,
42 shell::InterfaceRegistry* registry) override; 42 service_manager::InterfaceRegistry* registry) override;
43 43
44 // WindowTreeClientDelegate: 44 // WindowTreeClientDelegate:
45 void OnEmbed(Window* root) override; 45 void OnEmbed(Window* root) override;
46 void OnEmbedRootDestroyed(Window* root) override; 46 void OnEmbedRootDestroyed(Window* root) override;
47 void OnLostConnection(WindowTreeClient* client) override; 47 void OnLostConnection(WindowTreeClient* client) override;
48 void OnPointerEventObserved(const PointerEvent& event, 48 void OnPointerEventObserved(const PointerEvent& event,
49 Window* target) override; 49 Window* target) override;
50 50
51 // WindowManagerDelegate: 51 // WindowManagerDelegate:
52 void SetWindowManagerClient(WindowManagerClient* client) override; 52 void SetWindowManagerClient(WindowManagerClient* client) override;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // Current rotation angle for drawing. 89 // Current rotation angle for drawing.
90 double angle_ = 0.0; 90 double angle_ = 0.0;
91 91
92 DISALLOW_COPY_AND_ASSIGN(MusDemo); 92 DISALLOW_COPY_AND_ASSIGN(MusDemo);
93 }; 93 };
94 94
95 } // namespace demo 95 } // namespace demo
96 } // namespace ui 96 } // namespace ui
97 97
98 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_ 98 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_
OLDNEW
« 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