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

Unified Diff: ash/mus/shelf_delegate_mus.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 | « no previous file | ash/mus/shelf_delegate_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/shelf_delegate_mus.h
diff --git a/ash/mus/shelf_delegate_mus.h b/ash/mus/shelf_delegate_mus.h
index 2708df39f0d8ef42bdb24b7ebd124f8275932299..c9365922f239ad5cde4ef67866d18b2bebbb18d3 100644
--- a/ash/mus/shelf_delegate_mus.h
+++ b/ash/mus/shelf_delegate_mus.h
@@ -9,6 +9,7 @@
#include "ash/shelf/shelf_delegate.h"
#include "mash/shelf/public/interfaces/shelf.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/interface_ptr_set.h"
@@ -61,10 +62,14 @@ class ShelfDelegateMus : public ShelfDelegate,
mojo::Array<uint8_t> app_icon) override;
void OnUserWindowFocusChanged(uint32_t window_id, bool has_focus) override;
+ // Set the Mus window preferred sizes, needed by mash::wm::ShelfLayout.
+ void SetShelfPreferredSizes(Shelf* shelf);
+
ShelfModel* model_;
mojo::AssociatedInterfacePtrSet<mash::shelf::mojom::ShelfObserver> observers_;
+ mash::wm::mojom::ShelfLayoutPtr shelf_layout_;
mash::wm::mojom::UserWindowControllerPtr user_window_controller_;
mojo::Binding<mash::wm::mojom::UserWindowObserver> binding_;
std::map<uint32_t, ShelfID> window_id_to_shelf_id_;
« no previous file with comments | « no previous file | ash/mus/shelf_delegate_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698