| 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"
|
| +#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:
|
| + 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:
|
| + 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_
|
|
|