OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ash/wm/session_state_animator.h" | 5 #include "ash/wm/session_state_animator.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/shell_window_ids.h" | 8 #include "ash/shell_window_ids.h" |
9 #include "ash/wm/window_animations.h" | 9 #include "ash/wm/window_animations.h" |
10 #include "ui/aura/client/aura_constants.h" | 10 #include "ui/aura/client/aura_constants.h" |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 containers->clear(); | 459 containers->clear(); |
460 | 460 |
461 if (container_mask & DESKTOP_BACKGROUND) { | 461 if (container_mask & DESKTOP_BACKGROUND) { |
462 containers->push_back(Shell::GetContainer( | 462 containers->push_back(Shell::GetContainer( |
463 root_window, | 463 root_window, |
464 internal::kShellWindowId_DesktopBackgroundContainer)); | 464 internal::kShellWindowId_DesktopBackgroundContainer)); |
465 } | 465 } |
466 if (container_mask & LAUNCHER) { | 466 if (container_mask & LAUNCHER) { |
467 containers->push_back(Shell::GetContainer( | 467 containers->push_back(Shell::GetContainer( |
468 root_window, | 468 root_window, |
469 internal::kShellWindowId_LauncherContainer)); | 469 internal::kShellWindowId_ShelfContainer)); |
470 } | 470 } |
471 if (container_mask & NON_LOCK_SCREEN_CONTAINERS) { | 471 if (container_mask & NON_LOCK_SCREEN_CONTAINERS) { |
472 // TODO(antrim): Figure out a way to eliminate a need to exclude launcher | 472 // TODO(antrim): Figure out a way to eliminate a need to exclude launcher |
473 // in such way. | 473 // in such way. |
474 aura::Window* non_lock_screen_containers = Shell::GetContainer( | 474 aura::Window* non_lock_screen_containers = Shell::GetContainer( |
475 root_window, | 475 root_window, |
476 internal::kShellWindowId_NonLockScreenContainersContainer); | 476 internal::kShellWindowId_NonLockScreenContainersContainer); |
477 aura::Window::Windows children = non_lock_screen_containers->children(); | 477 aura::Window::Windows children = non_lock_screen_containers->children(); |
478 | 478 |
479 for (aura::Window::Windows::const_iterator it = children.begin(); | 479 for (aura::Window::Windows::const_iterator it = children.begin(); |
480 it != children.end(); ++it) { | 480 it != children.end(); ++it) { |
481 aura::Window* window = *it; | 481 aura::Window* window = *it; |
482 if (window->id() == internal::kShellWindowId_LauncherContainer) | 482 if (window->id() == internal::kShellWindowId_ShelfContainer) |
483 continue; | 483 continue; |
484 containers->push_back(window); | 484 containers->push_back(window); |
485 } | 485 } |
486 } | 486 } |
487 if (container_mask & LOCK_SCREEN_BACKGROUND) { | 487 if (container_mask & LOCK_SCREEN_BACKGROUND) { |
488 containers->push_back(Shell::GetContainer( | 488 containers->push_back(Shell::GetContainer( |
489 root_window, | 489 root_window, |
490 internal::kShellWindowId_LockScreenBackgroundContainer)); | 490 internal::kShellWindowId_LockScreenBackgroundContainer)); |
491 } | 491 } |
492 if (container_mask & LOCK_SCREEN_CONTAINERS) { | 492 if (container_mask & LOCK_SCREEN_CONTAINERS) { |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 foreground_->SetColor(SK_ColorWHITE); | 625 foreground_->SetColor(SK_ColorWHITE); |
626 foreground_->GetWidget()->Show(); | 626 foreground_->GetWidget()->Show(); |
627 } | 627 } |
628 | 628 |
629 void SessionStateAnimator::DropForeground() { | 629 void SessionStateAnimator::DropForeground() { |
630 foreground_.reset(); | 630 foreground_.reset(); |
631 } | 631 } |
632 | 632 |
633 } // namespace internal | 633 } // namespace internal |
634 } // namespace ash | 634 } // namespace ash |
OLD | NEW |