Index: ash/mus/user_window_controller_impl.h |
diff --git a/ash/mus/user_window_controller_impl.h b/ash/mus/user_window_controller_impl.h |
deleted file mode 100644 |
index 4fb327c277c02758e4b3960ee8914b6c9e73c405..0000000000000000000000000000000000000000 |
--- a/ash/mus/user_window_controller_impl.h |
+++ /dev/null |
@@ -1,72 +0,0 @@ |
-// Copyright 2015 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#ifndef ASH_MUS_USER_WINDOW_CONTROLLER_IMPL_H_ |
-#define ASH_MUS_USER_WINDOW_CONTROLLER_IMPL_H_ |
- |
-#include <stdint.h> |
- |
-#include <memory> |
- |
-#include "ash/public/interfaces/user_window_controller.mojom.h" |
-#include "base/macros.h" |
-#include "services/ui/common/types.h" |
-#include "services/ui/public/cpp/window_observer.h" |
-#include "services/ui/public/cpp/window_tree_client_observer.h" |
- |
-namespace ash { |
-namespace mus { |
- |
-class RootWindowController; |
-class WindowPropertyObserver; |
- |
-class UserWindowControllerImpl : public mojom::UserWindowController, |
- public ui::WindowObserver, |
- public ui::WindowTreeClientObserver { |
- public: |
- UserWindowControllerImpl(); |
- ~UserWindowControllerImpl() override; |
- |
- mojom::UserWindowObserver* user_window_observer() const { |
- return user_window_observer_.get(); |
- } |
- |
- void Initialize(RootWindowController* root_controller); |
- |
- private: |
- void AssignIdIfNecessary(ui::Window* window); |
- |
- // Removes observers from the window and client. |
- void RemoveObservers(ui::Window* user_container); |
- |
- // Returns the window with the specified user id. |
- ui::Window* GetUserWindowById(uint32_t id); |
- |
- // A helper to get the container for user windows. |
- ui::Window* GetUserWindowContainer() const; |
- |
- // ui::WindowObserver: |
- void OnTreeChanging(const TreeChangeParams& params) override; |
- void OnWindowDestroying(ui::Window* window) override; |
- |
- // ui::WindowTreeClientObserver: |
- void OnWindowTreeFocusChanged(ui::Window* gained_focus, |
- ui::Window* lost_focus) override; |
- |
- // mojom::UserWindowController: |
- void AddUserWindowObserver(mojom::UserWindowObserverPtr observer) override; |
- void ActivateUserWindow(uint32_t window_id) override; |
- |
- RootWindowController* root_controller_; |
- mojom::UserWindowObserverPtr user_window_observer_; |
- std::unique_ptr<WindowPropertyObserver> window_property_observer_; |
- uint32_t next_id_ = 1u; |
- |
- DISALLOW_COPY_AND_ASSIGN(UserWindowControllerImpl); |
-}; |
- |
-} // namespace mus |
-} // namespace ash |
- |
-#endif // ASH_MUS_USER_WINDOW_CONTROLLER_IMPL_H_ |