OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WEBSITE_SETTINGS_PERMISSION_SELECTOR_ROW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSION_SELECTOR_ROW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSION_SELECTOR_ROW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSION_SELECTOR_ROW_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 namespace internal { | 24 namespace internal { |
25 class ComboboxModelAdapter; | 25 class ComboboxModelAdapter; |
26 class PermissionCombobox; | 26 class PermissionCombobox; |
27 class PermissionMenuButton; | 27 class PermissionMenuButton; |
28 } | 28 } |
29 | 29 |
30 namespace views { | 30 namespace views { |
31 class GridLayout; | 31 class GridLayout; |
32 class ImageView; | 32 class ImageView; |
33 class MenuRunner; | |
34 } | 33 } |
35 | 34 |
36 // A PermissionSelectorRow is a row in the Page Info bubble that shows a | 35 // A PermissionSelectorRow is a row in the Page Info bubble that shows a |
37 // permission that a site can have ambient access to, and allows the user to | 36 // permission that a site can have ambient access to, and allows the user to |
38 // control whether that access is granted. | 37 // control whether that access is granted. |
39 class PermissionSelectorRow : public views::View { | 38 class PermissionSelectorRow : public views::View { |
40 public: | 39 public: |
41 PermissionSelectorRow(Profile* profile, | 40 PermissionSelectorRow(Profile* profile, |
42 const GURL& url, | 41 const GURL& url, |
43 const WebsiteSettingsUI::PermissionInfo& permission); | 42 const WebsiteSettingsUI::PermissionInfo& permission); |
(...skipping 25 matching lines...) Expand all Loading... |
69 views::ImageView* icon_; // Owned by the views hierachy. | 68 views::ImageView* icon_; // Owned by the views hierachy. |
70 internal::PermissionMenuButton* menu_button_; // Owned by the views hierachy. | 69 internal::PermissionMenuButton* menu_button_; // Owned by the views hierachy. |
71 internal::PermissionCombobox* combobox_; // Owned by the views hierarchy. | 70 internal::PermissionCombobox* combobox_; // Owned by the views hierarchy. |
72 | 71 |
73 base::ObserverList<PermissionSelectorRowObserver, false> observer_list_; | 72 base::ObserverList<PermissionSelectorRowObserver, false> observer_list_; |
74 | 73 |
75 DISALLOW_COPY_AND_ASSIGN(PermissionSelectorRow); | 74 DISALLOW_COPY_AND_ASSIGN(PermissionSelectorRow); |
76 }; | 75 }; |
77 | 76 |
78 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSION_SELECTOR_ROW_H_ | 77 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSION_SELECTOR_ROW_H_ |
OLD | NEW |