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

Unified Diff: ash/shelf/shelf_model_observer.h

Issue 2917013002: mash: Move ShelfModel* to ash/public/cpp. (Closed)
Patch Set: Comment on AppList item init. 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
« no previous file with comments | « ash/shelf/shelf_model.cc ('k') | ash/shelf/shelf_model_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_model_observer.h
diff --git a/ash/shelf/shelf_model_observer.h b/ash/shelf/shelf_model_observer.h
deleted file mode 100644
index ca8f405434a81ba7c7ee2569eaa1e64b4c3bfc2d..0000000000000000000000000000000000000000
--- a/ash/shelf/shelf_model_observer.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ASH_SHELF_SHELF_MODEL_OBSERVER_H_
-#define ASH_SHELF_SHELF_MODEL_OBSERVER_H_
-
-#include "ash/ash_export.h"
-#include "ash/public/cpp/shelf_types.h"
-
-namespace ash {
-
-struct ShelfItem;
-class ShelfItemDelegate;
-
-// TODO(msw): Move this to ash/public/cpp and use ASH_PUBLIC_EXPORT.
-class ASH_EXPORT ShelfModelObserver {
- public:
- // Invoked after an item has been added to the model.
- virtual void ShelfItemAdded(int index) = 0;
-
- // Invoked after an item has been removed from the model. |index| is the index
- // the item was at before removal, |old_item| is the item before removal.
- virtual void ShelfItemRemoved(int index, const ShelfItem& old_item) = 0;
-
- // Invoked after an item has been moved. See ShelfModel::Move() for details
- // of the arguments.
- virtual void ShelfItemMoved(int start_index, int target_index) = 0;
-
- // Invoked after an item changes. |old_item| is the item before the change.
- virtual void ShelfItemChanged(int index, const ShelfItem& old_item) = 0;
-
- // Invoked after a delegate changes. |delegate| is the new value.
- virtual void ShelfItemDelegateChanged(const ShelfID& id,
- ShelfItemDelegate* delegate) = 0;
-
- protected:
- virtual ~ShelfModelObserver() {}
-};
-
-} // namespace ash
-
-#endif // ASH_SHELF_SHELF_MODEL_OBSERVER_H_
« no previous file with comments | « ash/shelf/shelf_model.cc ('k') | ash/shelf/shelf_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698