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 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 19 matching lines...) Expand all Loading... |
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 service_manager::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 // service_manager::Service: | 39 // service_manager::Service: |
40 void OnStart(service_manager::ServiceContext* context) override; | 40 void OnStart() override; |
41 bool OnConnect(const service_manager::ServiceInfo& remote_info, | 41 bool OnConnect(const service_manager::ServiceInfo& remote_info, |
42 service_manager::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 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 // Last time a frame was drawn. | 93 // Last time a frame was drawn. |
94 base::TimeTicks last_draw_frame_time_; | 94 base::TimeTicks last_draw_frame_time_; |
95 | 95 |
96 DISALLOW_COPY_AND_ASSIGN(MusDemo); | 96 DISALLOW_COPY_AND_ASSIGN(MusDemo); |
97 }; | 97 }; |
98 | 98 |
99 } // namespace demo | 99 } // namespace demo |
100 } // namespace ui | 100 } // namespace ui |
101 | 101 |
102 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_ | 102 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_ |
OLD | NEW |