Index: chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.h |
diff --git a/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.h b/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..95c018015b77e29dceb7fd6c2bba3d52c398db46 |
--- /dev/null |
+++ b/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.h |
@@ -0,0 +1,62 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_DIALOG_VIEWS_H_ |
+#define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_DIALOG_VIEWS_H_ |
+ |
+#include "ui/gfx/native_widget_types.h" |
+#include "ui/views/controls/tabbed_pane/tabbed_pane_listener.h" |
+#include "ui/views/window/dialog_delegate.h" |
+ |
+class Profile; |
+ |
+namespace extensions { |
+class Extension; |
+} |
+namespace views { |
+class TabbedPane; |
+} |
+ |
+// View the information about a particular chrome application. |
+class AppInfoDialog : public views::DialogDelegateView, |
+ public views::TabbedPaneListener { |
+ public: |
+ AppInfoDialog(gfx::NativeWindow parent_window, |
+ Profile* profile, |
+ const extensions::Extension* app, |
+ const base::Closure& close_callback); |
+ |
+ virtual ~AppInfoDialog(); |
+ |
+ private: |
+ // Overridden from views::View: |
+ virtual gfx::Size GetPreferredSize() OVERRIDE; |
+ |
+ // Overridden from views::DialogDelegate: |
+ virtual bool Cancel() OVERRIDE; |
+ virtual base::string16 GetDialogButtonLabel(ui::DialogButton button) const |
+ OVERRIDE; |
+ virtual int GetDialogButtons() const OVERRIDE; |
+ virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; |
+ |
+ // Overridden from views::WidgetDelegate: |
+ virtual ui::ModalType GetModalType() const OVERRIDE; |
+ |
+ // Overridden from views::TabbedPaneListener. |
+ virtual void TabSelectedAt(int index) OVERRIDE; |
+ |
+ // Profile in which the shortcuts will be created. |
+ Profile* profile_; |
+ |
+ gfx::NativeWindow parent_window_; |
+ const extensions::Extension* app_; |
+ base::Closure close_callback_; |
+ |
+ // UI elements on the dialog. |
+ views::TabbedPane* tabbed_pane_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(AppInfoDialog); |
+}; |
+ |
+#endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_DIALOG_VIEWS_H_ |