diff options
Diffstat (limited to 'ui/aura/test/test_desktop_delegate.h')
-rw-r--r-- | ui/aura/test/test_desktop_delegate.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/ui/aura/test/test_desktop_delegate.h b/ui/aura/test/test_desktop_delegate.h new file mode 100644 index 0000000..1174eb48 --- /dev/null +++ b/ui/aura/test/test_desktop_delegate.h @@ -0,0 +1,40 @@ +// Copyright (c) 2011 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_AURA_TEST_TEST_DESKTOP_DELEGATE_H_ +#define UI_AURA_TEST_TEST_DESKTOP_DELEGATE_H_ +#pragma once + +#include "base/basictypes.h" +#include "base/compiler_specific.h" +#include "base/memory/scoped_ptr.h" +#include "ui/aura/desktop_delegate.h" +#include "ui/aura/toplevel_window_container.h" + +namespace aura { +class ToplevelWindowContainer; + +namespace test { + +class TestDesktopDelegate : public DesktopDelegate { + public: + TestDesktopDelegate(); + virtual ~TestDesktopDelegate(); + + Window* default_container() { return default_container_.get(); } + + private: + // Overridden from DesktopDelegate: + virtual void AddChildToDefaultParent(Window* window) OVERRIDE; + virtual Window* GetTopmostWindowToActivate(Window* ignore) const OVERRIDE; + + scoped_ptr<ToplevelWindowContainer> default_container_; + + DISALLOW_COPY_AND_ASSIGN(TestDesktopDelegate); +}; + +} // namespace test +} // namespace aura + +#endif // UI_AURA_TEST_TEST_DESKTOP_DELEGATE_H_ |