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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 | 255 |
256 // Default (used if the page or UA doesn't override these) values for page | 256 // Default (used if the page or UA doesn't override these) values for page |
257 // scale limits. These are set directly on the WebView so there's no analogue | 257 // scale limits. These are set directly on the WebView so there's no analogue |
258 // in WebSettings. | 258 // in WebSettings. |
259 float default_minimum_page_scale_factor; | 259 float default_minimum_page_scale_factor; |
260 float default_maximum_page_scale_factor; | 260 float default_maximum_page_scale_factor; |
261 | 261 |
262 // Whether download UI should be hidden on this page. | 262 // Whether download UI should be hidden on this page. |
263 bool hide_download_ui; | 263 bool hide_download_ui; |
264 | 264 |
| 265 // If enabled, disabled video track when the video is in the background. |
| 266 bool background_video_track_optimization_enabled; |
| 267 |
265 // We try to keep the default values the same as the default values in | 268 // We try to keep the default values the same as the default values in |
266 // chrome, except for the cases where it would require lots of extra work for | 269 // chrome, except for the cases where it would require lots of extra work for |
267 // the embedder to use the same default value. | 270 // the embedder to use the same default value. |
268 WebPreferences(); | 271 WebPreferences(); |
269 WebPreferences(const WebPreferences& other); | 272 WebPreferences(const WebPreferences& other); |
270 ~WebPreferences(); | 273 ~WebPreferences(); |
271 }; | 274 }; |
272 | 275 |
273 } // namespace content | 276 } // namespace content |
274 | 277 |
275 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 278 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
OLD | NEW |