OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MASH_WM_USER_WINDOW_CONTROLLER_IMPL_H_ |
| 6 #define MASH_WM_USER_WINDOW_CONTROLLER_IMPL_H_ |
| 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "components/mus/common/types.h" |
| 12 #include "components/mus/public/cpp/window_observer.h" |
| 13 #include "mash/wm/public/interfaces/user_window_controller.mojom.h" |
| 14 |
| 15 namespace mash { |
| 16 namespace wm { |
| 17 |
| 18 class WindowManagerApplication; |
| 19 |
| 20 class UserWindowControllerImpl : public mash::wm::mojom::UserWindowController, |
| 21 public mus::WindowObserver { |
| 22 public: |
| 23 UserWindowControllerImpl(); |
| 24 ~UserWindowControllerImpl() override; |
| 25 |
| 26 void Initialize(WindowManagerApplication* state); |
| 27 |
| 28 private: |
| 29 // A helper to get the container for user windows. |
| 30 mus::Window* GetUserWindowContainer() const; |
| 31 |
| 32 // mus::WindowObserver: |
| 33 void OnTreeChanging(const TreeChangeParams& params) override; |
| 34 |
| 35 // mash::wm::mojom::UserWindowController: |
| 36 void AddUserWindowObserver( |
| 37 mash::wm::mojom::UserWindowObserverPtr observer) override; |
| 38 void FocusUserWindow(uint32_t window_id) override; |
| 39 |
| 40 WindowManagerApplication* state_; |
| 41 mash::wm::mojom::UserWindowObserverPtr user_window_observer_; |
| 42 |
| 43 DISALLOW_COPY_AND_ASSIGN(UserWindowControllerImpl); |
| 44 }; |
| 45 |
| 46 } // namespace wm |
| 47 } // namespace mash |
| 48 |
| 49 #endif // MASH_WM_USER_WINDOW_CONTROLLER_IMPL_H_ |
OLD | NEW |