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

Unified Diff: chrome/browser/ui/views/apps/app_info_dialog_views.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_views.h
diff --git a/chrome/browser/ui/views/apps/app_info_dialog_views.h b/chrome/browser/ui/views/apps/app_info_dialog_views.h
deleted file mode 100644
index 42dd93057a04eaddb0c9cd4630433758401b1822..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/apps/app_info_dialog_views.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// 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_VIEWS_H_
-#define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_VIEWS_H_
-
-#include "base/compiler_specific.h"
-#include "chrome/browser/shell_integration.h"
-#include "ui/message_center/views/bounded_scroll_view.h"
-#include "ui/views/controls/image_view.h"
-#include "ui/views/window/dialog_delegate.h"
-
-class Profile;
-
-namespace extensions {
-class Extension;
-}
-
-namespace views {
-class Label;
-}
-
-// A scrollable list of permissions for the given app.
-class PermissionsScrollView : public message_center::BoundedScrollView {
- public:
- PermissionsScrollView(int min_height,
- int max_height,
- const extensions::Extension* app);
-
- private:
- virtual ~PermissionsScrollView();
-
- views::View* inner_scrollable_view;
-};
-
-// View the information about a particular chrome application.
-class AppInfoView : public views::DialogDelegateView,
- public base::SupportsWeakPtr<AppInfoView> {
- public:
- AppInfoView(Profile* profile,
- const extensions::Extension* app,
- const base::Closure& close_callback);
-
- private:
- virtual ~AppInfoView();
-
- // 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;
- virtual base::string16 GetWindowTitle() const OVERRIDE;
-
- // Called when the app's icon is loaded.
- void OnAppImageLoaded(const gfx::Image& image);
-
- // Profile in which the shortcuts will be created.
- Profile* profile_;
-
- // UI elements on the dialog.
- views::Label* app_name_label;
- views::Label* app_description_label;
- views::Label* app_version_label;
- views::ImageView* app_icon;
- views::Label* permission_list_heading;
- PermissionsScrollView* permissions_scroll_view;
-
- const extensions::Extension* app_;
- base::Closure close_callback_;
-
- base::WeakPtrFactory<AppInfoView> weak_ptr_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(AppInfoView);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_VIEWS_H_
« no previous file with comments | « chrome/browser/ui/views/apps/app_info_dialog/app_info_tab.cc ('k') | chrome/browser/ui/views/apps/app_info_dialog_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698