NaCl: Update revision in DEPS, r12770 -> r12773
[chromium-blink-merge.git] / chrome / browser / ui / views / apps / app_info_dialog_views.h
blob8187a8729b1491bc68132fbde858d88247e8aab5
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"
11 class Profile;
13 namespace extensions {
14 class Extension;
17 namespace views {
18 class Label;
21 // View the information about a particular chrome application.
22 class AppInfoView : public views::DialogDelegateView {
23 public:
24 AppInfoView(Profile* profile,
25 const extensions::Extension* app,
26 const base::Closure& close_callback);
28 private:
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)
37 const OVERRIDE;
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.
46 Profile* profile_;
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_