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

Unified Diff: ash/mus/window_manager_application.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 | « ash/mus/window_manager.cc ('k') | ash/mus/window_manager_application.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/window_manager_application.h
diff --git a/mash/wm/window_manager_application.h b/ash/mus/window_manager_application.h
similarity index 74%
rename from mash/wm/window_manager_application.h
rename to ash/mus/window_manager_application.h
index f2cfe62fe2f9232d9e79cd7c29b5bf3034ed9087..adeb3b332c68d7c8b61914024e755eb72106ec8a 100644
--- a/mash/wm/window_manager_application.h
+++ b/ash/mus/window_manager_application.h
@@ -2,8 +2,8 @@
// 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_APPLICATION_H_
-#define MASH_WM_WINDOW_MANAGER_APPLICATION_H_
+#ifndef ASH_MUS_WINDOW_MANAGER_APPLICATION_H_
+#define ASH_MUS_WINDOW_MANAGER_APPLICATION_H_
#include <stdint.h>
@@ -37,8 +37,8 @@ namespace ui {
class Event;
}
-namespace mash {
-namespace wm {
+namespace ash {
+namespace mus {
class AcceleratorRegistrarImpl;
class RootWindowController;
@@ -51,10 +51,10 @@ class WmScreen;
class WindowManagerApplication
: public shell::ShellClient,
- public mus::mojom::WindowManagerFactory,
- public shell::InterfaceFactory<ash::mojom::ShelfLayout>,
- public shell::InterfaceFactory<ash::mojom::UserWindowController>,
- public shell::InterfaceFactory<mus::mojom::AcceleratorRegistrar> {
+ public ::mus::mojom::WindowManagerFactory,
+ public shell::InterfaceFactory<mojom::ShelfLayout>,
+ public shell::InterfaceFactory<mojom::UserWindowController>,
+ public shell::InterfaceFactory<::mus::mojom::AcceleratorRegistrar> {
public:
WindowManagerApplication();
~WindowManagerApplication() override;
@@ -85,9 +85,7 @@ class WindowManagerApplication
void AddRootWindowsObserver(RootWindowsObserver* observer);
void RemoveRootWindowsObserver(RootWindowsObserver* observer);
- session::mojom::Session* session() {
- return session_.get();
- }
+ mash::session::mojom::Session* session() { return session_.get(); }
private:
friend class WmTestBase;
@@ -104,24 +102,25 @@ class WindowManagerApplication
uint32_t id) override;
bool AcceptConnection(shell::Connection* connection) override;
- // shell::InterfaceFactory<ash::mojom::ShelfLayout>:
+ // shell::InterfaceFactory<mojom::ShelfLayout>:
void Create(shell::Connection* connection,
- mojo::InterfaceRequest<ash::mojom::ShelfLayout> request) override;
+ mojo::InterfaceRequest<mojom::ShelfLayout> request) override;
- // shell::InterfaceFactory<ash::mojom::UserWindowController>:
- void Create(shell::Connection* connection,
- mojo::InterfaceRequest<ash::mojom::UserWindowController> request)
- override;
+ // shell::InterfaceFactory<mojom::UserWindowController>:
+ void Create(
+ shell::Connection* connection,
+ mojo::InterfaceRequest<mojom::UserWindowController> request) override;
// shell::InterfaceFactory<mus::mojom::AcceleratorRegistrar>:
void Create(shell::Connection* connection,
- mojo::InterfaceRequest<mus::mojom::AcceleratorRegistrar> request)
- override;
+ mojo::InterfaceRequest<::mus::mojom::AcceleratorRegistrar>
+ request) override;
// mus::mojom::WindowManagerFactory:
- void CreateWindowManager(mus::mojom::DisplayPtr display,
- mojo::InterfaceRequest<mus::mojom::WindowTreeClient>
- client_request) override;
+ void CreateWindowManager(
+ ::mus::mojom::DisplayPtr display,
+ mojo::InterfaceRequest<::mus::mojom::WindowTreeClient> client_request)
+ override;
shell::Connector* connector_;
@@ -136,23 +135,23 @@ class WindowManagerApplication
// The |shelf_layout_| object is created once OnEmbed() is called. Until that
// time |shelf_layout_requests_| stores pending interface requests.
std::unique_ptr<ShelfLayoutImpl> shelf_layout_;
- mojo::BindingSet<ash::mojom::ShelfLayout> shelf_layout_bindings_;
- std::vector<std::unique_ptr<mojo::InterfaceRequest<ash::mojom::ShelfLayout>>>
+ mojo::BindingSet<mojom::ShelfLayout> shelf_layout_bindings_;
+ std::vector<std::unique_ptr<mojo::InterfaceRequest<mojom::ShelfLayout>>>
shelf_layout_requests_;
// |user_window_controller_| is created once OnEmbed() is called. Until that
// time |user_window_controller_requests_| stores pending interface requests.
std::unique_ptr<UserWindowControllerImpl> user_window_controller_;
- mojo::BindingSet<ash::mojom::UserWindowController>
+ mojo::BindingSet<mojom::UserWindowController>
user_window_controller_bindings_;
std::vector<
- std::unique_ptr<mojo::InterfaceRequest<ash::mojom::UserWindowController>>>
+ std::unique_ptr<mojo::InterfaceRequest<mojom::UserWindowController>>>
user_window_controller_requests_;
std::set<AcceleratorRegistrarImpl*> accelerator_registrars_;
std::set<RootWindowController*> root_controllers_;
- mojo::Binding<mus::mojom::WindowManagerFactory>
+ mojo::Binding<::mus::mojom::WindowManagerFactory>
window_manager_factory_binding_;
mash::session::mojom::SessionPtr session_;
@@ -162,7 +161,7 @@ class WindowManagerApplication
DISALLOW_COPY_AND_ASSIGN(WindowManagerApplication);
};
-} // namespace wm
-} // namespace mash
+} // namespace mus
+} // namespace ash
-#endif // MASH_WM_WINDOW_MANAGER_APPLICATION_H_
+#endif // ASH_MUS_WINDOW_MANAGER_APPLICATION_H_
« no previous file with comments | « ash/mus/window_manager.cc ('k') | ash/mus/window_manager_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698