Index: chrome/browser/ui/views/apps/app_info_dialog/app_info_permissions_panel.h |
diff --git a/chrome/browser/ui/views/apps/app_info_dialog/app_info_permissions_panel.h b/chrome/browser/ui/views/apps/app_info_dialog/app_info_permissions_panel.h |
deleted file mode 100644 |
index 78d0a1125f2ddb08d4bc5cb518a41e0d9b52012c..0000000000000000000000000000000000000000 |
--- a/chrome/browser/ui/views/apps/app_info_dialog/app_info_permissions_panel.h |
+++ /dev/null |
@@ -1,83 +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_APP_INFO_PERMISSIONS_PANEL_H_ |
-#define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_PERMISSIONS_PANEL_H_ |
- |
-#include <vector> |
-#include "base/callback_forward.h" |
-#include "chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.h" |
-#include "ui/gfx/native_widget_types.h" |
-#include "ui/views/controls/button/button.h" |
- |
-class Profile; |
- |
-namespace extensions { |
-class Extension; |
-} |
- |
-namespace ui { |
-class Event; |
-} |
- |
-namespace views { |
-class Label; |
-class LabelButton; |
-class View; |
-} |
- |
-// The summary panel of the app info dialog, which provides basic information |
-// and controls related to the app. |
-class AppInfoPermissionsPanel : public AppInfoPanel, |
- public views::ButtonListener { |
- public: |
- AppInfoPermissionsPanel(gfx::NativeWindow parent_window, |
- Profile* profile, |
- const extensions::Extension* app, |
- const base::Closure& close_callback); |
- |
- virtual ~AppInfoPermissionsPanel(); |
- |
- private: |
- FRIEND_TEST_ALL_PREFIXES(AppInfoPermissionsPanelTest, |
- NoPermissionsObtainedCorrectly); |
- FRIEND_TEST_ALL_PREFIXES(AppInfoPermissionsPanelTest, |
- RequiredPermissionsObtainedCorrectly); |
- FRIEND_TEST_ALL_PREFIXES(AppInfoPermissionsPanelTest, |
- OptionalPermissionsObtainedCorrectly); |
- FRIEND_TEST_ALL_PREFIXES(AppInfoPermissionsPanelTest, |
- RetainedFilePermissionsObtainedCorrectly); |
- |
- // Given a list of strings, returns a view containing a list of these strings |
- // as bulleted items. |
- views::View* CreateBulletedListView( |
- const std::vector<base::string16>& messages); |
- |
- // Internal initialisation methods. |
- void CreateActivePermissionsControl(); |
- void CreateRetainedFilesControl(); |
- |
- void LayoutActivePermissionsControl(); |
- void LayoutRetainedFilesControl(); |
- |
- // Overridden from views::ButtonListener. |
- virtual void ButtonPressed(views::Button* sender, |
- const ui::Event& event) OVERRIDE; |
- |
- const std::vector<base::string16> GetActivePermissionMessages() const; |
- const std::vector<base::string16> GetRetainedFilePaths() const; |
- void RevokeFilePermissions(); |
- |
- // UI elements on the dialog. |
- views::Label* active_permissions_heading_; |
- views::View* active_permissions_list_; |
- |
- views::Label* retained_files_heading_; |
- views::View* retained_files_list_; |
- views::LabelButton* revoke_file_permissions_button_; |
- |
- DISALLOW_COPY_AND_ASSIGN(AppInfoPermissionsPanel); |
-}; |
- |
-#endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_PERMISSIONS_PANEL_H_ |