Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1104)

Unified Diff: chrome/browser/ui/views/apps/app_info_dialog/app_info_summary_tab.h

Issue 180723010: Added tabs to the App Info dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Final fix. Uploaded from different computer so may not work Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/apps/app_info_dialog/app_info_summary_tab.h
diff --git a/chrome/browser/ui/views/apps/app_info_dialog/app_info_summary_tab.h b/chrome/browser/ui/views/apps/app_info_dialog/app_info_summary_tab.h
new file mode 100644
index 0000000000000000000000000000000000000000..7079384d695efd7adb6639feb60abed315dcf009
--- /dev/null
+++ b/chrome/browser/ui/views/apps/app_info_dialog/app_info_summary_tab.h
@@ -0,0 +1,49 @@
+// 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_SUMMARY_TAB_H_
+#define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_SUMMARY_TAB_H_
+
+#include "chrome/browser/ui/views/apps/app_info_dialog/app_info_tab.h"
+#include "ui/gfx/native_widget_types.h"
+
+class Profile;
+
+namespace extensions {
+class Extension;
+}
+namespace gfx {
+class Image;
+}
+namespace views {
+class ImageView;
+}
+
+// The Summary tab of the app info dialog, which provides basic information and
+// controls related to the app.
+class AppInfoSummaryTab : public AppInfoTab,
+ public base::SupportsWeakPtr<AppInfoSummaryTab> {
+ public:
+ AppInfoSummaryTab(gfx::NativeWindow parent_window,
+ Profile* profile,
+ const extensions::Extension* app,
+ const base::Closure& close_callback);
+
+ virtual ~AppInfoSummaryTab();
+
+ private:
+ // Load the app icon asynchronously. For the response, check OnAppImageLoaded.
+ virtual void LoadAppImageAsync();
+ // Called when the app's icon is loaded.
+ virtual void OnAppImageLoaded(const gfx::Image& image);
+
+ // UI elements on the dialog.
+ views::ImageView* app_icon_;
+
+ base::WeakPtrFactory<AppInfoSummaryTab> weak_ptr_factory_;
+
+ DISALLOW_COPY_AND_ASSIGN(AppInfoSummaryTab);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_SUMMARY_TAB_H_

Powered by Google App Engine
This is Rietveld 408576698