Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Unified Diff: wm/foreign_test_window.h

Issue 11485006: Add window manager component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Push gfx::AcceleratedWidget usage into platform specific code. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « wm/OWNERS ('k') | wm/foreign_test_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « wm/OWNERS ('k') | wm/foreign_test_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698