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

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

Issue 2795883002: Eliminate OnConnect usage (Closed)
Patch Set: . Created 3 years, 8 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/tracing/service.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 <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 return window_tree_client_.get(); 62 return window_tree_client_.get();
63 } 63 }
64 64
65 private: 65 private:
66 virtual void OnStartImpl() = 0; 66 virtual void OnStartImpl() = 0;
67 virtual std::unique_ptr<aura::WindowTreeClient> CreateWindowTreeClient() = 0; 67 virtual std::unique_ptr<aura::WindowTreeClient> CreateWindowTreeClient() = 0;
68 bool HasPendingWindowTreeData() const; 68 bool HasPendingWindowTreeData() const;
69 69
70 // service_manager::Service: 70 // service_manager::Service:
71 void OnStart() override; 71 void OnStart() override;
72 bool OnConnect(const service_manager::ServiceInfo& remote_info,
73 service_manager::InterfaceRegistry* registry) override;
74 72
75 // aura::WindowTreeClientDelegate: 73 // aura::WindowTreeClientDelegate:
76 void OnEmbed( 74 void OnEmbed(
77 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) override; 75 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) override;
78 void OnUnembed(aura::Window* root) override; 76 void OnUnembed(aura::Window* root) override;
79 void OnEmbedRootDestroyed(aura::WindowTreeHostMus* window_tree_host) override; 77 void OnEmbedRootDestroyed(aura::WindowTreeHostMus* window_tree_host) override;
80 void OnLostConnection(aura::WindowTreeClient* client) override; 78 void OnLostConnection(aura::WindowTreeClient* client) override;
81 void OnPointerEventObserved(const ui::PointerEvent& event, 79 void OnPointerEventObserved(const ui::PointerEvent& event,
82 aura::Window* target) override; 80 aura::Window* target) override;
83 aura::PropertyConverter* GetPropertyConverter() override; 81 aura::PropertyConverter* GetPropertyConverter() override;
(...skipping 11 matching lines...) Expand all
95 // next call to InitWindowTreeData. 93 // next call to InitWindowTreeData.
96 std::vector<std::unique_ptr<WindowTreeData>> window_tree_data_list_; 94 std::vector<std::unique_ptr<WindowTreeData>> window_tree_data_list_;
97 95
98 DISALLOW_COPY_AND_ASSIGN(MusDemo); 96 DISALLOW_COPY_AND_ASSIGN(MusDemo);
99 }; 97 };
100 98
101 } // namespace demo 99 } // namespace demo
102 } // namespace ui 100 } // namespace ui
103 101
104 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_ 102 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_
OLDNEW
« no previous file with comments | « services/tracing/service.cc ('k') | services/ui/demo/mus_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698