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

Side by Side Diff: content/public/common/web_preferences.h

Issue 2510353004: Deprecating AutoplayExperimentHelper (Closed)
Patch Set: cleaned up the layout code no longer used Created 4 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
6 #define CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ 6 #define CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 bool report_screen_size_in_physical_pixels_quirk; 241 bool report_screen_size_in_physical_pixels_quirk;
242 // Used by Android_WebView only to support legacy apps that inject script into 242 // Used by Android_WebView only to support legacy apps that inject script into
243 // a top-level initial empty document and expect it to persist on navigation. 243 // a top-level initial empty document and expect it to persist on navigation.
244 bool resue_global_for_unowned_main_frame; 244 bool resue_global_for_unowned_main_frame;
245 ProgressBarCompletion progress_bar_completion; 245 ProgressBarCompletion progress_bar_completion;
246 // Specifies default setting for spellcheck when the spellcheck attribute is 246 // Specifies default setting for spellcheck when the spellcheck attribute is
247 // not explicitly specified. 247 // not explicitly specified.
248 bool spellcheck_enabled_by_default; 248 bool spellcheck_enabled_by_default;
249 #endif 249 #endif
250 250
251 // String that describes how media element autoplay behavior should be
252 // affected by experiment.
253 std::string autoplay_experiment_mode;
254
255 // Default (used if the page or UA doesn't override these) values for page 251 // Default (used if the page or UA doesn't override these) values for page
256 // scale limits. These are set directly on the WebView so there's no analogue 252 // scale limits. These are set directly on the WebView so there's no analogue
257 // in WebSettings. 253 // in WebSettings.
258 float default_minimum_page_scale_factor; 254 float default_minimum_page_scale_factor;
259 float default_maximum_page_scale_factor; 255 float default_maximum_page_scale_factor;
260 256
261 // Whether download UI should be hidden on this page. 257 // Whether download UI should be hidden on this page.
262 bool hide_download_ui; 258 bool hide_download_ui;
263 259
264 // We try to keep the default values the same as the default values in 260 // We try to keep the default values the same as the default values in
265 // chrome, except for the cases where it would require lots of extra work for 261 // chrome, except for the cases where it would require lots of extra work for
266 // the embedder to use the same default value. 262 // the embedder to use the same default value.
267 WebPreferences(); 263 WebPreferences();
268 WebPreferences(const WebPreferences& other); 264 WebPreferences(const WebPreferences& other);
269 ~WebPreferences(); 265 ~WebPreferences();
270 }; 266 };
271 267
272 } // namespace content 268 } // namespace content
273 269
274 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ 270 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698