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

Unified Diff: wm/foreign_window_widget.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/foreign_window_unittest.cc ('k') | wm/foreign_window_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: wm/foreign_window_widget.h
diff --git a/wm/foreign_window_widget.h b/wm/foreign_window_widget.h
new file mode 100644
index 0000000000000000000000000000000000000000..00b53233a9dc9dbb13ca69cd4c0293459ce89dbd
--- /dev/null
+++ b/wm/foreign_window_widget.h
@@ -0,0 +1,30 @@
+// 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_WINDOW_WIDGET_H_
+#define WM_FOREIGN_WINDOW_WIDGET_H_
+
+#include "ui/views/widget/widget.h"
+
+namespace wm {
+class ForeignWindow;
+
+class ForeignWindowWidget : public views::Widget {
+ public:
+ static views::Widget* CreateWindow(ForeignWindow* foreign_window);
+
+ virtual void Close() OVERRIDE;
+
+ private:
+ explicit ForeignWindowWidget(ForeignWindow* foreign_window);
+ virtual ~ForeignWindowWidget();
+
+ scoped_refptr<ForeignWindow> foreign_window_;
+
+ DISALLOW_COPY_AND_ASSIGN(ForeignWindowWidget);
+};
+
+} // namespace wm
+
+#endif // WM_FOREIGN_WINDOW_WIDGET_H_
« no previous file with comments | « wm/foreign_window_unittest.cc ('k') | wm/foreign_window_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698