Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Side by Side Diff: webkit/glue/webpreferences.h

Issue 12095053: cc: Avoid expensive RenderingStats collection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/compositor_bindings/web_layer_tree_view_impl.cc ('k') | webkit/glue/webpreferences.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 int max_untiled_layer_width; 148 int max_untiled_layer_width;
149 int max_untiled_layer_height; 149 int max_untiled_layer_height;
150 bool fixed_position_creates_stacking_context; 150 bool fixed_position_creates_stacking_context;
151 bool sync_xhr_in_documents_enabled; 151 bool sync_xhr_in_documents_enabled;
152 bool deferred_image_decoding_enabled; 152 bool deferred_image_decoding_enabled;
153 bool should_respect_image_orientation; 153 bool should_respect_image_orientation;
154 int number_of_cpu_cores; 154 int number_of_cpu_cores;
155 EditingBehavior editing_behavior; 155 EditingBehavior editing_behavior;
156 bool supports_multiple_windows; 156 bool supports_multiple_windows;
157 bool viewport_enabled; 157 bool viewport_enabled;
158 bool record_rendering_stats;
158 159
159 // This flags corresponds to a Page's Settings' setCookieEnabled state. It 160 // This flags corresponds to a Page's Settings' setCookieEnabled state. It
160 // only controls whether or not the "document.cookie" field is properly 161 // only controls whether or not the "document.cookie" field is properly
161 // connected to the backing store, for instance if you wanted to be able to 162 // connected to the backing store, for instance if you wanted to be able to
162 // define custom getters and setters from within a unique security content 163 // define custom getters and setters from within a unique security content
163 // without raising a DOM security exception. 164 // without raising a DOM security exception.
164 bool cookie_enabled; 165 bool cookie_enabled;
165 166
166 #if defined(OS_ANDROID) 167 #if defined(OS_ANDROID)
167 bool text_autosizing_enabled; 168 bool text_autosizing_enabled;
168 float font_scale_factor; 169 float font_scale_factor;
169 bool force_enable_zoom; 170 bool force_enable_zoom;
170 bool user_gesture_required_for_media_playback; 171 bool user_gesture_required_for_media_playback;
171 #endif 172 #endif
172 173
173 // We try to keep the default values the same as the default values in 174 // We try to keep the default values the same as the default values in
174 // chrome, except for the cases where it would require lots of extra work for 175 // chrome, except for the cases where it would require lots of extra work for
175 // the embedder to use the same default value. 176 // the embedder to use the same default value.
176 WebPreferences(); 177 WebPreferences();
177 ~WebPreferences(); 178 ~WebPreferences();
178 179
179 void Apply(WebKit::WebView* web_view) const; 180 void Apply(WebKit::WebView* web_view) const;
180 }; 181 };
181 182
182 } // namespace webkit_glue 183 } // namespace webkit_glue
183 184
184 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ 185 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_layer_tree_view_impl.cc ('k') | webkit/glue/webpreferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698