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

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: Fixing build breakage 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
« no previous file with comments | « ash/test/test_launcher_delegate.h ('k') | ash/volume_control_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..cec42a72b352ce8e1b74f3a94dee98531f3a08c6 100644
--- a/ash/test/test_launcher_delegate.cc
+++ b/ash/test/test_launcher_delegate.cc
@@ -26,12 +26,19 @@ TestLauncherDelegate::~TestLauncherDelegate() {
}
void TestLauncherDelegate::AddLauncherItem(aura::Window* window) {
+ AddLauncherItem(window, STATUS_CLOSED);
+}
+
+void TestLauncherDelegate::AddLauncherItem(
+ aura::Window* window,
+ LauncherItemStatus status) {
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);
« no previous file with comments | « ash/test/test_launcher_delegate.h ('k') | ash/volume_control_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698