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..8c6a00cb6f5aca2efd20675012381be9b2264b38 |
--- /dev/null |
+++ b/wm/foreign_test_window.h |
@@ -0,0 +1,44 @@ |
+// 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 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" |
+ |
+namespace aura { |
+class RootWindow; |
+} |
+ |
+namespace wm { |
+class ForeignTestWindowHost; |
+ |
+// This class implements a foreign window to use for testing purposes. |
+class ForeignTestWindow { |
+ public: |
+ struct CreateParams { |
+ explicit CreateParams(aura::RootWindow* root_window); |
+ |
+ aura::RootWindow* root_window; |
+ }; |
+ 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_ |