Lines Matching refs:folder
89 bool ItemObservedByFolder(AppListFolderItem* folder,
91 return item->observers_.HasObserver(folder);
252 AppListFolderItem* folder =
256 model_.AddItem(folder);
259 model_.AddItemToFolder(model_.CreateItem(name), folder->id());
261 ASSERT_EQ(num_folder_apps, folder->item_list()->item_count());
264 folder, folder->item_list()->item_at(0)));
266 folder, folder->item_list()->item_at(num_observed_apps - 1)));
269 folder, folder->item_list()->item_at(num_observed_apps)));
270 folder->item_list()->MoveItem(num_observed_apps, 0);
273 folder->item_list()->item_at(0)->id());
275 folder->item_list()->item_at(1)->id());
277 folder->item_list()->item_at(num_observed_apps)->id());
280 folder, folder->item_list()->item_at(0)));
282 folder, folder->item_list()->item_at(num_observed_apps - 1)));
285 folder, folder->item_list()->item_at(num_observed_apps)));
297 ASSERT_EQ(2u, model_.top_level_item_list()->item_count()); // Folder + 1 item
302 // Merge an item from the new folder into the third item.
309 // Merge the remaining item to the new folder, ensure it is added to the end.
315 // The empty folder should be deleted.
321 AppListFolderItem* folder =
323 model_.AddItem(folder);
325 model_.AddItemToFolder(item0, folder->id());
327 AppListFolderItem* folder_item = model_.FindFolderItem(folder->id());
331 EXPECT_EQ(folder->id(), item0->folder_id());
335 AppListFolderItem* folder =
337 model_.AddItem(folder);
343 // Move item0 and item1 to folder.
344 std::string folder_id = folder->id();
352 // Move item0 out of folder.
357 // Move item1 out of folder, folder should be deleted.
383 // Move Item 2 out of folder to before folder.
387 // Move remaining folder item, (Item 1) out of folder to folder position.
435 AppListFolderItem* folder =
437 folder);
438 model_.AddItem(folder);
439 std::string folder_id = folder->id();
448 AppListFolderItem* folder =
450 model_.AddItem(folder);
451 std::string folder_id = folder->id();
453 // Should not be able to move to an OEM folder with MergeItems.
462 // Should not be able to move from an OEM folder with MoveItemToFolderAt.
472 // Set up a folder with two items and an OEM folder with one item.
473 AppListFolderItem* folder =
475 model_.AddItem(folder);
476 std::string folder_id = folder->id();
492 // Disable folders. Ensure non-oem folder is removed.
498 // Ensure folder creation fails.