1 // Copyright 2014 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 CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_VIEWS_H_
8 #include "base/compiler_specific.h"
9 #include "ui/views/window/dialog_delegate.h"
13 namespace extensions
{
21 // View the information about a particular chrome application.
22 class AppInfoView
: public views::DialogDelegateView
{
24 AppInfoView(Profile
* profile
,
25 const extensions::Extension
* app
,
26 const base::Closure
& close_callback
);
29 virtual ~AppInfoView();
31 // Overridden from views::View:
32 virtual gfx::Size
GetPreferredSize() OVERRIDE
;
34 // Overridden from views::DialogDelegate:
35 virtual bool Cancel() OVERRIDE
;
36 virtual base::string16
GetDialogButtonLabel(ui::DialogButton button
)
38 virtual int GetDialogButtons() const OVERRIDE
;
39 virtual bool IsDialogButtonEnabled(ui::DialogButton button
) const OVERRIDE
;
41 // Overridden from views::WidgetDelegate:
42 virtual ui::ModalType
GetModalType() const OVERRIDE
;
43 virtual base::string16
GetWindowTitle() const OVERRIDE
;
45 // Profile in which the shortcuts will be created.
48 // UI elements on the dialog.
49 views::Label
* app_name_label
;
50 views::Label
* app_description_label
;
52 const extensions::Extension
* app_
;
53 base::Closure close_callback_
;
55 DISALLOW_COPY_AND_ASSIGN(AppInfoView
);
58 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_VIEWS_H_