| OLD | NEW |
| 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 MASH_WM_ROOT_WINDOW_CONTROLLER_H_ | 5 #ifndef MASH_WM_ROOT_WINDOW_CONTROLLER_H_ |
| 6 #define MASH_WM_ROOT_WINDOW_CONTROLLER_H_ | 6 #define MASH_WM_ROOT_WINDOW_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "components/mus/public/cpp/window_observer.h" | 8 #include "components/mus/public/cpp/window_observer.h" |
| 9 #include "components/mus/public/cpp/window_tree_delegate.h" | 9 #include "components/mus/public/cpp/window_tree_delegate.h" |
| 10 #include "components/mus/public/interfaces/window_manager_constants.mojom.h" | 10 #include "components/mus/public/interfaces/window_manager_constants.mojom.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 mus::Window* GetWindowForContainer(mojom::Container container); | 57 mus::Window* GetWindowForContainer(mojom::Container container); |
| 58 mus::Window* GetWindowById(mus::Id id); | 58 mus::Window* GetWindowById(mus::Id id); |
| 59 bool WindowIsContainer(const mus::Window* window) const; | 59 bool WindowIsContainer(const mus::Window* window) const; |
| 60 | 60 |
| 61 WindowManager* window_manager() { return window_manager_.get(); } | 61 WindowManager* window_manager() { return window_manager_.get(); } |
| 62 | 62 |
| 63 mus::WindowManagerClient* window_manager_client(); | 63 mus::WindowManagerClient* window_manager_client(); |
| 64 | 64 |
| 65 void OnAccelerator(uint32_t id, const ui::Event& event); | 65 void OnAccelerator(uint32_t id, const ui::Event& event); |
| 66 | 66 |
| 67 LayoutManager* GetLayoutManagerForContainer(mojom::Container container); |
| 68 |
| 67 private: | 69 private: |
| 68 explicit RootWindowController(WindowManagerApplication* app); | 70 explicit RootWindowController(WindowManagerApplication* app); |
| 69 ~RootWindowController() override; | 71 ~RootWindowController() override; |
| 70 | 72 |
| 71 void AddAccelerators(); | 73 void AddAccelerators(); |
| 72 | 74 |
| 73 // WindowTreeDelegate: | 75 // WindowTreeDelegate: |
| 74 void OnEmbed(mus::Window* root) override; | 76 void OnEmbed(mus::Window* root) override; |
| 75 void OnConnectionLost(mus::WindowTreeConnection* connection) override; | 77 void OnConnectionLost(mus::WindowTreeConnection* connection) override; |
| 76 | 78 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 94 | 96 |
| 95 mus::mojom::DisplayPtr display_; | 97 mus::mojom::DisplayPtr display_; |
| 96 | 98 |
| 97 DISALLOW_COPY_AND_ASSIGN(RootWindowController); | 99 DISALLOW_COPY_AND_ASSIGN(RootWindowController); |
| 98 }; | 100 }; |
| 99 | 101 |
| 100 } // namespace wm | 102 } // namespace wm |
| 101 } // namespace mash | 103 } // namespace mash |
| 102 | 104 |
| 103 #endif // MASH_WM_ROOT_WINDOW_CONTROLLER_H_ | 105 #endif // MASH_WM_ROOT_WINDOW_CONTROLLER_H_ |
| OLD | NEW |