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

Unified Diff: ash/wm/status_area_layout_manager.h

Issue 2201323004: mash: Use wm::WmSnapToPixelLayoutManager for the shelf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also convert the StatusAreaLayoutManager. 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/shelf/shelf_widget.cc ('k') | ash/wm/status_area_layout_manager.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.h
diff --git a/ash/wm/status_area_layout_manager.h b/ash/wm/status_area_layout_manager.h
index 77a844d2778bbc05e58bef25b09e3a8a5ec3bb25..9d276ae5731205f3ed1e295d33c731093cb907ab 100644
--- a/ash/wm/status_area_layout_manager.h
+++ b/ash/wm/status_area_layout_manager.h
@@ -5,25 +5,24 @@
#ifndef ASH_WM_STATUS_AREA_LAYOUT_MANAGER_H_
#define ASH_WM_STATUS_AREA_LAYOUT_MANAGER_H_
-#include "ash/snap_to_pixel_layout_manager.h"
-#include "base/compiler_specific.h"
+#include "ash/common/wm/wm_snap_to_pixel_layout_manager.h"
#include "base/macros.h"
-#include "ui/aura/layout_manager.h"
namespace ash {
+
class ShelfWidget;
// StatusAreaLayoutManager is a layout manager responsible for the status area.
// In any case when status area needs relayout it redirects this call to
// ShelfLayoutManager.
-class StatusAreaLayoutManager : public SnapToPixelLayoutManager {
+class StatusAreaLayoutManager : public wm::WmSnapToPixelLayoutManager {
public:
- StatusAreaLayoutManager(aura::Window* container, ShelfWidget* shelf);
+ explicit StatusAreaLayoutManager(ShelfWidget* shelf_widget);
~StatusAreaLayoutManager() override;
- // Overridden from aura::LayoutManager:
+ // Overridden from wm::WmSnapToPixelLayoutManager:
void OnWindowResized() override;
- void SetChildBounds(aura::Window* child,
+ void SetChildBounds(WmWindow* child,
const gfx::Rect& requested_bounds) override;
private:
@@ -35,7 +34,7 @@ class StatusAreaLayoutManager : public SnapToPixelLayoutManager {
// Used to prevent calling itself again from SetChildBounds().
bool in_layout_;
- ShelfWidget* shelf_;
+ ShelfWidget* shelf_widget_;
DISALLOW_COPY_AND_ASSIGN(StatusAreaLayoutManager);
};
« no previous file with comments | « ash/shelf/shelf_widget.cc ('k') | ash/wm/status_area_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698