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

Unified Diff: ash/shelf/shelf_view.cc

Issue 68243002: ash: Rename LauncherModelObserver to ShelfModelObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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') | chrome/browser/ui/ash/launcher/chrome_launcher_controller.h » ('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 aa65b396097033ca2f8489c070c52ace8648196b..45d22372b5e8d091c096b048453db08f930046b5 100644
--- a/ash/shelf/shelf_view.cc
+++ b/ash/shelf/shelf_view.cc
@@ -428,7 +428,7 @@ void ShelfView::Init() {
view_model_->Add(child, static_cast<int>(i - items.begin()));
AddChildView(child);
}
- LauncherStatusChanged();
+ ShelfStatusChanged();
overflow_button_ = new OverflowButton(this);
overflow_button_->set_context_menu_controller(this);
ConfigureChildView(overflow_button_);
@@ -1390,7 +1390,7 @@ void ShelfView::OnGestureEvent(ui::GestureEvent* event) {
event->StopPropagation();
}
-void ShelfView::LauncherItemAdded(int model_index) {
+void ShelfView::ShelfItemAdded(int model_index) {
{
base::AutoReset<bool> cancelling_drag(
&cancelling_drag_model_changed_, true);
@@ -1426,7 +1426,7 @@ void ShelfView::LauncherItemAdded(int model_index) {
}
}
-void ShelfView::LauncherItemRemoved(int model_index, LauncherID id) {
+void ShelfView::ShelfItemRemoved(int model_index, LauncherID id) {
if (id == context_menu_id_)
launcher_menu_runner_.reset();
{
@@ -1466,8 +1466,8 @@ void ShelfView::LauncherItemRemoved(int model_index, LauncherID id) {
tooltip_->Close();
}
-void ShelfView::LauncherItemChanged(int model_index,
- const ash::LauncherItem& old_item) {
+void ShelfView::ShelfItemChanged(int model_index,
+ const LauncherItem& old_item) {
const LauncherItem& item(model_->items()[model_index]);
if (old_item.type != item.type) {
// Type changed, swap the views.
@@ -1511,7 +1511,7 @@ void ShelfView::LauncherItemChanged(int model_index,
}
}
-void ShelfView::LauncherItemMoved(int start_index, int target_index) {
+void ShelfView::ShelfItemMoved(int start_index, int target_index) {
view_model_->Move(start_index, target_index);
// When cancelling a drag due to a launcher item being added, the currently
// dragged item is moved back to its initial position. AnimateToIdealBounds
@@ -1521,7 +1521,7 @@ void ShelfView::LauncherItemMoved(int start_index, int target_index) {
AnimateToIdealBounds();
}
-void ShelfView::LauncherStatusChanged() {
+void ShelfView::ShelfStatusChanged() {
if (ash::switches::UseAlternateShelfLayout())
return;
AppListButton* app_list_button =
« no previous file with comments | « ash/shelf/shelf_view.h ('k') | chrome/browser/ui/ash/launcher/chrome_launcher_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698