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

Unified Diff: ash/hostwm/host_window_container.h

Issue 10789018: aura: Add X11 host window management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Keep ash switches alphabetized. Created 8 years, 5 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 | « ash/hostwm/OWNERS ('k') | ash/hostwm/host_window_container.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/hostwm/host_window_container.h
diff --git a/ash/hostwm/host_window_container.h b/ash/hostwm/host_window_container.h
new file mode 100644
index 0000000000000000000000000000000000000000..ddda2098fb7490b2bd6955e659d5016b73527d03
--- /dev/null
+++ b/ash/hostwm/host_window_container.h
@@ -0,0 +1,47 @@
+// Copyright (c) 2012 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 ASH_HOSTWM_HOST_WINDOW_CONTAINER_H_
+#define ASH_HOSTWM_HOST_WINDOW_CONTAINER_H_
+
+#include "base/compiler_specific.h"
tfarina 2012/07/18 14:43:42 include basictypes.h as well.
+#include "ui/views/widget/widget.h"
+#include "ui/views/widget/widget_delegate.h"
+
+namespace ash {
+namespace internal {
+
+class HostWindowContainer: public views::WidgetDelegateView {
+ public:
+ static views::Widget* CreateHostWindowContainerWidget(
+ views::Widget* client_widget,
+ const gfx::Rect& bounds,
+ views::Widget::InitParams::Type type);
+
+ virtual ~HostWindowContainer();
+
+ // Overridden from views::View:
tfarina 2012/07/18 14:43:42 nit: please, make these overrides private if possi
+ virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
+ virtual gfx::Size GetPreferredSize() OVERRIDE;
+ virtual void Layout() OVERRIDE;
+
+ // Overridden from views::WidgetDelegate:
+ virtual string16 GetWindowTitle() const OVERRIDE;
+ virtual View* GetContentsView() OVERRIDE;
+ virtual bool CanResize() const OVERRIDE;
+ virtual bool CanMaximize() const OVERRIDE;
+ virtual void DeleteDelegate() OVERRIDE;
+
+private:
tfarina 2012/07/18 14:43:42 nit: indent one more space.
+ explicit HostWindowContainer(views::Widget* client_widget);
+
+ views::Widget* client_widget_;
+
+ DISALLOW_COPY_AND_ASSIGN(HostWindowContainer);
+};
+
+} // namespace internal
+} // namespace ash
+
+#endif // ASH_HOSTWM_HOST_WINDOW_CONTAINER_H_
« no previous file with comments | « ash/hostwm/OWNERS ('k') | ash/hostwm/host_window_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698