| 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 <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 namespace content { | 25 namespace content { |
| 26 class WebContents; | 26 class WebContents; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace ui { | 29 namespace ui { |
| 30 class SimpleMenuModel; | 30 class SimpleMenuModel; |
| 31 } | 31 } |
| 32 | 32 |
| 33 namespace views { | 33 namespace views { |
| 34 class LabelButton; |
| 34 class MenuButton; | 35 class MenuButton; |
| 35 class MenuRunner; | 36 class MenuRunner; |
| 36 class TextButton; | |
| 37 class RadioButton; | 37 class RadioButton; |
| 38 } | 38 } |
| 39 | 39 |
| 40 // ContentSettingBubbleContents is used when the user turns on different kinds | 40 // ContentSettingBubbleContents is used when the user turns on different kinds |
| 41 // of content blocking (e.g. "block images"). When viewing a page with blocked | 41 // of content blocking (e.g. "block images"). When viewing a page with blocked |
| 42 // content, icons appear in the omnibox corresponding to the content types that | 42 // content, icons appear in the omnibox corresponding to the content types that |
| 43 // were blocked, and the user can click one to get a bubble hosting a few | 43 // were blocked, and the user can click one to get a bubble hosting a few |
| 44 // controls. This class provides the content of that bubble. In general, | 44 // controls. This class provides the content of that bubble. In general, |
| 45 // these bubbles typically have a title, a pair of radio buttons for toggling | 45 // these bubbles typically have a title, a pair of radio buttons for toggling |
| 46 // the blocking settings for the current site, a close button, and a link to | 46 // the blocking settings for the current site, a close button, and a link to |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // A registrar for listening for WEB_CONTENTS_DESTROYED notifications. | 105 // A registrar for listening for WEB_CONTENTS_DESTROYED notifications. |
| 106 content::NotificationRegistrar registrar_; | 106 content::NotificationRegistrar registrar_; |
| 107 | 107 |
| 108 // Some of our controls, so we can tell what's been clicked when we get a | 108 // Some of our controls, so we can tell what's been clicked when we get a |
| 109 // message. | 109 // message. |
| 110 PopupLinks popup_links_; | 110 PopupLinks popup_links_; |
| 111 typedef std::vector<views::RadioButton*> RadioGroup; | 111 typedef std::vector<views::RadioButton*> RadioGroup; |
| 112 RadioGroup radio_group_; | 112 RadioGroup radio_group_; |
| 113 views::Link* custom_link_; | 113 views::Link* custom_link_; |
| 114 views::Link* manage_link_; | 114 views::Link* manage_link_; |
| 115 views::TextButton* close_button_; | 115 views::LabelButton* close_button_; |
| 116 scoped_ptr<views::MenuRunner> menu_runner_; | 116 scoped_ptr<views::MenuRunner> menu_runner_; |
| 117 MediaMenuPartsMap media_menus_; | 117 MediaMenuPartsMap media_menus_; |
| 118 | 118 |
| 119 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleContents); | 119 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleContents); |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 #endif // CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_ | 122 #endif // CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_ |
| OLD | NEW |