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