Chromium Code Reviews| Index: wm/foreign_test_window.h |
| diff --git a/wm/foreign_test_window.h b/wm/foreign_test_window.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..478e6ba2d15616d20eb1d8556fdeaa72c9001770 |
| --- /dev/null |
| +++ b/wm/foreign_test_window.h |
| @@ -0,0 +1,41 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
|
danakj
2013/02/21 01:33:15
2013 for all everything now
reveman
2013/02/22 01:26:44
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef WM_FOREIGN_TEST_WINDOW_H_ |
| +#define WM_FOREIGN_TEST_WINDOW_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "base/callback.h" |
| +#include "base/compiler_specific.h" |
| +#include "base/memory/scoped_ptr.h" |
| +#include "ui/gfx/native_widget_types.h" |
| + |
| +namespace wm { |
| +class ForeignTestWindowHost; |
| + |
| +// This class implements a foreign window to use for testing purposes. |
| +class ForeignTestWindow { |
| + public: |
| + struct CreateParams { |
| + explicit CreateParams(gfx::AcceleratedWidget parent); |
| + |
| + gfx::AcceleratedWidget parent; |
| + }; |
| + explicit ForeignTestWindow(const CreateParams& params); |
| + virtual ~ForeignTestWindow(); |
| + |
| + void Show(); |
| + void Hide(); |
| + void Destroy(); |
| + void Sync(); |
| + |
| + private: |
| + ForeignTestWindowHost* host_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(ForeignTestWindow); |
| +}; |
| + |
| +} // namespace wm |
| + |
| +#endif // WM_FOREIGN_TEST_WINDOW_H_ |