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

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

Issue 2697013004: Reland Mus Demo: Move definition of WindowTreeData into separate files (Closed)
Patch Set: Created 3 years, 10 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/BUILD.gn ('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 17 matching lines...) Expand all
28 } 28 }
29 } // namespace aura 29 } // namespace aura
30 30
31 namespace wm { 31 namespace wm {
32 class WMState; 32 class WMState;
33 } 33 }
34 34
35 namespace ui { 35 namespace ui {
36 namespace demo { 36 namespace demo {
37 37
38 class WindowTreeData;
39
38 // A simple MUS Demo service. This service connects to the service:ui, adds a 40 // A simple MUS Demo service. This service connects to the service:ui, adds a
39 // new window to the root Window, and draws a spinning square in the center of 41 // new window to the root Window, and draws a spinning square in the center of
40 // the window. Provides a simple way to demonstrate that the graphic stack works 42 // the window. Provides a simple way to demonstrate that the graphic stack works
41 // as intended. 43 // as intended.
42 class MusDemo : public service_manager::Service, 44 class MusDemo : public service_manager::Service,
43 public aura::WindowTreeClientDelegate, 45 public aura::WindowTreeClientDelegate,
44 public aura::WindowManagerDelegate { 46 public aura::WindowManagerDelegate {
45 public: 47 public:
46 MusDemo(); 48 MusDemo();
47 ~MusDemo() override; 49 ~MusDemo() override;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 void OnWmDeactivateWindow(aura::Window* window) override; 97 void OnWmDeactivateWindow(aura::Window* window) override;
96 98
97 std::unique_ptr<aura::WindowTreeClient> window_tree_client_; 99 std::unique_ptr<aura::WindowTreeClient> window_tree_client_;
98 std::unique_ptr<aura::Env> env_; 100 std::unique_ptr<aura::Env> env_;
99 std::unique_ptr<display::ScreenBase> screen_; 101 std::unique_ptr<display::ScreenBase> screen_;
100 102
101 std::unique_ptr<aura::client::DefaultCaptureClient> capture_client_; 103 std::unique_ptr<aura::client::DefaultCaptureClient> capture_client_;
102 std::unique_ptr<::wm::WMState> wm_state_; 104 std::unique_ptr<::wm::WMState> wm_state_;
103 std::unique_ptr<aura::PropertyConverter> property_converter_; 105 std::unique_ptr<aura::PropertyConverter> property_converter_;
104 106
105 class WindowTreeData;
106 std::unique_ptr<WindowTreeData> window_tree_data_; 107 std::unique_ptr<WindowTreeData> window_tree_data_;
107 108
108 DISALLOW_COPY_AND_ASSIGN(MusDemo); 109 DISALLOW_COPY_AND_ASSIGN(MusDemo);
109 }; 110 };
110 111
111 } // namespace demo 112 } // namespace demo
112 } // namespace aura 113 } // namespace aura
113 114
114 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_ 115 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_
OLDNEW
« no previous file with comments | « services/ui/demo/BUILD.gn ('k') | services/ui/demo/mus_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698