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

Side by Side Diff: components/mus/ws/window_tree.h

Issue 1782123003: Makes WindowTree take the AccessPolicy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 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
« no previous file with comments | « components/mus/ws/window_manager_access_policy.cc ('k') | components/mus/ws/window_tree.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_MUS_WS_WINDOW_TREE_H_ 5 #ifndef COMPONENTS_MUS_WS_WINDOW_TREE_H_
6 #define COMPONENTS_MUS_WS_WINDOW_TREE_H_ 6 #define COMPONENTS_MUS_WS_WINDOW_TREE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // WindowTree notifies its client as changes happen to windows exposed to the 53 // WindowTree notifies its client as changes happen to windows exposed to the
54 // the client. 54 // the client.
55 // 55 //
56 // See ids.h for details on how WindowTree handles identity of windows. 56 // See ids.h for details on how WindowTree handles identity of windows.
57 class WindowTree : public mojom::WindowTree, 57 class WindowTree : public mojom::WindowTree,
58 public AccessPolicyDelegate, 58 public AccessPolicyDelegate,
59 public mojom::WindowManagerClient { 59 public mojom::WindowManagerClient {
60 public: 60 public:
61 WindowTree(ConnectionManager* connection_manager, 61 WindowTree(ConnectionManager* connection_manager,
62 const UserId& user_id, 62 const UserId& user_id,
63 ServerWindow* root); 63 ServerWindow* root,
64 scoped_ptr<AccessPolicy> access_policy);
64 ~WindowTree() override; 65 ~WindowTree() override;
65 66
66 void Init(scoped_ptr<WindowTreeBinding> binding, mojom::WindowTreePtr tree); 67 void Init(scoped_ptr<WindowTreeBinding> binding, mojom::WindowTreePtr tree);
67 68
68 // Called if this WindowTree hosts the WindowManager. This happens if 69 // Called if this WindowTree hosts the WindowManager. This happens if
69 // this WindowTree serves as the root of a WindowTreeHost. 70 // this WindowTree serves as the root of a WindowTreeHost.
70 void ConfigureWindowManager(); 71 void ConfigureWindowManager();
71 72
72 ConnectionSpecificId id() const { return id_; } 73 ConnectionSpecificId id() const { return id_; }
73 74
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 425
425 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_; 426 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_;
426 427
427 DISALLOW_COPY_AND_ASSIGN(WindowTree); 428 DISALLOW_COPY_AND_ASSIGN(WindowTree);
428 }; 429 };
429 430
430 } // namespace ws 431 } // namespace ws
431 } // namespace mus 432 } // namespace mus
432 433
433 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ 434 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_
OLDNEW
« no previous file with comments | « components/mus/ws/window_manager_access_policy.cc ('k') | components/mus/ws/window_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698