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

Side by Side Diff: chrome/browser/ui/content_settings/content_setting_bubble_model.h

Issue 2220573004: Caption for the Subresource filter bubble prompt. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: xib Created 4 years, 4 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_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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 content::MediaStreamDevice default_device; 101 content::MediaStreamDevice default_device;
102 content::MediaStreamDevice selected_device; 102 content::MediaStreamDevice selected_device;
103 bool disabled; 103 bool disabled;
104 }; 104 };
105 typedef std::map<content::MediaStreamType, MediaMenu> MediaMenuMap; 105 typedef std::map<content::MediaStreamType, MediaMenu> MediaMenuMap;
106 106
107 struct BubbleContent { 107 struct BubbleContent {
108 BubbleContent(); 108 BubbleContent();
109 ~BubbleContent(); 109 ~BubbleContent();
110 110
111 std::string caption;
111 std::string title; 112 std::string title;
112 ListItems list_items; 113 ListItems list_items;
113 RadioGroup radio_group; 114 RadioGroup radio_group;
114 bool radio_group_enabled; 115 bool radio_group_enabled;
115 std::vector<DomainList> domain_lists; 116 std::vector<DomainList> domain_lists;
116 std::string custom_link; 117 std::string custom_link;
117 bool custom_link_enabled; 118 bool custom_link_enabled;
118 std::string manage_link; 119 std::string manage_link;
119 MediaMenuMap media_menus; 120 MediaMenuMap media_menus;
120 std::string learn_more_link; 121 std::string learn_more_link;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 protected: 173 protected:
173 ContentSettingBubbleModel( 174 ContentSettingBubbleModel(
174 Delegate* delegate, 175 Delegate* delegate,
175 content::WebContents* web_contents, 176 content::WebContents* web_contents,
176 Profile* profile); 177 Profile* profile);
177 178
178 content::WebContents* web_contents() const { return web_contents_; } 179 content::WebContents* web_contents() const { return web_contents_; }
179 Profile* profile() const { return profile_; } 180 Profile* profile() const { return profile_; }
180 Delegate* delegate() const { return delegate_; } 181 Delegate* delegate() const { return delegate_; }
181 182
183 void set_caption(const std::string& caption) {
184 bubble_content_.caption = caption;
185 }
182 void set_title(const std::string& title) { bubble_content_.title = title; } 186 void set_title(const std::string& title) { bubble_content_.title = title; }
183 void add_list_item(const ListItem& item) { 187 void add_list_item(const ListItem& item) {
184 bubble_content_.list_items.push_back(item); 188 bubble_content_.list_items.push_back(item);
185 } 189 }
186 void set_radio_group(const RadioGroup& radio_group) { 190 void set_radio_group(const RadioGroup& radio_group) {
187 bubble_content_.radio_group = radio_group; 191 bubble_content_.radio_group = radio_group;
188 } 192 }
189 void set_radio_group_enabled(bool enabled) { 193 void set_radio_group_enabled(bool enabled) {
190 bubble_content_.radio_group_enabled = enabled; 194 bubble_content_.radio_group_enabled = enabled;
191 } 195 }
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 // The content settings that are associated with the individual radio 365 // The content settings that are associated with the individual radio
362 // buttons. 366 // buttons.
363 ContentSetting radio_item_setting_[2]; 367 ContentSetting radio_item_setting_[2];
364 // The state of the microphone and camera access. 368 // The state of the microphone and camera access.
365 TabSpecificContentSettings::MicrophoneCameraState state_; 369 TabSpecificContentSettings::MicrophoneCameraState state_;
366 370
367 DISALLOW_COPY_AND_ASSIGN(ContentSettingMediaStreamBubbleModel); 371 DISALLOW_COPY_AND_ASSIGN(ContentSettingMediaStreamBubbleModel);
368 }; 372 };
369 373
370 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ 374 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698