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

Unified Diff: ash/shelf/shelf_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 | « no previous file | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_layout_manager.h
diff --git a/ash/shelf/shelf_layout_manager.h b/ash/shelf/shelf_layout_manager.h
index ebaa60a247074b7b44bf7a43f6ca248b55f044b2..1aa5039aa8ac27d770260aae7cbf395290db7cde 100644
--- a/ash/shelf/shelf_layout_manager.h
+++ b/ash/shelf/shelf_layout_manager.h
@@ -14,10 +14,10 @@
#include "ash/common/wm/background_animator.h"
#include "ash/common/wm/dock/docked_window_layout_manager_observer.h"
#include "ash/common/wm/lock_state_observer.h"
+#include "ash/common/wm/wm_snap_to_pixel_layout_manager.h"
#include "ash/common/wm/workspace/workspace_types.h"
#include "ash/common/wm_activation_observer.h"
#include "ash/shelf/shelf_widget.h"
-#include "ash/snap_to_pixel_layout_manager.h"
#include "ash/wm/gestures/shelf_gesture_handler.h"
#include "base/macros.h"
#include "base/observer_list.h"
@@ -52,7 +52,7 @@ class ASH_EXPORT ShelfLayoutManager
public DockedWindowLayoutManagerObserver,
public keyboard::KeyboardControllerObserver,
public LockStateObserver,
- public SnapToPixelLayoutManager,
+ public wm::WmSnapToPixelLayoutManager,
public SessionStateObserver {
public:
explicit ShelfLayoutManager(ShelfWidget* shelf_widget);
@@ -131,9 +131,9 @@ class ASH_EXPORT ShelfLayoutManager
// shelf. Specifying 0 leads to use the default.
void SetAnimationDurationOverride(int duration_override_in_ms);
- // Overridden from SnapLayoutManager:
+ // Overridden from wm::WmSnapToPixelLayoutManager:
void OnWindowResized() override;
- void SetChildBounds(aura::Window* child,
+ void SetChildBounds(WmWindow* child,
const gfx::Rect& requested_bounds) override;
// Overridden from ShellObserver:
« no previous file with comments | « no previous file | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698