OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef ASH_HOSTWM_HOST_WINDOW_CONTAINER_H_ | |
6 #define ASH_HOSTWM_HOST_WINDOW_CONTAINER_H_ | |
7 | |
8 #include "base/compiler_specific.h" | |
tfarina
2012/07/18 14:43:42
include basictypes.h as well.
| |
9 #include "ui/views/widget/widget.h" | |
10 #include "ui/views/widget/widget_delegate.h" | |
11 | |
12 namespace ash { | |
13 namespace internal { | |
14 | |
15 class HostWindowContainer: public views::WidgetDelegateView { | |
16 public: | |
17 static views::Widget* CreateHostWindowContainerWidget( | |
18 views::Widget* client_widget, | |
19 const gfx::Rect& bounds, | |
20 views::Widget::InitParams::Type type); | |
21 | |
22 virtual ~HostWindowContainer(); | |
23 | |
24 // Overridden from views::View: | |
tfarina
2012/07/18 14:43:42
nit: please, make these overrides private if possi
| |
25 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | |
26 virtual gfx::Size GetPreferredSize() OVERRIDE; | |
27 virtual void Layout() OVERRIDE; | |
28 | |
29 // Overridden from views::WidgetDelegate: | |
30 virtual string16 GetWindowTitle() const OVERRIDE; | |
31 virtual View* GetContentsView() OVERRIDE; | |
32 virtual bool CanResize() const OVERRIDE; | |
33 virtual bool CanMaximize() const OVERRIDE; | |
34 virtual void DeleteDelegate() OVERRIDE; | |
35 | |
36 private: | |
tfarina
2012/07/18 14:43:42
nit: indent one more space.
| |
37 explicit HostWindowContainer(views::Widget* client_widget); | |
38 | |
39 views::Widget* client_widget_; | |
40 | |
41 DISALLOW_COPY_AND_ASSIGN(HostWindowContainer); | |
42 }; | |
43 | |
44 } // namespace internal | |
45 } // namespace ash | |
46 | |
47 #endif // ASH_HOSTWM_HOST_WINDOW_CONTAINER_H_ | |
OLD | NEW |