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

Unified Diff: ui/app_list/app_list_model.h

Issue 10408009: ui: Change ListModel to operate in size_t instead of int. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unittest Created 8 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: ui/app_list/app_list_model.h
diff --git a/ui/app_list/app_list_model.h b/ui/app_list/app_list_model.h
index 03faefde77efdc0c3b3d5719df05f60dd6d0e8e5..b49f162b79588198bea5308ee0fbbef1ed072281 100644
--- a/ui/app_list/app_list_model.h
+++ b/ui/app_list/app_list_model.h
@@ -21,16 +21,16 @@ class APP_LIST_EXPORT AppListModel {
// Adds an item to the model. The model takes ownership of |item|.
void AddItem(AppListItemModel* item);
- void AddItemAt(int index, AppListItemModel* item);
+ void AddItemAt(size_t index, AppListItemModel* item);
- void DeleteItemAt(int index);
+ void DeleteItemAt(size_t index);
- AppListItemModel* GetItemAt(int index);
+ AppListItemModel* GetItemAt(size_t index);
void AddObserver(ui::ListModelObserver* observer);
void RemoveObserver(ui::ListModelObserver* observer);
- int item_count() const { return items_.item_count(); }
+ size_t item_count() const { return items_.item_count(); }
private:
typedef ui::ListModel<AppListItemModel> Items;
« no previous file with comments | « chrome/browser/ui/views/ash/app_list/app_list_model_builder_unittest.cc ('k') | ui/app_list/app_list_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698