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

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

Issue 11192057: [Android] Add supportMultipleWindows setting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed, moved fields in WebPreferences. Created 8 years, 1 month 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/renderer/render_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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 bool accelerated_2d_canvas_enabled; 110 bool accelerated_2d_canvas_enabled;
111 bool deferred_2d_canvas_enabled; 111 bool deferred_2d_canvas_enabled;
112 bool accelerated_painting_enabled; 112 bool accelerated_painting_enabled;
113 bool accelerated_filters_enabled; 113 bool accelerated_filters_enabled;
114 bool gesture_tap_highlight_enabled; 114 bool gesture_tap_highlight_enabled;
115 bool accelerated_plugins_enabled; 115 bool accelerated_plugins_enabled;
116 bool memory_info_enabled; 116 bool memory_info_enabled;
117 bool fullscreen_enabled; 117 bool fullscreen_enabled;
118 bool allow_displaying_insecure_content; 118 bool allow_displaying_insecure_content;
119 bool allow_running_insecure_content; 119 bool allow_running_insecure_content;
120 #if defined(OS_ANDROID)
121 bool text_autosizing_enabled;
122 float font_scale_factor;
123 bool force_enable_zoom;
124 bool user_gesture_required_for_media_playback;
125 #endif
126 bool password_echo_enabled; 120 bool password_echo_enabled;
127 bool should_print_backgrounds; 121 bool should_print_backgrounds;
128 bool enable_scroll_animator; 122 bool enable_scroll_animator;
129 bool visual_word_movement_enabled; 123 bool visual_word_movement_enabled;
130 bool css_sticky_position_enabled; 124 bool css_sticky_position_enabled;
131 bool css_regions_enabled; 125 bool css_regions_enabled;
132 bool css_shaders_enabled; 126 bool css_shaders_enabled;
133 bool css_variables_enabled; 127 bool css_variables_enabled;
134 bool device_supports_touch; 128 bool device_supports_touch;
135 bool device_supports_mouse; 129 bool device_supports_mouse;
136 int default_tile_width; 130 int default_tile_width;
137 int default_tile_height; 131 int default_tile_height;
138 int max_untiled_layer_width; 132 int max_untiled_layer_width;
139 int max_untiled_layer_height; 133 int max_untiled_layer_height;
140 bool fixed_position_creates_stacking_context; 134 bool fixed_position_creates_stacking_context;
141 bool sync_xhr_in_documents_enabled; 135 bool sync_xhr_in_documents_enabled;
142 int number_of_cpu_cores; 136 int number_of_cpu_cores;
143 137
144 // This flags corresponds to a Page's Settings' setCookieEnabled state. It 138 // This flags corresponds to a Page's Settings' setCookieEnabled state. It
145 // only controls whether or not the "document.cookie" field is properly 139 // only controls whether or not the "document.cookie" field is properly
146 // connected to the backing store, for instance if you wanted to be able to 140 // connected to the backing store, for instance if you wanted to be able to
147 // define custom getters and setters from within a unique security content 141 // define custom getters and setters from within a unique security content
148 // without raising a DOM security exception. 142 // without raising a DOM security exception.
149 bool cookie_enabled; 143 bool cookie_enabled;
150 144
151 bool apply_page_scale_factor_in_compositor; 145 bool apply_page_scale_factor_in_compositor;
152 146
147 #if defined(OS_ANDROID)
148 bool text_autosizing_enabled;
149 float font_scale_factor;
150 bool force_enable_zoom;
151 bool user_gesture_required_for_media_playback;
152 bool supports_multiple_windows;
153 #endif
154
153 // We try to keep the default values the same as the default values in 155 // We try to keep the default values the same as the default values in
154 // chrome, except for the cases where it would require lots of extra work for 156 // chrome, except for the cases where it would require lots of extra work for
155 // the embedder to use the same default value. 157 // the embedder to use the same default value.
156 WebPreferences(); 158 WebPreferences();
157 ~WebPreferences(); 159 ~WebPreferences();
158 160
159 void Apply(WebKit::WebView* web_view) const; 161 void Apply(WebKit::WebView* web_view) const;
160 }; 162 };
161 163
162 } // namespace webkit_glue 164 } // namespace webkit_glue
163 165
164 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ 166 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | webkit/glue/webpreferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698