summaryrefslogtreecommitdiffstats
path: root/ash/wm/stacking_controller.cc
diff options
context:
space:
mode:
authorsimon.hong81@gmail.com <simon.hong81@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-09 20:26:57 +0000
committersimon.hong81@gmail.com <simon.hong81@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-09 20:26:57 +0000
commit75d45b1383385d3797717783d2a488a50c756a4e (patch)
tree2202836f2bd3f9a34b65999ddb8da558791ab71e /ash/wm/stacking_controller.cc
parent6f412d62f0aec6c49f16fece32edece8d85a52ac (diff)
downloadchromium_src-75d45b1383385d3797717783d2a488a50c756a4e.zip
chromium_src-75d45b1383385d3797717783d2a488a50c756a4e.tar.gz
chromium_src-75d45b1383385d3797717783d2a488a50c756a4e.tar.bz2
Re-order case statement according to WindowType order
BUG=NONE TEST=Compiles Review URL: https://chromiumcodereview.appspot.com/11275215 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166971 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/stacking_controller.cc')
-rw-r--r--ash/wm/stacking_controller.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ash/wm/stacking_controller.cc b/ash/wm/stacking_controller.cc
index 32fbdb6..f5b2c06 100644
--- a/ash/wm/stacking_controller.cc
+++ b/ash/wm/stacking_controller.cc
@@ -83,6 +83,9 @@ aura::Window* StackingController::GetDefaultParent(aura::Window* window,
else if (IsWindowModal(window))
return GetContainerForWindow(window->transient_parent());
return GetAlwaysOnTopController(target_root)->GetContainer(window);
+ case aura::client::WINDOW_TYPE_CONTROL:
+ return GetContainerById(
+ target_root, internal::kShellWindowId_UnparentedControlContainer);
case aura::client::WINDOW_TYPE_PANEL:
return GetContainerById(target_root,
internal::kShellWindowId_PanelContainer);
@@ -92,9 +95,6 @@ aura::Window* StackingController::GetDefaultParent(aura::Window* window,
case aura::client::WINDOW_TYPE_TOOLTIP:
return GetContainerById(
target_root, internal::kShellWindowId_DragImageAndTooltipContainer);
- case aura::client::WINDOW_TYPE_CONTROL:
- return GetContainerById(
- target_root, internal::kShellWindowId_UnparentedControlContainer);
default:
NOTREACHED() << "Window " << window->id()
<< " has unhandled type " << window->type();