| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 bool compositor_touch_hit_testing; | 158 bool compositor_touch_hit_testing; |
| 159 bool navigate_on_drag_drop; | 159 bool navigate_on_drag_drop; |
| 160 | 160 |
| 161 // This flags corresponds to a Page's Settings' setCookieEnabled state. It | 161 // This flags corresponds to a Page's Settings' setCookieEnabled state. It |
| 162 // only controls whether or not the "document.cookie" field is properly | 162 // only controls whether or not the "document.cookie" field is properly |
| 163 // connected to the backing store, for instance if you wanted to be able to | 163 // connected to the backing store, for instance if you wanted to be able to |
| 164 // define custom getters and setters from within a unique security content | 164 // define custom getters and setters from within a unique security content |
| 165 // without raising a DOM security exception. | 165 // without raising a DOM security exception. |
| 166 bool cookie_enabled; | 166 bool cookie_enabled; |
| 167 | 167 |
| 168 // This flag indicates whether H/W accelerated video decode is enabled for |
| 169 // pepper plugins. Defaults to false. |
| 170 bool pepper_accelerated_video_decode_enabled; |
| 171 |
| 168 #if defined(OS_ANDROID) | 172 #if defined(OS_ANDROID) |
| 169 bool text_autosizing_enabled; | 173 bool text_autosizing_enabled; |
| 170 float font_scale_factor; | 174 float font_scale_factor; |
| 171 float device_scale_adjustment; | 175 float device_scale_adjustment; |
| 172 bool force_enable_zoom; | 176 bool force_enable_zoom; |
| 173 bool double_tap_to_zoom_enabled; | 177 bool double_tap_to_zoom_enabled; |
| 174 bool user_gesture_required_for_media_playback; | 178 bool user_gesture_required_for_media_playback; |
| 175 bool user_gesture_required_for_media_fullscreen; | 179 bool user_gesture_required_for_media_fullscreen; |
| 176 GURL default_video_poster_url; | 180 GURL default_video_poster_url; |
| 177 bool support_deprecated_target_density_dpi; | 181 bool support_deprecated_target_density_dpi; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 188 #endif | 192 #endif |
| 189 | 193 |
| 190 // We try to keep the default values the same as the default values in | 194 // We try to keep the default values the same as the default values in |
| 191 // chrome, except for the cases where it would require lots of extra work for | 195 // chrome, except for the cases where it would require lots of extra work for |
| 192 // the embedder to use the same default value. | 196 // the embedder to use the same default value. |
| 193 WebPreferences(); | 197 WebPreferences(); |
| 194 ~WebPreferences(); | 198 ~WebPreferences(); |
| 195 }; | 199 }; |
| 196 | 200 |
| 197 #endif // WEBKIT_COMMON_WEBPREFERENCES_H__ | 201 #endif // WEBKIT_COMMON_WEBPREFERENCES_H__ |
| OLD | NEW |