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

Unified Diff: ash/shelf/shelf_background_animator.h

Issue 2899253002: chromeos: Rename ash::WmShelf to Shelf (Closed)
Patch Set: cleanup Created 3 years, 7 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
Index: ash/shelf/shelf_background_animator.h
diff --git a/ash/shelf/shelf_background_animator.h b/ash/shelf/shelf_background_animator.h
index 2775170da3d6e127080f42731daffc6d570cf580..2335068497270af9402526bd503b9bd5c8a6df72 100644
--- a/ash/shelf/shelf_background_animator.h
+++ b/ash/shelf/shelf_background_animator.h
@@ -10,7 +10,7 @@
#include "ash/ash_export.h"
#include "ash/public/cpp/shelf_types.h"
-#include "ash/shelf/wm_shelf_observer.h"
+#include "ash/shelf/shelf_observer.h"
#include "ash/wallpaper/wallpaper_controller_observer.h"
#include "base/macros.h"
#include "base/observer_list.h"
@@ -24,14 +24,14 @@ class SlideAnimation;
namespace ash {
enum class AnimationChangeType;
+class Shelf;
class ShelfBackgroundAnimatorObserver;
class ShelfBackgroundAnimatorTestApi;
class WallpaperController;
-class WmShelf;
// Central controller for the Shelf and Dock opacity animations.
//
-// The ShelfBackgroundAnimator is capable of observing a WmShelf instance for
+// The ShelfBackgroundAnimator is capable of observing a Shelf instance for
// background type changes or clients can call PaintBackground() directly.
//
// The Shelf uses 2 surfaces for the animations:
@@ -40,7 +40,7 @@ class WmShelf;
// 1. Shelf button backgrounds
// 2. Overlay for the SHELF_BACKGROUND_OVERLAP and SHELF_BACKGROUND_MAXIMIZED
// states.
-class ASH_EXPORT ShelfBackgroundAnimator : public WmShelfObserver,
+class ASH_EXPORT ShelfBackgroundAnimator : public ShelfObserver,
public gfx::AnimationDelegate,
public WallpaperControllerObserver {
public:
@@ -48,10 +48,10 @@ class ASH_EXPORT ShelfBackgroundAnimator : public WmShelfObserver,
static const int kMaxAlpha = SK_AlphaOPAQUE;
// Initializes this with the given |background_type|. This will observe the
- // |wm_shelf| for background type changes and the |wallpaper_controller| for
+ // |shelf| for background type changes and the |wallpaper_controller| for
// wallpaper changes if not null.
ShelfBackgroundAnimator(ShelfBackgroundType background_type,
- WmShelf* wm_shelf,
+ Shelf* shelf,
WallpaperController* wallpaper_controller);
~ShelfBackgroundAnimator() override;
@@ -84,7 +84,7 @@ class ASH_EXPORT ShelfBackgroundAnimator : public WmShelfObserver,
void AnimationEnded(const gfx::Animation* animation) override;
protected:
- // WmShelfObserver:
+ // ShelfObserver:
void OnBackgroundTypeChanged(ShelfBackgroundType background_type,
AnimationChangeType change_type) override;
@@ -156,7 +156,7 @@ class ASH_EXPORT ShelfBackgroundAnimator : public WmShelfObserver,
void NotifyObservers();
// The shelf to observe for changes to the shelf background type, can be null.
- WmShelf* wm_shelf_;
+ Shelf* shelf_;
// The wallpaper controller to observe for changes and to extract colors from.
WallpaperController* wallpaper_controller_;

Powered by Google App Engine
This is Rietveld 408576698