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 "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.h" | 12 #include "chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.h" |
13 #include "extensions/common/permissions/permission_message_provider.h" | 13 #include "extensions/common/permissions/permission_message_provider.h" |
14 | 14 |
15 class Profile; | 15 class Profile; |
16 | 16 |
17 namespace extensions { | 17 namespace extensions { |
18 class Extension; | 18 class Extension; |
19 } | 19 } |
20 | 20 |
21 namespace ui { | |
22 class Event; | |
23 } | |
24 | |
25 namespace views { | |
26 class GridLayout; | |
27 class View; | |
28 } | |
29 | |
30 // The summary panel of the app info dialog, which provides basic information | 21 // The summary panel of the app info dialog, which provides basic information |
31 // and controls related to the app. | 22 // and controls related to the app. |
32 class AppInfoPermissionsPanel : public AppInfoPanel { | 23 class AppInfoPermissionsPanel : public AppInfoPanel { |
33 public: | 24 public: |
34 AppInfoPermissionsPanel(Profile* profile, const extensions::Extension* app); | 25 AppInfoPermissionsPanel(Profile* profile, const extensions::Extension* app); |
35 | 26 |
36 ~AppInfoPermissionsPanel() override; | 27 ~AppInfoPermissionsPanel() override; |
37 | 28 |
38 private: | 29 private: |
39 FRIEND_TEST_ALL_PREFIXES(AppInfoPermissionsPanelTest, | 30 FRIEND_TEST_ALL_PREFIXES(AppInfoPermissionsPanelTest, |
(...skipping 21 matching lines...) Expand all Loading... |
61 | 52 |
62 int GetRetainedDeviceCount() const; | 53 int GetRetainedDeviceCount() const; |
63 base::string16 GetRetainedDeviceHeading() const; | 54 base::string16 GetRetainedDeviceHeading() const; |
64 const std::vector<base::string16> GetRetainedDevices() const; | 55 const std::vector<base::string16> GetRetainedDevices() const; |
65 void RevokeDevicePermissions(); | 56 void RevokeDevicePermissions(); |
66 | 57 |
67 DISALLOW_COPY_AND_ASSIGN(AppInfoPermissionsPanel); | 58 DISALLOW_COPY_AND_ASSIGN(AppInfoPermissionsPanel); |
68 }; | 59 }; |
69 | 60 |
70 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_PERMISSIONS_PAN
EL_H_ | 61 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_PERMISSIONS_PAN
EL_H_ |
OLD | NEW |