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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/hostwm/OWNERS ('k') | ash/hostwm/host_window_container.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« 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