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

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

Issue 2755673003: Allow parallel creation of windows
Patch Set: Created 3 years, 9 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_EXTERNAL_H_ 5 #ifndef SERVICES_UI_DEMO_MUS_DEMO_EXTERNAL_H_
6 #define SERVICES_UI_DEMO_MUS_DEMO_EXTERNAL_H_ 6 #define SERVICES_UI_DEMO_MUS_DEMO_EXTERNAL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 11 matching lines...) Expand all
22 ~MusDemoExternal() final; 22 ~MusDemoExternal() final;
23 23
24 private: 24 private:
25 void OpenNewWindow(); 25 void OpenNewWindow();
26 26
27 // ui::demo::MusDemo: 27 // ui::demo::MusDemo:
28 void OnStartImpl() final; 28 void OnStartImpl() final;
29 std::unique_ptr<aura::WindowTreeClient> CreateWindowTreeClient() final; 29 std::unique_ptr<aura::WindowTreeClient> CreateWindowTreeClient() final;
30 30
31 // aura::WindowTreeClientDelegate: 31 // aura::WindowTreeClientDelegate:
32 void OnEmbed(std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) final; 32 void OnRootWindowEmbed(aura::WindowTreeHostMus* window_tree_host) final;
fwang 2017/03/15 14:37:56 What about OnEmbedRootReady, to be consistent with
msisov 2017/03/16 08:17:52 Done.
33 void OnEmbedRootDestroyed(aura::WindowTreeHostMus* window_tree_host) final; 33 void OnEmbedRootDestroyed(aura::WindowTreeHostMus* window_tree_host) final;
34 34
35 size_t initialized_windows_count_ = 0; 35 size_t initialized_windows_count_ = 0;
36 36
37 size_t number_of_windows_ = 1; 37 size_t number_of_windows_ = 1;
38 38
39 std::vector<std::unique_ptr<aura::WindowTreeHostMus>>
40 window_tree_host_mus_list_;
fwang 2017/03/15 14:37:56 I think you can just keep this in WindowTreeData.
msisov 2017/03/16 08:17:52 Done.
41
39 DISALLOW_COPY_AND_ASSIGN(MusDemoExternal); 42 DISALLOW_COPY_AND_ASSIGN(MusDemoExternal);
40 }; 43 };
41 44
42 } // namespace demo 45 } // namespace demo
43 } // namespace ui 46 } // namespace ui
44 47
45 #endif // SERVICES_UI_DEMO_MUS_DEMO_EXTERNAL_H_ 48 #endif // SERVICES_UI_DEMO_MUS_DEMO_EXTERNAL_H_
OLDNEW
« no previous file with comments | « no previous file | services/ui/demo/mus_demo_external.cc » ('j') | services/ui/demo/mus_demo_external.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698