| // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef UI_WM_CORE_TRANSIENT_WINDOW_STACKING_CLIENT_H_ |
| #define UI_WM_CORE_TRANSIENT_WINDOW_STACKING_CLIENT_H_ |
| |
| #include "ui/aura/client/window_stacking_client.h" |
| #include "ui/wm/core/wm_core_export.h" |
| |
| namespace wm { |
| |
| class TransientWindowManager; |
| |
| class WM_CORE_EXPORT TransientWindowStackingClient |
| : public aura::client::WindowStackingClient { |
| public: |
| TransientWindowStackingClient(); |
| |
| TransientWindowStackingClient(const TransientWindowStackingClient&) = delete; |
| TransientWindowStackingClient& operator=( |
| const TransientWindowStackingClient&) = delete; |
| |
| ~TransientWindowStackingClient() override; |
| |
| // WindowStackingClient: |
| bool AdjustStacking(aura::Window** child, |
| aura::Window** target, |
| aura::Window::StackDirection* direction) override; |
| |
| private: |
| // Purely for DCHECKs. |
| friend class TransientWindowManager; |
| |
| static TransientWindowStackingClient* instance_; |
| }; |
| |
| } // namespace wm |
| |
| #endif // UI_WM_CORE_TRANSIENT_WINDOW_STACKING_CLIENT_H_ |