| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // A struct for managing webkit's settings. | 5 // A struct for managing webkit's settings. |
| 6 // | 6 // |
| 7 // Adding new values to this class probably involves updating | 7 // Adding new values to this class probably involves updating |
| 8 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ | 8 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ |
| 9 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc. | 9 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc. |
| 10 | 10 |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 bool compositor_touch_hit_testing; | 162 bool compositor_touch_hit_testing; |
| 163 bool navigate_on_drag_drop; | 163 bool navigate_on_drag_drop; |
| 164 | 164 |
| 165 // This flags corresponds to a Page's Settings' setCookieEnabled state. It | 165 // This flags corresponds to a Page's Settings' setCookieEnabled state. It |
| 166 // only controls whether or not the "document.cookie" field is properly | 166 // only controls whether or not the "document.cookie" field is properly |
| 167 // connected to the backing store, for instance if you wanted to be able to | 167 // connected to the backing store, for instance if you wanted to be able to |
| 168 // define custom getters and setters from within a unique security content | 168 // define custom getters and setters from within a unique security content |
| 169 // without raising a DOM security exception. | 169 // without raising a DOM security exception. |
| 170 bool cookie_enabled; | 170 bool cookie_enabled; |
| 171 | 171 |
| 172 // This flag indicates whether H/W accelerated video decode is enabled. |
| 173 // Defaults to false. |
| 174 bool accelerated_video_decode_enabled; |
| 175 |
| 172 #if defined(OS_ANDROID) | 176 #if defined(OS_ANDROID) |
| 173 bool text_autosizing_enabled; | 177 bool text_autosizing_enabled; |
| 174 float font_scale_factor; | 178 float font_scale_factor; |
| 175 float device_scale_adjustment; | 179 float device_scale_adjustment; |
| 176 bool force_enable_zoom; | 180 bool force_enable_zoom; |
| 177 bool double_tap_to_zoom_enabled; | 181 bool double_tap_to_zoom_enabled; |
| 178 bool user_gesture_required_for_media_playback; | 182 bool user_gesture_required_for_media_playback; |
| 179 bool user_gesture_required_for_media_fullscreen; | 183 bool user_gesture_required_for_media_fullscreen; |
| 180 GURL default_video_poster_url; | 184 GURL default_video_poster_url; |
| 181 bool support_deprecated_target_density_dpi; | 185 bool support_deprecated_target_density_dpi; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 192 #endif | 196 #endif |
| 193 | 197 |
| 194 // We try to keep the default values the same as the default values in | 198 // We try to keep the default values the same as the default values in |
| 195 // chrome, except for the cases where it would require lots of extra work for | 199 // chrome, except for the cases where it would require lots of extra work for |
| 196 // the embedder to use the same default value. | 200 // the embedder to use the same default value. |
| 197 WebPreferences(); | 201 WebPreferences(); |
| 198 ~WebPreferences(); | 202 ~WebPreferences(); |
| 199 }; | 203 }; |
| 200 | 204 |
| 201 #endif // WEBKIT_COMMON_WEBPREFERENCES_H__ | 205 #endif // WEBKIT_COMMON_WEBPREFERENCES_H__ |
| OLD | NEW |