Disable TabDragController tests that fail with a real compositor.
[chromium-blink-merge.git] / ash / wm / stacking_controller.h
blobbbe715eba30c3498dbd1dd7d7d77e6fbcf4bcccf
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
3 // found in the LICENSE file.
5 #ifndef ASH_WM_STACKING_CONTROLLER_H_
6 #define ASH_WM_STACKING_CONTROLLER_H_
8 #include "ash/ash_export.h"
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "ui/aura/client/window_tree_client.h"
14 namespace ash {
15 namespace internal {
16 class AlwaysOnTopController;
19 class ASH_EXPORT StackingController : public aura::client::WindowTreeClient {
20 public:
21 StackingController();
22 virtual ~StackingController();
24 // Overridden from aura::client::WindowTreeClient:
25 virtual aura::Window* GetDefaultParent(aura::Window* context,
26 aura::Window* window,
27 const gfx::Rect& bounds) OVERRIDE;
29 private:
30 // Returns corresponding system modal container for a modal window.
31 // If screen lock is not active, all system modal windows are placed into the
32 // normal modal container.
33 // Otherwise those that originate from LockScreen container and above are
34 // placed in the screen lock modal container.
35 aura::Window* GetSystemModalContainer(aura::Window* root,
36 aura::Window* window) const;
38 DISALLOW_COPY_AND_ASSIGN(StackingController);
41 } // namespace ash
43 #endif // ASH_WM_STACKING_CONTROLLER_H_