OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // WebKit::WebSettings, content/common/view_messages.h, browser/tab_contents/ | 8 // WebKit::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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 bool fixed_position_creates_stacking_context; | 141 bool fixed_position_creates_stacking_context; |
142 bool sync_xhr_in_documents_enabled; | 142 bool sync_xhr_in_documents_enabled; |
143 bool deferred_image_decoding_enabled; | 143 bool deferred_image_decoding_enabled; |
144 bool should_respect_image_orientation; | 144 bool should_respect_image_orientation; |
145 int number_of_cpu_cores; | 145 int number_of_cpu_cores; |
146 EditingBehavior editing_behavior; | 146 EditingBehavior editing_behavior; |
147 bool supports_multiple_windows; | 147 bool supports_multiple_windows; |
148 bool viewport_enabled; | 148 bool viewport_enabled; |
149 bool initialize_at_minimum_page_scale; | 149 bool initialize_at_minimum_page_scale; |
150 bool smart_insert_delete_enabled; | 150 bool smart_insert_delete_enabled; |
| 151 bool spatial_navigation_enabled; |
151 | 152 |
152 // This flags corresponds to a Page's Settings' setCookieEnabled state. It | 153 // This flags corresponds to a Page's Settings' setCookieEnabled state. It |
153 // only controls whether or not the "document.cookie" field is properly | 154 // only controls whether or not the "document.cookie" field is properly |
154 // connected to the backing store, for instance if you wanted to be able to | 155 // connected to the backing store, for instance if you wanted to be able to |
155 // define custom getters and setters from within a unique security content | 156 // define custom getters and setters from within a unique security content |
156 // without raising a DOM security exception. | 157 // without raising a DOM security exception. |
157 bool cookie_enabled; | 158 bool cookie_enabled; |
158 | 159 |
159 #if defined(OS_ANDROID) | 160 #if defined(OS_ANDROID) |
160 bool text_autosizing_enabled; | 161 bool text_autosizing_enabled; |
(...skipping 10 matching lines...) Expand all Loading... |
171 // the embedder to use the same default value. | 172 // the embedder to use the same default value. |
172 WebPreferences(); | 173 WebPreferences(); |
173 ~WebPreferences(); | 174 ~WebPreferences(); |
174 | 175 |
175 void Apply(WebKit::WebView* web_view) const; | 176 void Apply(WebKit::WebView* web_view) const; |
176 }; | 177 }; |
177 | 178 |
178 } // namespace webkit_glue | 179 } // namespace webkit_glue |
179 | 180 |
180 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ | 181 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ |
OLD | NEW |