| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |