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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 282 // TODO(servolk, asvitkine): Query the value directly when it is available in | 282 // TODO(servolk, asvitkine): Query the value directly when it is available in |
| 283 // the renderer process. See https://crbug.com/681160. | 283 // the renderer process. See https://crbug.com/681160. |
| 284 bool enable_instant_source_buffer_gc; | 284 bool enable_instant_source_buffer_gc; |
| 285 | 285 |
| 286 // Whether it is a presentation receiver. | 286 // Whether it is a presentation receiver. |
| 287 bool presentation_receiver; | 287 bool presentation_receiver; |
| 288 | 288 |
| 289 // If disabled, media controls should never be used. | 289 // If disabled, media controls should never be used. |
| 290 bool media_controls_enabled; | 290 bool media_controls_enabled; |
| 291 | 291 |
| 292 bool automation_controlled; | |
|
bokan
2017/05/19 16:43:23
Please add some comments to describe what these do
| |
| 293 bool headless; | |
| 294 | |
| 292 // Whether we want to disable updating selection on mutating selection range. | 295 // Whether we want to disable updating selection on mutating selection range. |
| 293 // This is to work around Samsung's email app issue. See | 296 // This is to work around Samsung's email app issue. See |
| 294 // https://crbug.com/699943 for details. | 297 // https://crbug.com/699943 for details. |
| 295 // TODO(changwan): remove this once we no longer support Android N. | 298 // TODO(changwan): remove this once we no longer support Android N. |
| 296 bool do_not_update_selection_on_mutating_selection_range; | 299 bool do_not_update_selection_on_mutating_selection_range; |
| 297 | 300 |
| 298 // Defines the current autoplay policy. | 301 // Defines the current autoplay policy. |
| 299 AutoplayPolicy autoplay_policy; | 302 AutoplayPolicy autoplay_policy; |
| 300 | 303 |
| 301 // We try to keep the default values the same as the default values in | 304 // We try to keep the default values the same as the default values in |
| 302 // chrome, except for the cases where it would require lots of extra work for | 305 // chrome, except for the cases where it would require lots of extra work for |
| 303 // the embedder to use the same default value. | 306 // the embedder to use the same default value. |
| 304 WebPreferences(); | 307 WebPreferences(); |
| 305 WebPreferences(const WebPreferences& other); | 308 WebPreferences(const WebPreferences& other); |
| 306 ~WebPreferences(); | 309 ~WebPreferences(); |
| 307 }; | 310 }; |
| 308 | 311 |
| 309 } // namespace content | 312 } // namespace content |
| 310 | 313 |
| 311 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 314 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
| OLD | NEW |