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

Unified Diff: ash/common/shelf/shelf_widget.h

Issue 2304443002: ash: Move ShelfWidget ownership to WmShelf and refactor access to it (Closed)
Patch Set: review comments Created 4 years, 4 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/common/accelerators/accelerator_controller.cc ('k') | ash/common/shelf/shelf_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_widget.h
diff --git a/ash/common/shelf/shelf_widget.h b/ash/common/shelf/shelf_widget.h
index 1db458c9cf41e5d034b98bf46f9d2e52d9fef2c3..b02a3c351e656c8ec358d6e46bf23ab50bc35502 100644
--- a/ash/common/shelf/shelf_widget.h
+++ b/ash/common/shelf/shelf_widget.h
@@ -34,11 +34,11 @@ class ASH_EXPORT ShelfWidget : public views::Widget,
public ShelfBackgroundAnimatorObserver,
public ShelfLayoutManagerObserver {
public:
- ShelfWidget(WmWindow* shelf_container,
- WmWindow* status_container,
- WmShelf* wm_shelf);
+ ShelfWidget(WmWindow* shelf_container, WmShelf* wm_shelf);
~ShelfWidget() override;
+ void CreateStatusAreaWidget(WmWindow* status_container);
+
// Returns if shelf alignment option is enabled, and the user is able to
// adjust the alignment (guest and supervised mode users cannot for example).
static bool ShelfAlignmentAllowed();
@@ -130,6 +130,8 @@ class ASH_EXPORT ShelfWidget : public views::Widget,
// Owned by the shelf container's window.
ShelfLayoutManager* shelf_layout_manager_;
+
+ // Owned by the native widget.
StatusAreaWidget* status_area_widget_;
// |delegate_view_| is the contents view of this widget and is cleaned up
« no previous file with comments | « ash/common/accelerators/accelerator_controller.cc ('k') | ash/common/shelf/shelf_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698