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

Unified Diff: mash/wm/window_manager_application.h

Issue 1835403002: Support additional mash shelf alignments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync and rebase; address comments (sorry). Created 4 years, 8 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/shelf_layout.cc ('k') | mash/wm/window_manager_application.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/window_manager_application.h
diff --git a/mash/wm/window_manager_application.h b/mash/wm/window_manager_application.h
index a0d77ddc338961d3f00ccb9a2a7775e93e32c16e..9577d888f2d112ac385b44e0d451e6107f98090c 100644
--- a/mash/wm/window_manager_application.h
+++ b/mash/wm/window_manager_application.h
@@ -18,6 +18,7 @@
#include "components/mus/public/interfaces/window_manager_factory.mojom.h"
#include "components/mus/public/interfaces/window_tree_host.mojom.h"
#include "mash/session/public/interfaces/session.mojom.h"
+#include "mash/wm/public/interfaces/shelf_layout.mojom.h"
#include "mash/wm/public/interfaces/user_window_controller.mojom.h"
#include "mojo/public/cpp/bindings/binding.h"
#include "mojo/public/cpp/bindings/binding_set.h"
@@ -49,7 +50,8 @@ class UserWindowControllerImpl;
class WindowManagerApplication
: public shell::ShellClient,
public mus::mojom::WindowManagerFactory,
- public shell::InterfaceFactory<mash::wm::mojom::UserWindowController>,
+ public shell::InterfaceFactory<mojom::ShelfLayout>,
+ public shell::InterfaceFactory<mojom::UserWindowController>,
public shell::InterfaceFactory<mus::mojom::AcceleratorRegistrar> {
public:
WindowManagerApplication();
@@ -92,12 +94,16 @@ class WindowManagerApplication
uint32_t id) override;
bool AcceptConnection(shell::Connection* connection) override;
- // InterfaceFactory<mash::wm::mojom::UserWindowController>:
+ // shell::InterfaceFactory<mojom::ShelfLayout>:
void Create(shell::Connection* connection,
- mojo::InterfaceRequest<mash::wm::mojom::UserWindowController>
- request) override;
+ mojo::InterfaceRequest<mojom::ShelfLayout> request) override;
- // InterfaceFactory<mus::mojom::AcceleratorRegistrar>:
+ // 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;
@@ -114,13 +120,19 @@ class WindowManagerApplication
std::unique_ptr<ui::mojo::UIInit> ui_init_;
std::unique_ptr<views::AuraInit> aura_init_;
+ // The ShelfLayout object is created once OnEmbed() is called. Until that
+ // time |shelf_layout_requests_| stores pending interface requests.
+ mojo::BindingSet<mojom::ShelfLayout> shelf_layout_bindings_;
+ std::vector<scoped_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<mash::wm::mojom::UserWindowController>
- user_window_controller_binding_;
- std::vector<std::unique_ptr<
- mojo::InterfaceRequest<mash::wm::mojom::UserWindowController>>>
+ mojo::BindingSet<mojom::UserWindowController>
+ user_window_controller_bindings_;
+ std::vector<
+ std::unique_ptr<mojo::InterfaceRequest<mojom::UserWindowController>>>
user_window_controller_requests_;
std::set<AcceleratorRegistrarImpl*> accelerator_registrars_;
« no previous file with comments | « mash/wm/shelf_layout.cc ('k') | mash/wm/window_manager_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698