Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1147)

Unified Diff: mash/wm/window_manager.h

Issue 2029883002: Moves mash/wm into ash/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_static_assert
Patch Set: move comment Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mash/wm/user_window_controller_impl.cc ('k') | mash/wm/window_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/window_manager.h
diff --git a/mash/wm/window_manager.h b/mash/wm/window_manager.h
deleted file mode 100644
index c0937468edb4345d69ef82105bc6ab0e23020f51..0000000000000000000000000000000000000000
--- a/mash/wm/window_manager.h
+++ /dev/null
@@ -1,80 +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 MASH_WM_WINDOW_MANAGER_H_
-#define MASH_WM_WINDOW_MANAGER_H_
-
-#include <stdint.h>
-
-#include <memory>
-
-#include "base/macros.h"
-#include "components/mus/common/types.h"
-#include "components/mus/public/cpp/window_manager_delegate.h"
-#include "components/mus/public/cpp/window_observer.h"
-#include "components/mus/public/cpp/window_tracker.h"
-#include "components/mus/public/interfaces/window_manager.mojom.h"
-#include "mash/session/public/interfaces/session.mojom.h"
-#include "mash/wm/disconnected_app_handler.h"
-#include "mojo/public/cpp/bindings/binding.h"
-
-namespace mash {
-namespace wm {
-
-class RootWindowController;
-
-class WindowManager : public mus::WindowTracker,
- public mus::WindowManagerDelegate,
- public session::mojom::ScreenlockStateListener {
- public:
- WindowManager();
- ~WindowManager() override;
-
- void Initialize(RootWindowController* root_controller,
- session::mojom::Session* session);
-
- mus::WindowManagerClient* window_manager_client() {
- return window_manager_client_;
- }
-
- // Creates a new top level window.
- mus::Window* NewTopLevelWindow(
- std::map<std::string, std::vector<uint8_t>>* properties);
-
- private:
- gfx::Rect CalculateDefaultBounds(mus::Window* window) const;
- gfx::Rect GetMaximizedWindowBounds() const;
-
- // mus::WindowObserver:
- void OnTreeChanging(const TreeChangeParams& params) override;
-
- // WindowManagerDelegate:
- void SetWindowManagerClient(mus::WindowManagerClient* client) override;
- bool OnWmSetBounds(mus::Window* window, gfx::Rect* bounds) override;
- bool OnWmSetProperty(
- mus::Window* window,
- const std::string& name,
- std::unique_ptr<std::vector<uint8_t>>* new_data) override;
- mus::Window* OnWmCreateTopLevelWindow(
- std::map<std::string, std::vector<uint8_t>>* properties) override;
- void OnWmClientJankinessChanged(const std::set<mus::Window*>& client_windows,
- bool not_responding) override;
- void OnAccelerator(uint32_t id, const ui::Event& event) override;
-
- // session::mojom::ScreenlockStateListener:
- void ScreenlockStateChanged(bool locked) override;
-
- RootWindowController* root_controller_;
- mus::WindowManagerClient* window_manager_client_;
- DisconnectedAppHandler disconnected_app_handler_;
-
- mojo::Binding<session::mojom::ScreenlockStateListener> binding_;
-
- DISALLOW_COPY_AND_ASSIGN(WindowManager);
-};
-
-} // namespace wm
-} // namespace mash
-
-#endif // MASH_WM_WINDOW_MANAGER_H_
« no previous file with comments | « mash/wm/user_window_controller_impl.cc ('k') | mash/wm/window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698