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.
5 #ifndef ASH_SHELL_TOPLEVEL_WINDOW_H_
6 #define ASH_SHELL_TOPLEVEL_WINDOW_H_
8 #include "ui/views/widget/widget_delegate.h"
13 class ToplevelWindow
: public views::WidgetDelegateView
{
21 static void CreateToplevelWindow(const CreateParams
& params
);
24 explicit ToplevelWindow(const CreateParams
& params
);
25 virtual ~ToplevelWindow();
27 // Overridden from views::View:
28 virtual void OnPaint(gfx::Canvas
* canvas
) OVERRIDE
;
30 // Overridden from views::WidgetDelegate:
31 virtual base::string16
GetWindowTitle() const OVERRIDE
;
32 virtual View
* GetContentsView() OVERRIDE
;
33 virtual bool CanResize() const OVERRIDE
;
34 virtual bool CanMaximize() const OVERRIDE
;
36 const CreateParams params_
;
38 DISALLOW_COPY_AND_ASSIGN(ToplevelWindow
);
44 #endif // ASH_SHELL_TOPLEVEL_WINDOW_H_