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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 bool sync_xhr_in_documents_enabled; | 134 bool sync_xhr_in_documents_enabled; |
135 int number_of_cpu_cores; | 135 int number_of_cpu_cores; |
136 | 136 |
137 // This flags corresponds to a Page's Settings' setCookieEnabled state. It | 137 // This flags corresponds to a Page's Settings' setCookieEnabled state. It |
138 // only controls whether or not the "document.cookie" field is properly | 138 // only controls whether or not the "document.cookie" field is properly |
139 // connected to the backing store, for instance if you wanted to be able to | 139 // connected to the backing store, for instance if you wanted to be able to |
140 // define custom getters and setters from within a unique security content | 140 // define custom getters and setters from within a unique security content |
141 // without raising a DOM security exception. | 141 // without raising a DOM security exception. |
142 bool cookie_enabled; | 142 bool cookie_enabled; |
143 | 143 |
| 144 bool apply_page_scale_factor_in_compositor; |
| 145 |
144 // We try to keep the default values the same as the default values in | 146 // We try to keep the default values the same as the default values in |
145 // chrome, except for the cases where it would require lots of extra work for | 147 // chrome, except for the cases where it would require lots of extra work for |
146 // the embedder to use the same default value. | 148 // the embedder to use the same default value. |
147 WebPreferences(); | 149 WebPreferences(); |
148 ~WebPreferences(); | 150 ~WebPreferences(); |
149 | 151 |
150 void Apply(WebKit::WebView* web_view) const; | 152 void Apply(WebKit::WebView* web_view) const; |
151 }; | 153 }; |
152 | 154 |
153 } // namespace webkit_glue | 155 } // namespace webkit_glue |
154 | 156 |
155 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ | 157 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ |
OLD | NEW |