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

Unified Diff: ash/shell/window_watcher.cc

Issue 11348201: Align panel icons on the right / end. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add TODO for panel overflow. Created 8 years, 1 month 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/launcher/launcher_view_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell/window_watcher.cc
diff --git a/ash/shell/window_watcher.cc b/ash/shell/window_watcher.cc
index 157a5980ad1575b4b16ca5c695e3c713afd8865e..60324fb921731b3bb312a7bbe676c2eb0aedba79 100644
--- a/ash/shell/window_watcher.cc
+++ b/ash/shell/window_watcher.cc
@@ -79,7 +79,8 @@ void WindowWatcher::OnWindowAdded(aura::Window* new_window) {
static int image_count = 0;
ash::LauncherModel* model = Launcher::ForPrimaryDisplay()->model();
ash::LauncherItem item;
- item.type = ash::TYPE_TABBED;
+ item.type = new_window->type() == aura::client::WINDOW_TYPE_PANEL ?
+ ash::TYPE_APP_PANEL : ash::TYPE_TABBED;
id_to_window_[model->next_id()] = new_window;
SkBitmap icon_bitmap;
« no previous file with comments | « ash/launcher/launcher_view_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698