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

Unified Diff: mash/wm/root_window_controller.cc

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/root_window_controller.h ('k') | mash/wm/shelf_layout.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/root_window_controller.cc
diff --git a/mash/wm/root_window_controller.cc b/mash/wm/root_window_controller.cc
index d610dc2c3acef594e486fb924d97f8d3b3e95cda..53356d480888f6b1c5434e08ca7fab8f9a6e353f 100644
--- a/mash/wm/root_window_controller.cc
+++ b/mash/wm/root_window_controller.cc
@@ -91,6 +91,12 @@ void RootWindowController::OnAccelerator(uint32_t id, const ui::Event& event) {
}
}
+ShelfLayout* RootWindowController::GetShelfLayoutManager() {
+ return static_cast<ShelfLayout*>(
+ layout_manager_[GetWindowForContainer(mojom::Container::USER_SHELF)]
+ .get());
+}
+
RootWindowController::RootWindowController(WindowManagerApplication* app)
: app_(app), root_(nullptr), window_count_(0) {
window_manager_.reset(new WindowManager);
« no previous file with comments | « mash/wm/root_window_controller.h ('k') | mash/wm/shelf_layout.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698