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

Side by Side Diff: chrome/browser/ui/views/permission_bubble/permission_selector_row.h

Issue 2748443005: Rename website_settings UI folders to permission_bubble. (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
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_PERMISSION_BUBBLE_PERMISSION_SELECTOR_ROW_H_
6 #define CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSION_SELECTOR_ROW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PERMISSION_BUBBLE_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"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/observer_list.h" 12 #include "base/observer_list.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "chrome/browser/ui/page_info/website_settings_ui.h" 14 #include "chrome/browser/ui/page_info/website_settings_ui.h"
15 #include "chrome/browser/ui/views/website_settings/permission_selector_row_obser ver.h" 15 #include "chrome/browser/ui/permission_bubble/permission_menu_model.h"
16 #include "chrome/browser/ui/website_settings/permission_menu_model.h" 16 #include "chrome/browser/ui/views/permission_bubble/permission_selector_row_obse rver.h"
17 #include "components/content_settings/core/common/content_settings.h" 17 #include "components/content_settings/core/common/content_settings.h"
18 #include "components/content_settings/core/common/content_settings_types.h" 18 #include "components/content_settings/core/common/content_settings_types.h"
19 #include "ui/views/controls/button/menu_button_listener.h" 19 #include "ui/views/controls/button/menu_button_listener.h"
20 #include "ui/views/view.h" 20 #include "ui/views/view.h"
21 21
22 class Profile; 22 class Profile;
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 } 33 }
34 34
35 // 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
36 // 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
37 // control whether that access is granted. 37 // control whether that access is granted.
38 class PermissionSelectorRow : public views::View { 38 class PermissionSelectorRow : public views::View {
raymes 2017/03/13 02:48:21 Should this one be moved here? I think this is for
39 public: 39 public:
40 PermissionSelectorRow(Profile* profile, 40 PermissionSelectorRow(Profile* profile,
41 const GURL& url, 41 const GURL& url,
42 const WebsiteSettingsUI::PermissionInfo& permission); 42 const WebsiteSettingsUI::PermissionInfo& permission);
43 43
44 void AddObserver(PermissionSelectorRowObserver* observer); 44 void AddObserver(PermissionSelectorRowObserver* observer);
45 45
46 void PermissionChanged(const WebsiteSettingsUI::PermissionInfo& permission); 46 void PermissionChanged(const WebsiteSettingsUI::PermissionInfo& permission);
47 47
48 protected: 48 protected:
(...skipping 18 matching lines...) Expand all
67 67
68 views::ImageView* icon_; // Owned by the views hierachy. 68 views::ImageView* icon_; // Owned by the views hierachy.
69 internal::PermissionMenuButton* menu_button_; // Owned by the views hierachy. 69 internal::PermissionMenuButton* menu_button_; // Owned by the views hierachy.
70 internal::PermissionCombobox* combobox_; // Owned by the views hierarchy. 70 internal::PermissionCombobox* combobox_; // Owned by the views hierarchy.
71 71
72 base::ObserverList<PermissionSelectorRowObserver, false> observer_list_; 72 base::ObserverList<PermissionSelectorRowObserver, false> observer_list_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(PermissionSelectorRow); 74 DISALLOW_COPY_AND_ASSIGN(PermissionSelectorRow);
75 }; 75 };
76 76
77 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSION_SELECTOR_ROW_H_ 77 #endif // CHROME_BROWSER_UI_VIEWS_PERMISSION_BUBBLE_PERMISSION_SELECTOR_ROW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698