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

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

Issue 17558002: Set default pinch viewport overlay scrollbar thickness in WebPreferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Only set default thickness if pinch viewport enabled. Created 7 years, 6 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 | « content/browser/web_contents/web_contents_impl.cc ('k') | webkit/common/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 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 // 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 bool should_respect_image_orientation; 146 bool should_respect_image_orientation;
147 int number_of_cpu_cores; 147 int number_of_cpu_cores;
148 webkit_glue::EditingBehavior editing_behavior; 148 webkit_glue::EditingBehavior editing_behavior;
149 bool supports_multiple_windows; 149 bool supports_multiple_windows;
150 bool viewport_enabled; 150 bool viewport_enabled;
151 bool initialize_at_minimum_page_scale; 151 bool initialize_at_minimum_page_scale;
152 bool smart_insert_delete_enabled; 152 bool smart_insert_delete_enabled;
153 bool spatial_navigation_enabled; 153 bool spatial_navigation_enabled;
154 bool experimental_websocket_enabled; 154 bool experimental_websocket_enabled;
155 bool pinch_virtual_viewport_enabled; 155 bool pinch_virtual_viewport_enabled;
156 int pinch_overlay_scrollbar_thickness;
156 157
157 // This flags corresponds to a Page's Settings' setCookieEnabled state. It 158 // This flags corresponds to a Page's Settings' setCookieEnabled state. It
158 // only controls whether or not the "document.cookie" field is properly 159 // only controls whether or not the "document.cookie" field is properly
159 // connected to the backing store, for instance if you wanted to be able to 160 // connected to the backing store, for instance if you wanted to be able to
160 // define custom getters and setters from within a unique security content 161 // define custom getters and setters from within a unique security content
161 // without raising a DOM security exception. 162 // without raising a DOM security exception.
162 bool cookie_enabled; 163 bool cookie_enabled;
163 164
164 #if defined(OS_ANDROID) 165 #if defined(OS_ANDROID)
165 bool text_autosizing_enabled; 166 bool text_autosizing_enabled;
166 float font_scale_factor; 167 float font_scale_factor;
167 bool force_enable_zoom; 168 bool force_enable_zoom;
168 bool double_tap_to_zoom_enabled; 169 bool double_tap_to_zoom_enabled;
169 bool user_gesture_required_for_media_playback; 170 bool user_gesture_required_for_media_playback;
170 GURL default_video_poster_url; 171 GURL default_video_poster_url;
171 bool support_deprecated_target_density_dpi; 172 bool support_deprecated_target_density_dpi;
172 bool use_wide_viewport; 173 bool use_wide_viewport;
173 #endif 174 #endif
174 175
175 // We try to keep the default values the same as the default values in 176 // We try to keep the default values the same as the default values in
176 // chrome, except for the cases where it would require lots of extra work for 177 // chrome, except for the cases where it would require lots of extra work for
177 // the embedder to use the same default value. 178 // the embedder to use the same default value.
178 WebPreferences(); 179 WebPreferences();
179 ~WebPreferences(); 180 ~WebPreferences();
180 }; 181 };
181 182
182 #endif // WEBKIT_COMMON_WEBPREFERENCES_H__ 183 #endif // WEBKIT_COMMON_WEBPREFERENCES_H__
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | webkit/common/webpreferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698