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

Unified Diff: ash/wm/status_area_layout_manager.cc

Issue 12313118: Refactor: Shelf Widget (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: safer shutdown (status_area_widget_) Created 7 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/wm/status_area_layout_manager.h ('k') | ash/wm/workspace/frame_maximize_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/status_area_layout_manager.cc
diff --git a/ash/wm/status_area_layout_manager.cc b/ash/wm/status_area_layout_manager.cc
index df379696d74939460276fe7dd2a1dc32c5d1a44d..e17d84e26d27fc9f8675c0bc164545265f3741b7 100644
--- a/ash/wm/status_area_layout_manager.cc
+++ b/ash/wm/status_area_layout_manager.cc
@@ -4,8 +4,9 @@
#include "ash/wm/status_area_layout_manager.h"
+#include "ash/shelf/shelf_layout_manager.h"
+#include "ash/shelf/shelf_widget.h"
#include "ash/system/status_area_widget.h"
-#include "ash/wm/shelf_layout_manager.h"
#include "base/auto_reset.h"
#include "ui/aura/window.h"
#include "ui/views/widget/widget.h"
@@ -16,7 +17,7 @@ namespace internal {
////////////////////////////////////////////////////////////////////////////////
// StatusAreaLayoutManager, public:
-StatusAreaLayoutManager::StatusAreaLayoutManager(ShelfLayoutManager* shelf)
+StatusAreaLayoutManager::StatusAreaLayoutManager(ShelfWidget* shelf)
: in_layout_(false),
shelf_(shelf) {
}
@@ -69,11 +70,11 @@ void StatusAreaLayoutManager::SetChildBounds(
void StatusAreaLayoutManager::LayoutStatusArea() {
// Shelf layout manager may be already doing layout.
- if (shelf_->in_layout())
+ if (shelf_->shelf_layout_manager()->in_layout())
return;
base::AutoReset<bool> auto_reset_in_layout(&in_layout_, true);
- shelf_->LayoutShelf();
+ shelf_->shelf_layout_manager()->LayoutShelf();
}
} // namespace internal
« no previous file with comments | « ash/wm/status_area_layout_manager.h ('k') | ash/wm/workspace/frame_maximize_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698