Chromium Code Reviews| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 203 | 203 |
| 204 ImageAnimationPolicy animation_policy; | 204 ImageAnimationPolicy animation_policy; |
| 205 | 205 |
| 206 bool user_gesture_required_for_presentation; | 206 bool user_gesture_required_for_presentation; |
| 207 | 207 |
| 208 // Specifies the margin for WebVTT text tracks as a percentage of media | 208 // Specifies the margin for WebVTT text tracks as a percentage of media |
| 209 // element height/width (for horizontal/vertical text respectively). | 209 // element height/width (for horizontal/vertical text respectively). |
| 210 // Cues will not be placed in this margin area. | 210 // Cues will not be placed in this margin area. |
| 211 float text_track_margin_percentage; | 211 float text_track_margin_percentage; |
| 212 | 212 |
| 213 // Specifies aggressiveness of background tab throttling. | |
| 214 // cpu_budget is given in percentages, other values are in seconds. | |
|
Sami
2016/11/04 16:50:28
nit: Capitalize CPU.
altimin
2016/11/07 15:19:49
Done.
| |
| 215 float expensive_background_throttling_cpu_budget; | |
| 216 float expensive_background_throttling_initial_budget; | |
| 217 float expensive_background_throttling_max_budget; | |
| 218 float expensive_background_throttling_max_delay; | |
| 219 | |
| 213 #if defined(OS_ANDROID) | 220 #if defined(OS_ANDROID) |
| 214 bool text_autosizing_enabled; | 221 bool text_autosizing_enabled; |
| 215 float font_scale_factor; | 222 float font_scale_factor; |
| 216 float device_scale_adjustment; | 223 float device_scale_adjustment; |
| 217 bool force_enable_zoom; | 224 bool force_enable_zoom; |
| 218 bool fullscreen_supported; | 225 bool fullscreen_supported; |
| 219 bool double_tap_to_zoom_enabled; | 226 bool double_tap_to_zoom_enabled; |
| 220 bool user_gesture_required_for_media_playback; | 227 bool user_gesture_required_for_media_playback; |
| 221 GURL default_video_poster_url; | 228 GURL default_video_poster_url; |
| 222 bool support_deprecated_target_density_dpi; | 229 bool support_deprecated_target_density_dpi; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 258 // chrome, except for the cases where it would require lots of extra work for | 265 // chrome, except for the cases where it would require lots of extra work for |
| 259 // the embedder to use the same default value. | 266 // the embedder to use the same default value. |
| 260 WebPreferences(); | 267 WebPreferences(); |
| 261 WebPreferences(const WebPreferences& other); | 268 WebPreferences(const WebPreferences& other); |
| 262 ~WebPreferences(); | 269 ~WebPreferences(); |
| 263 }; | 270 }; |
| 264 | 271 |
| 265 } // namespace content | 272 } // namespace content |
| 266 | 273 |
| 267 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 274 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
| OLD | NEW |