app_info_dialog_views.h revision a1401311d1ab56c4ed0a474bd38c108f75cb0cd9
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. 4 5#ifndef CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_DIALOG_VIEWS_H_ 6#define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_DIALOG_VIEWS_H_ 7 8#include "ui/gfx/native_widget_types.h" 9#include "ui/views/window/dialog_delegate.h" 10 11class Profile; 12 13namespace extensions { 14class Extension; 15} 16namespace views { 17class TabbedPane; 18} 19 20// View the information about a particular chrome application. 21class AppInfoDialog : public views::DialogDelegateView { 22 public: 23 AppInfoDialog(gfx::NativeWindow parent_window, 24 Profile* profile, 25 const extensions::Extension* app, 26 const base::Closure& close_callback); 27 28 virtual ~AppInfoDialog(); 29 30 private: 31 // Overridden from views::View: 32 virtual gfx::Size GetPreferredSize() OVERRIDE; 33 34 // Overridden from views::DialogDelegate: 35 virtual bool Cancel() OVERRIDE; 36 virtual base::string16 GetDialogButtonLabel(ui::DialogButton button) const 37 OVERRIDE; 38 virtual int GetDialogButtons() const OVERRIDE; 39 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; 40 41 // Overridden from views::WidgetDelegate: 42 virtual ui::ModalType GetModalType() const OVERRIDE; 43 44 gfx::NativeWindow parent_window_; 45 Profile* profile_; 46 const extensions::Extension* app_; 47 base::Closure close_callback_; 48 49 DISALLOW_COPY_AND_ASSIGN(AppInfoDialog); 50}; 51 52#endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_DIALOG_VIEWS_H_ 53