OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_PERMISSIONS_PANEL_
H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_PERMISSIONS_PANEL_
H_ |
6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_PERMISSIONS_PANEL_
H_ | 6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_PERMISSIONS_PANEL_
H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.h" | 10 #include "chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 void CreateActivePermissionsControl(); | 58 void CreateActivePermissionsControl(); |
59 void CreateRetainedFilesControl(); | 59 void CreateRetainedFilesControl(); |
60 void CreateRetainedDevicesControl(); | 60 void CreateRetainedDevicesControl(); |
61 | 61 |
62 void LayoutActivePermissionsControl(); | 62 void LayoutActivePermissionsControl(); |
63 void LayoutRetainedFilesControl(); | 63 void LayoutRetainedFilesControl(); |
64 void LayoutRetainedDevicesControl(); | 64 void LayoutRetainedDevicesControl(); |
65 | 65 |
66 // Overridden from views::ButtonListener. | 66 // Overridden from views::ButtonListener. |
67 virtual void ButtonPressed(views::Button* sender, | 67 virtual void ButtonPressed(views::Button* sender, |
68 const ui::Event& event) OVERRIDE; | 68 const ui::Event& event) override; |
69 | 69 |
70 const std::vector<base::string16> GetActivePermissionMessages() const; | 70 const std::vector<base::string16> GetActivePermissionMessages() const; |
71 const std::vector<base::string16> GetRetainedFilePaths() const; | 71 const std::vector<base::string16> GetRetainedFilePaths() const; |
72 void RevokeFilePermissions(); | 72 void RevokeFilePermissions(); |
73 const std::vector<base::string16> GetRetainedDevices() const; | 73 const std::vector<base::string16> GetRetainedDevices() const; |
74 void RevokeDevicePermissions(); | 74 void RevokeDevicePermissions(); |
75 | 75 |
76 // UI elements on the dialog. | 76 // UI elements on the dialog. |
77 views::Label* active_permissions_heading_; | 77 views::Label* active_permissions_heading_; |
78 views::View* active_permissions_list_; | 78 views::View* active_permissions_list_; |
79 | 79 |
80 views::Label* retained_files_heading_; | 80 views::Label* retained_files_heading_; |
81 views::View* retained_files_list_; | 81 views::View* retained_files_list_; |
82 views::LabelButton* revoke_file_permissions_button_; | 82 views::LabelButton* revoke_file_permissions_button_; |
83 | 83 |
84 views::Label* retained_devices_heading_; | 84 views::Label* retained_devices_heading_; |
85 views::View* retained_devices_list_; | 85 views::View* retained_devices_list_; |
86 views::LabelButton* revoke_device_permissions_button_; | 86 views::LabelButton* revoke_device_permissions_button_; |
87 | 87 |
88 DISALLOW_COPY_AND_ASSIGN(AppInfoPermissionsPanel); | 88 DISALLOW_COPY_AND_ASSIGN(AppInfoPermissionsPanel); |
89 }; | 89 }; |
90 | 90 |
91 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_PERMISSIONS_PAN
EL_H_ | 91 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_PERMISSIONS_PAN
EL_H_ |
OLD | NEW |