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

Side by Side Diff: chrome/browser/ui/webui/options/content_settings_handler.h

Issue 1210173012: Split the Media settings UI into separate microphone and camera sections. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: UI updates Created 5 years, 5 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_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 enum LinkType { 91 enum LinkType {
92 DEFAULT_SETTING = 0, 92 DEFAULT_SETTING = 0,
93 EXCEPTIONS, 93 EXCEPTIONS,
94 }; 94 };
95 95
96 // Functions that call into the page ----------------------------------------- 96 // Functions that call into the page -----------------------------------------
97 97
98 // Updates the page with the default settings (allow, ask, block, etc.) 98 // Updates the page with the default settings (allow, ask, block, etc.)
99 void UpdateSettingDefaultFromModel(ContentSettingsType type); 99 void UpdateSettingDefaultFromModel(ContentSettingsType type);
100 100
101 // Updates the media radio buttons according to the enabled split prefs. 101 // Compares the media default settings with flash and updates the flash links'
102 void UpdateMediaSettingsView(); 102 // visibility accordingly.
103 void CompareMediaSettingsWithFlash();
103 104
104 // Clobbers and rebuilds the specific content setting type exceptions table. 105 // Clobbers and rebuilds the specific content setting type exceptions table.
105 void UpdateExceptionsViewFromModel(ContentSettingsType type); 106 void UpdateExceptionsViewFromModel(ContentSettingsType type);
106 107
107 // Clobbers and rebuilds the specific content setting type exceptions 108 // Clobbers and rebuilds the specific content setting type exceptions
108 // OTR table. 109 // OTR table.
109 void UpdateOTRExceptionsViewFromModel(ContentSettingsType type); 110 void UpdateOTRExceptionsViewFromModel(ContentSettingsType type);
110 111
111 // Clobbers and rebuilds all the exceptions tables in the page (both normal 112 // Clobbers and rebuilds all the exceptions tables in the page (both normal
112 // and OTR tables). 113 // and OTR tables).
113 void UpdateAllExceptionsViewsFromModel(); 114 void UpdateAllExceptionsViewsFromModel();
114 115
115 // As above, but only OTR tables. 116 // As above, but only OTR tables.
116 void UpdateAllOTRExceptionsViewsFromModel(); 117 void UpdateAllOTRExceptionsViewsFromModel();
117 118
118 // Clobbers and rebuilds just the geolocation exception table. 119 // Clobbers and rebuilds just the geolocation exception table.
119 void UpdateGeolocationExceptionsView(); 120 void UpdateGeolocationExceptionsView();
120 121
121 // Clobbers and rebuilds just the desktop notification exception table. 122 // Clobbers and rebuilds just the desktop notification exception table.
122 void UpdateNotificationExceptionsView(); 123 void UpdateNotificationExceptionsView();
123 124
124 // Clobbers and rebuilds just the Media device exception table. 125 // Compares the combined microphone and camera exceptions with Flash
125 void UpdateMediaExceptionsView(); 126 // exceptions and updates the flash links' visibility accordingly.
127 void CompareMediaExceptionsWithFlash();
126 128
127 // Clobbers and rebuilds just the MIDI SysEx exception table. 129 // Clobbers and rebuilds just the MIDI SysEx exception table.
128 void UpdateMIDISysExExceptionsView(); 130 void UpdateMIDISysExExceptionsView();
129 131
130 // Modifies the zoom level exceptions list to display correct chrome 132 // Modifies the zoom level exceptions list to display correct chrome
131 // signin page entry. When the legacy (non-WebView-based) signin page 133 // signin page entry. When the legacy (non-WebView-based) signin page
132 // goes away, this function can be removed. 134 // goes away, this function can be removed.
133 void AdjustZoomLevelsListForSigninPageIfNecessary( 135 void AdjustZoomLevelsListForSigninPageIfNecessary(
134 content::HostZoomMap::ZoomLevelVector* zoom_levels); 136 content::HostZoomMap::ZoomLevelVector* zoom_levels);
135 137
(...skipping 12 matching lines...) Expand all
148 void UpdateHandlersEnabledRadios(); 150 void UpdateHandlersEnabledRadios();
149 151
150 // Removes one geolocation exception. |args| contains the parameters passed to 152 // Removes one geolocation exception. |args| contains the parameters passed to
151 // RemoveException(). 153 // RemoveException().
152 void RemoveGeolocationException(const base::ListValue* args); 154 void RemoveGeolocationException(const base::ListValue* args);
153 155
154 // Removes one notification exception. |args| contains the parameters passed 156 // Removes one notification exception. |args| contains the parameters passed
155 // to RemoveException(). 157 // to RemoveException().
156 void RemoveNotificationException(const base::ListValue* args); 158 void RemoveNotificationException(const base::ListValue* args);
157 159
158 // Removes one media camera and microphone exception. |args| contains the
159 // parameters passed to RemoveException().
160 void RemoveMediaException(const base::ListValue* args);
161
162 // Removes one exception of |type| from the host content settings map. |args| 160 // Removes one exception of |type| from the host content settings map. |args|
163 // contains the parameters passed to RemoveException(). 161 // contains the parameters passed to RemoveException().
164 void RemoveExceptionFromHostContentSettingsMap( 162 void RemoveExceptionFromHostContentSettingsMap(
165 const base::ListValue* args, 163 const base::ListValue* args,
166 ContentSettingsType type); 164 ContentSettingsType type);
167 165
168 // Removes one zoom level exception. |args| contains the parameters passed to 166 // Removes one zoom level exception. |args| contains the parameters passed to
169 // RemoveException(). 167 // RemoveException().
170 void RemoveZoomLevelException(const base::ListValue* args); 168 void RemoveZoomLevelException(const base::ListValue* args);
171 169
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 scoped_ptr<content::HostZoomMap::Subscription> 232 scoped_ptr<content::HostZoomMap::Subscription>
235 signin_host_zoom_map_subscription_; 233 signin_host_zoom_map_subscription_;
236 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; 234 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_;
237 235
238 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler); 236 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler);
239 }; 237 };
240 238
241 } // namespace options 239 } // namespace options
242 240
243 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ 241 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698