OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CONTENT_SETTING_BUBBLE_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 class ContentSettingBubbleModel; | 22 class ContentSettingBubbleModel; |
23 class Profile; | 23 class Profile; |
24 | 24 |
25 namespace chrome { | 25 namespace chrome { |
26 class ContentSettingBubbleViewsBridge; | 26 class ContentSettingBubbleViewsBridge; |
27 } | 27 } |
28 | 28 |
29 namespace views { | 29 namespace views { |
30 class RadioButton; | 30 class RadioButton; |
| 31 class LabelButton; |
31 } | 32 } |
32 | 33 |
33 // ContentSettingBubbleContents is used when the user turns on different kinds | 34 // ContentSettingBubbleContents is used when the user turns on different kinds |
34 // of content blocking (e.g. "block images"). When viewing a page with blocked | 35 // of content blocking (e.g. "block images"). When viewing a page with blocked |
35 // content, icons appear in the omnibox corresponding to the content types that | 36 // content, icons appear in the omnibox corresponding to the content types that |
36 // were blocked, and the user can click one to get a bubble hosting a few | 37 // were blocked, and the user can click one to get a bubble hosting a few |
37 // controls. This class provides the content of that bubble. In general, | 38 // controls. This class provides the content of that bubble. In general, |
38 // these bubbles typically have a title, a pair of radio buttons for toggling | 39 // these bubbles typically have a title, a pair of radio buttons for toggling |
39 // the blocking settings for the current site, a close button, and a link to | 40 // the blocking settings for the current site, a close button, and a link to |
40 // get to a more comprehensive settings management dialog. A few types have | 41 // get to a more comprehensive settings management dialog. A few types have |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // Provides data for this bubble. | 110 // Provides data for this bubble. |
110 std::unique_ptr<ContentSettingBubbleModel> content_setting_bubble_model_; | 111 std::unique_ptr<ContentSettingBubbleModel> content_setting_bubble_model_; |
111 | 112 |
112 // Some of our controls, so we can tell what's been clicked when we get a | 113 // Some of our controls, so we can tell what's been clicked when we get a |
113 // message. | 114 // message. |
114 ListItemLinks list_item_links_; | 115 ListItemLinks list_item_links_; |
115 typedef std::vector<views::RadioButton*> RadioGroup; | 116 typedef std::vector<views::RadioButton*> RadioGroup; |
116 RadioGroup radio_group_; | 117 RadioGroup radio_group_; |
117 views::Link* custom_link_; | 118 views::Link* custom_link_; |
118 views::Link* manage_link_; | 119 views::Link* manage_link_; |
| 120 views::LabelButton* manage_button_; |
119 views::Link* learn_more_link_; | 121 views::Link* learn_more_link_; |
120 | 122 |
121 // Combobox models the bubble owns. | 123 // Combobox models the bubble owns. |
122 std::list<MediaComboboxModel> combobox_models_; | 124 std::list<MediaComboboxModel> combobox_models_; |
123 | 125 |
124 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleContents); | 126 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleContents); |
125 }; | 127 }; |
126 | 128 |
127 #endif // CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_ | 129 #endif // CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_ |
OLD | NEW |