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

Unified Diff: ash/test/test_launcher_delegate.cc

Issue 10383108: Adding four bezel gestures (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added the app list toggle 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: ash/test/test_launcher_delegate.cc
diff --git a/ash/test/test_launcher_delegate.cc b/ash/test/test_launcher_delegate.cc
index bb5f0d28ed8094ad6d1f0500036000b4b6c334ef..ad9f7b60c279500bc0e59e9e368d832ae6e35c15 100644
--- a/ash/test/test_launcher_delegate.cc
+++ b/ash/test/test_launcher_delegate.cc
@@ -26,12 +26,18 @@ TestLauncherDelegate::~TestLauncherDelegate() {
}
void TestLauncherDelegate::AddLauncherItem(aura::Window* window) {
+ AddLauncherItem(window, STATUS_CLOSED);
+}
+
+void TestLauncherDelegate::AddLauncherItem(
+ aura::Window* window, LauncherItemStatus status) {
sky 2012/05/11 17:00:01 nit: wrap status to next line.
Mr4D (OOO till 08-26) 2012/05/11 18:09:59 Done.
ash::LauncherItem item;
item.type = ash::TYPE_TABBED;
DCHECK(window_to_id_.find(window) == window_to_id_.end());
window_to_id_[window] = model_->next_id();
item.image.setConfig(SkBitmap::kARGB_8888_Config, 16, 16);
item.image.allocPixels();
+ item.status = status;
model_->Add(item);
if (observed_windows_.find(window->parent()) == observed_windows_.end()) {
window->parent()->AddObserver(this);

Powered by Google App Engine
This is Rietveld 408576698