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

Side by Side Diff: services/ui/ws/window_manager_window_tree_factory_set.h

Issue 2306003002: Set name for WindowTree of WindowManager (Closed)
Patch Set: Set name for WindowTree of WindowManager Created 4 years, 3 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 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_WS_WINDOW_MANAGER_WINDOW_TREE_FACTORY_SET_H_ 5 #ifndef SERVICES_UI_WS_WINDOW_MANAGER_WINDOW_TREE_FACTORY_SET_H_
6 #define SERVICES_UI_WS_WINDOW_MANAGER_WINDOW_TREE_FACTORY_SET_H_ 6 #define SERVICES_UI_WS_WINDOW_MANAGER_WINDOW_TREE_FACTORY_SET_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 27 matching lines...) Expand all
38 ~WindowManagerWindowTreeFactorySet() override; 38 ~WindowManagerWindowTreeFactorySet() override;
39 39
40 WindowServer* window_server() { return window_server_; } 40 WindowServer* window_server() { return window_server_; }
41 41
42 // Creates a new WindowManagerWindowTreeFactory for the specified user, 42 // Creates a new WindowManagerWindowTreeFactory for the specified user,
43 // unless one has been set, in which case the call is ignored. The newly 43 // unless one has been set, in which case the call is ignored. The newly
44 // created WindowManagerWindowTreeFactory does not immediately have a 44 // created WindowManagerWindowTreeFactory does not immediately have a
45 // WindowTree associated with it. 45 // WindowTree associated with it.
46 WindowManagerWindowTreeFactory* Add( 46 WindowManagerWindowTreeFactory* Add(
47 const UserId& user_id, 47 const UserId& user_id,
48 const std::string& client_name,
48 mojo::InterfaceRequest<mojom::WindowManagerWindowTreeFactory> request); 49 mojo::InterfaceRequest<mojom::WindowManagerWindowTreeFactory> request);
49 50
50 // Returns the WindowManagerState for the specified user, or null if 51 // Returns the WindowManagerState for the specified user, or null if
51 // not yet set. 52 // not yet set.
52 WindowManagerState* GetWindowManagerStateForUser(const UserId& user_id); 53 WindowManagerState* GetWindowManagerStateForUser(const UserId& user_id);
53 54
54 // Deletes the WindowManagerWindowTreeFactory associated with |tree|. Does 55 // Deletes the WindowManagerWindowTreeFactory associated with |tree|. Does
55 // nothing if there is no WindowManagerWindowTreeFactory associated with 56 // nothing if there is no WindowManagerWindowTreeFactory associated with
56 // |tree|. 57 // |tree|.
57 void DeleteFactoryAssociatedWithTree(WindowTree* tree); 58 void DeleteFactoryAssociatedWithTree(WindowTree* tree);
(...skipping 26 matching lines...) Expand all
84 85
85 base::ObserverList<WindowManagerWindowTreeFactorySetObserver> observers_; 86 base::ObserverList<WindowManagerWindowTreeFactorySetObserver> observers_;
86 87
87 DISALLOW_COPY_AND_ASSIGN(WindowManagerWindowTreeFactorySet); 88 DISALLOW_COPY_AND_ASSIGN(WindowManagerWindowTreeFactorySet);
88 }; 89 };
89 90
90 } // namespace ws 91 } // namespace ws
91 } // namespace ui 92 } // namespace ui
92 93
93 #endif // SERVICES_UI_WS_WINDOW_MANAGER_WINDOW_TREE_FACTORY_SET_H_ 94 #endif // SERVICES_UI_WS_WINDOW_MANAGER_WINDOW_TREE_FACTORY_SET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698