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

Unified Diff: ash/shell.h

Issue 1812013003: Pass shelf instances, not root windows, for ash context menus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call OnShelfAlignmentChanged after LayoutShelf. Created 4 years, 9 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/shelf/shelf_view.cc ('k') | ash/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.h
diff --git a/ash/shell.h b/ash/shell.h
index 74d0f125ee2250c829762f8ae26f5a41b4ec6317..fbd85b8e6e6fa7b71c4d3704e171b2b06980697a 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -463,9 +463,11 @@ class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate,
aura::Window* root_window) const;
// Sets/gets shelf's alignment on |root_window|.
- void SetShelfAlignment(ShelfAlignment alignment,
- aura::Window* root_window);
- ShelfAlignment GetShelfAlignment(const aura::Window* root_window);
+ void SetShelfAlignment(ShelfAlignment alignment, aura::Window* root_window);
+ ShelfAlignment GetShelfAlignment(const aura::Window* root_window) const;
+
+ // Called when the alignment for a shelf changes.
+ void OnShelfAlignmentChanged(aura::Window* root_window);
// Notifies |observers_| when entering or exiting fullscreen mode in
// |root_window|.
« no previous file with comments | « ash/shelf/shelf_view.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698