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_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ |
6 #define CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ | 6 #define CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 114 |
115 base::string16 title; | 115 base::string16 title; |
116 base::string16 message; | 116 base::string16 message; |
117 ListItems list_items; | 117 ListItems list_items; |
118 RadioGroup radio_group; | 118 RadioGroup radio_group; |
119 bool radio_group_enabled; | 119 bool radio_group_enabled; |
120 std::vector<DomainList> domain_lists; | 120 std::vector<DomainList> domain_lists; |
121 std::string custom_link; | 121 std::string custom_link; |
122 bool custom_link_enabled; | 122 bool custom_link_enabled; |
123 std::string manage_link; | 123 std::string manage_link; |
| 124 bool manage_link_as_button; |
124 MediaMenuMap media_menus; | 125 MediaMenuMap media_menus; |
125 std::string learn_more_link; | 126 std::string learn_more_link; |
126 | 127 |
127 private: | 128 private: |
128 DISALLOW_COPY_AND_ASSIGN(BubbleContent); | 129 DISALLOW_COPY_AND_ASSIGN(BubbleContent); |
129 }; | 130 }; |
130 | 131 |
131 // Creates a bubble model for a particular |content_type|. Note that not all | 132 // Creates a bubble model for a particular |content_type|. Note that not all |
132 // bubbles fit this description. | 133 // bubbles fit this description. |
133 // TODO(msramek): Move this to ContentSettingSimpleBubbleModel or remove | 134 // TODO(msramek): Move this to ContentSettingSimpleBubbleModel or remove |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 } | 208 } |
208 void set_custom_link(const std::string& link) { | 209 void set_custom_link(const std::string& link) { |
209 bubble_content_.custom_link = link; | 210 bubble_content_.custom_link = link; |
210 } | 211 } |
211 void set_custom_link_enabled(bool enabled) { | 212 void set_custom_link_enabled(bool enabled) { |
212 bubble_content_.custom_link_enabled = enabled; | 213 bubble_content_.custom_link_enabled = enabled; |
213 } | 214 } |
214 void set_manage_link(const std::string& link) { | 215 void set_manage_link(const std::string& link) { |
215 bubble_content_.manage_link = link; | 216 bubble_content_.manage_link = link; |
216 } | 217 } |
| 218 void set_manage_link_as_button(bool manage_link_as_button) { |
| 219 bubble_content_.manage_link_as_button = manage_link_as_button; |
| 220 } |
217 void set_learn_more_link(const std::string& link) { | 221 void set_learn_more_link(const std::string& link) { |
218 bubble_content_.learn_more_link = link; | 222 bubble_content_.learn_more_link = link; |
219 } | 223 } |
220 void add_media_menu(content::MediaStreamType type, const MediaMenu& menu) { | 224 void add_media_menu(content::MediaStreamType type, const MediaMenu& menu) { |
221 bubble_content_.media_menus[type] = menu; | 225 bubble_content_.media_menus[type] = menu; |
222 } | 226 } |
223 void set_selected_device(const content::MediaStreamDevice& device) { | 227 void set_selected_device(const content::MediaStreamDevice& device) { |
224 bubble_content_.media_menus[device.type].selected_device = device; | 228 bubble_content_.media_menus[device.type].selected_device = device; |
225 } | 229 } |
226 bool setting_is_managed() { | 230 bool setting_is_managed() { |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 // The content settings that are associated with the individual radio | 383 // The content settings that are associated with the individual radio |
380 // buttons. | 384 // buttons. |
381 ContentSetting radio_item_setting_[2]; | 385 ContentSetting radio_item_setting_[2]; |
382 // The state of the microphone and camera access. | 386 // The state of the microphone and camera access. |
383 TabSpecificContentSettings::MicrophoneCameraState state_; | 387 TabSpecificContentSettings::MicrophoneCameraState state_; |
384 | 388 |
385 DISALLOW_COPY_AND_ASSIGN(ContentSettingMediaStreamBubbleModel); | 389 DISALLOW_COPY_AND_ASSIGN(ContentSettingMediaStreamBubbleModel); |
386 }; | 390 }; |
387 | 391 |
388 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ | 392 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ |
OLD | NEW |