OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 ASH_MUS_WINDOW_MANAGER_H_ | 5 #ifndef ASH_MUS_WINDOW_MANAGER_H_ |
6 #define ASH_MUS_WINDOW_MANAGER_H_ | 6 #define ASH_MUS_WINDOW_MANAGER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 public ::ui::WindowObserver, | 45 public ::ui::WindowObserver, |
46 public ::ui::WindowTreeClientDelegate { | 46 public ::ui::WindowTreeClientDelegate { |
47 public: | 47 public: |
48 explicit WindowManager(shell::Connector* connector); | 48 explicit WindowManager(shell::Connector* connector); |
49 ~WindowManager() override; | 49 ~WindowManager() override; |
50 | 50 |
51 void Init(::ui::WindowTreeClient* window_tree_client); | 51 void Init(::ui::WindowTreeClient* window_tree_client); |
52 | 52 |
53 WmShellMus* shell() { return shell_.get(); } | 53 WmShellMus* shell() { return shell_.get(); } |
54 | 54 |
| 55 ::ui::WindowTreeClient* window_tree_client() { return window_tree_client_; } |
| 56 |
55 ::ui::WindowManagerClient* window_manager_client() { | 57 ::ui::WindowManagerClient* window_manager_client() { |
56 return window_manager_client_; | 58 return window_manager_client_; |
57 } | 59 } |
58 | 60 |
59 shell::Connector* connector() { return connector_; } | 61 shell::Connector* connector() { return connector_; } |
60 | 62 |
61 void SetScreenLocked(bool is_locked); | 63 void SetScreenLocked(bool is_locked); |
62 | 64 |
63 // Creates a new top level window. | 65 // Creates a new top level window. |
64 ::ui::Window* NewTopLevelWindow( | 66 ::ui::Window* NewTopLevelWindow( |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 128 |
127 std::unique_ptr<WmLookupMus> lookup_; | 129 std::unique_ptr<WmLookupMus> lookup_; |
128 | 130 |
129 DISALLOW_COPY_AND_ASSIGN(WindowManager); | 131 DISALLOW_COPY_AND_ASSIGN(WindowManager); |
130 }; | 132 }; |
131 | 133 |
132 } // namespace mus | 134 } // namespace mus |
133 } // namespace ash | 135 } // namespace ash |
134 | 136 |
135 #endif // ASH_MUS_WINDOW_MANAGER_H_ | 137 #endif // ASH_MUS_WINDOW_MANAGER_H_ |
OLD | NEW |