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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 // define custom getters and setters from within a unique security content | 182 // define custom getters and setters from within a unique security content |
183 // without raising a DOM security exception. | 183 // without raising a DOM security exception. |
184 bool cookie_enabled; | 184 bool cookie_enabled; |
185 | 185 |
186 // This flag indicates whether H/W accelerated video decode is enabled for | 186 // This flag indicates whether H/W accelerated video decode is enabled for |
187 // pepper plugins. Defaults to false. | 187 // pepper plugins. Defaults to false. |
188 bool pepper_accelerated_video_decode_enabled; | 188 bool pepper_accelerated_video_decode_enabled; |
189 | 189 |
190 ImageAnimationPolicy animation_policy; | 190 ImageAnimationPolicy animation_policy; |
191 | 191 |
| 192 bool user_gesture_required_for_presentation; |
| 193 |
192 #if defined(OS_ANDROID) | 194 #if defined(OS_ANDROID) |
193 bool text_autosizing_enabled; | 195 bool text_autosizing_enabled; |
194 float font_scale_factor; | 196 float font_scale_factor; |
195 float device_scale_adjustment; | 197 float device_scale_adjustment; |
196 bool force_enable_zoom; | 198 bool force_enable_zoom; |
197 bool fullscreen_supported; | 199 bool fullscreen_supported; |
198 bool double_tap_to_zoom_enabled; | 200 bool double_tap_to_zoom_enabled; |
199 bool user_gesture_required_for_media_playback; | 201 bool user_gesture_required_for_media_playback; |
200 GURL default_video_poster_url; | 202 GURL default_video_poster_url; |
201 bool support_deprecated_target_density_dpi; | 203 bool support_deprecated_target_density_dpi; |
(...skipping 21 matching lines...) Expand all Loading... |
223 // We try to keep the default values the same as the default values in | 225 // We try to keep the default values the same as the default values in |
224 // chrome, except for the cases where it would require lots of extra work for | 226 // chrome, except for the cases where it would require lots of extra work for |
225 // the embedder to use the same default value. | 227 // the embedder to use the same default value. |
226 WebPreferences(); | 228 WebPreferences(); |
227 ~WebPreferences(); | 229 ~WebPreferences(); |
228 }; | 230 }; |
229 | 231 |
230 } // namespace content | 232 } // namespace content |
231 | 233 |
232 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 234 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
OLD | NEW |