OLD | NEW |
---|---|
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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
256 // scale limits. These are set directly on the WebView so there's no analogue | 256 // scale limits. These are set directly on the WebView so there's no analogue |
257 // in WebSettings. | 257 // in WebSettings. |
258 float default_minimum_page_scale_factor; | 258 float default_minimum_page_scale_factor; |
259 float default_maximum_page_scale_factor; | 259 float default_maximum_page_scale_factor; |
260 | 260 |
261 // Whether download UI should be hidden on this page. | 261 // Whether download UI should be hidden on this page. |
262 bool hide_download_ui; | 262 bool hide_download_ui; |
263 | 263 |
264 // If enabled, disabled video track when the video is in the background. | 264 // If enabled, disabled video track when the video is in the background. |
265 bool background_video_track_optimization_enabled; | 265 bool background_video_track_optimization_enabled; |
266 // If background video track optimization is enabled, don't disable video | |
nasko
2017/01/13 16:30:04
nit: Keep the the style of the file and put an emp
whywhat
2017/01/13 21:10:54
Done.
| |
267 // track for videos with the average keyframe distance greater than this | |
268 // value (in seconds). | |
269 int max_keyframe_distance_to_disable_background_video_sec; | |
DaleCurtis
2017/01/13 20:34:13
base::TimeDelta?
whywhat
2017/01/13 21:10:54
Hm, I've no idea if the IPC macros will handle any
| |
266 | 270 |
267 // Whether it is a presentation receiver. | 271 // Whether it is a presentation receiver. |
268 bool presentation_receiver; | 272 bool presentation_receiver; |
269 | 273 |
270 // We try to keep the default values the same as the default values in | 274 // We try to keep the default values the same as the default values in |
271 // chrome, except for the cases where it would require lots of extra work for | 275 // chrome, except for the cases where it would require lots of extra work for |
272 // the embedder to use the same default value. | 276 // the embedder to use the same default value. |
273 WebPreferences(); | 277 WebPreferences(); |
274 WebPreferences(const WebPreferences& other); | 278 WebPreferences(const WebPreferences& other); |
275 ~WebPreferences(); | 279 ~WebPreferences(); |
276 }; | 280 }; |
277 | 281 |
278 } // namespace content | 282 } // namespace content |
279 | 283 |
280 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 284 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
OLD | NEW |