diff options
Diffstat (limited to 'chromium/ui/wm/core/transient_window_controller.h')
-rw-r--r-- | chromium/ui/wm/core/transient_window_controller.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/chromium/ui/wm/core/transient_window_controller.h b/chromium/ui/wm/core/transient_window_controller.h new file mode 100644 index 00000000000..8638824ae36 --- /dev/null +++ b/chromium/ui/wm/core/transient_window_controller.h @@ -0,0 +1,36 @@ +// Copyright 2014 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_CONTROLLER_H_ +#define UI_WM_CORE_TRANSIENT_WINDOW_CONTROLLER_H_ + +#include "ui/wm/public/transient_window_client.h" +#include "ui/wm/wm_export.h" + +namespace wm { + +// TransientWindowClient implementation. Uses TransientWindowManager to handle +// tracking transient per window. +class WM_EXPORT TransientWindowController + : public aura::client::TransientWindowClient { + public: + TransientWindowController(); + virtual ~TransientWindowController(); + + // TransientWindowClient: + virtual void AddTransientChild(aura::Window* parent, + aura::Window* child) OVERRIDE; + virtual void RemoveTransientChild(aura::Window* parent, + aura::Window* child) OVERRIDE; + virtual aura::Window* GetTransientParent(aura::Window* window) OVERRIDE; + virtual const aura::Window* GetTransientParent( + const aura::Window* window) OVERRIDE; + + private: + DISALLOW_COPY_AND_ASSIGN(TransientWindowController); +}; + +} // namespace wm + +#endif // UI_WM_CORE_TRANSIENT_WINDOW_CONTROLLER_H_ |