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

Unified Diff: ash/shelf/shelf_view.cc

Issue 45973003: ash: Rename LauncherIconObserver to ShelfIconObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 2 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_view.h ('k') | ash/shelf/shelf_view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_view.cc
diff --git a/ash/shelf/shelf_view.cc b/ash/shelf/shelf_view.cc
index 1257032b2101fafc5640d5d7d2199ca44a153ba9..1d4d2c797c2b2ac4fb75d1d91402a953b2394df3 100644
--- a/ash/shelf/shelf_view.cc
+++ b/ash/shelf/shelf_view.cc
@@ -11,7 +11,6 @@
#include "ash/drag_drop/drag_image_view.h"
#include "ash/launcher/launcher_button.h"
#include "ash/launcher/launcher_delegate.h"
-#include "ash/launcher/launcher_icon_observer.h"
#include "ash/launcher/launcher_item_delegate.h"
#include "ash/launcher/launcher_item_delegate_manager.h"
#include "ash/launcher/launcher_model.h"
@@ -21,6 +20,7 @@
#include "ash/shelf/app_list_button.h"
#include "ash/shelf/overflow_bubble.h"
#include "ash/shelf/overflow_button.h"
+#include "ash/shelf/shelf_icon_observer.h"
#include "ash/shelf/shelf_layout_manager.h"
#include "ash/shelf/shelf_tooltip_manager.h"
#include "ash/shelf/shelf_widget.h"
@@ -877,11 +877,11 @@ int ShelfView::DetermineFirstVisiblePanelIndex(int min_value) const {
return index;
}
-void ShelfView::AddIconObserver(LauncherIconObserver* observer) {
+void ShelfView::AddIconObserver(ShelfIconObserver* observer) {
observers_.AddObserver(observer);
}
-void ShelfView::RemoveIconObserver(LauncherIconObserver* observer) {
+void ShelfView::RemoveIconObserver(ShelfIconObserver* observer) {
observers_.RemoveObserver(observer);
}
@@ -1355,8 +1355,8 @@ gfx::Size ShelfView::GetPreferredSize() {
void ShelfView::OnBoundsChanged(const gfx::Rect& previous_bounds) {
LayoutToIdealBounds();
- FOR_EACH_OBSERVER(LauncherIconObserver, observers_,
- OnLauncherIconPositionsChanged());
+ FOR_EACH_OBSERVER(ShelfIconObserver, observers_,
+ OnShelfIconPositionsChanged());
if (IsShowingOverflowBubble())
overflow_bubble_->Hide();
@@ -1804,8 +1804,8 @@ void ShelfView::ShowMenu(scoped_ptr<views::MenuModelAdapter> menu_model_adapter,
}
void ShelfView::OnBoundsAnimatorProgressed(views::BoundsAnimator* animator) {
- FOR_EACH_OBSERVER(LauncherIconObserver, observers_,
- OnLauncherIconPositionsChanged());
+ FOR_EACH_OBSERVER(ShelfIconObserver, observers_,
+ OnShelfIconPositionsChanged());
PreferredSizeChanged();
}
« no previous file with comments | « ash/shelf/shelf_view.h ('k') | ash/shelf/shelf_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698