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

Unified Diff: wm/host/foreign_test_window_host.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/host/DEPS ('k') | wm/host/foreign_test_window_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: wm/host/foreign_test_window_host.h
diff --git a/wm/host/foreign_test_window_host.h b/wm/host/foreign_test_window_host.h
new file mode 100644
index 0000000000000000000000000000000000000000..d7ab85ac0c8606afdfe261829a4d9eccd551bd26
--- /dev/null
+++ b/wm/host/foreign_test_window_host.h
@@ -0,0 +1,36 @@
+// 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_HOST_FOREIGN_TEST_WINDOW_HOST_H_
+#define WM_HOST_FOREIGN_TEST_WINDOW_HOST_H_
+
+namespace aura {
+class RootWindow;
+}
+
+namespace wm {
+
+class ForeignTestWindowHost {
+ public:
+ virtual ~ForeignTestWindowHost() {}
+
+ // Creates a new ForeignTestWindowHost. Caller owns return value and must
+ // call Destroy() to delete instance.
+ static ForeignTestWindowHost* Create(aura::RootWindow* root_window);
+
+ // This is guaranteed to run all tasks up to the last Sync() call.
+ static void RunAllPendingInMessageLoop();
+
+ // These functions should only be called on a thread with an IO message loop.
+ virtual void Initialize() = 0;
+ virtual void Delete() = 0;
+ virtual void Show() = 0;
+ virtual void Hide() = 0;
+ virtual void Destroy() = 0;
+ virtual void Sync() = 0;
+};
+
+} // namespace wm
+
+#endif // WM_HOST_FOREIGN_TEST_WINDOW_HOST_H_
« no previous file with comments | « wm/host/DEPS ('k') | wm/host/foreign_test_window_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698