| 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 30 matching lines...) Expand all Loading... |
| 41 ScriptFontFamilyMap sans_serif_font_family_map; | 41 ScriptFontFamilyMap sans_serif_font_family_map; |
| 42 ScriptFontFamilyMap cursive_font_family_map; | 42 ScriptFontFamilyMap cursive_font_family_map; |
| 43 ScriptFontFamilyMap fantasy_font_family_map; | 43 ScriptFontFamilyMap fantasy_font_family_map; |
| 44 ScriptFontFamilyMap pictograph_font_family_map; | 44 ScriptFontFamilyMap pictograph_font_family_map; |
| 45 int default_font_size; | 45 int default_font_size; |
| 46 int default_fixed_font_size; | 46 int default_fixed_font_size; |
| 47 int minimum_font_size; | 47 int minimum_font_size; |
| 48 int minimum_logical_font_size; | 48 int minimum_logical_font_size; |
| 49 std::string default_encoding; | 49 std::string default_encoding; |
| 50 bool apply_default_device_scale_factor_in_compositor; | 50 bool apply_default_device_scale_factor_in_compositor; |
| 51 bool apply_page_scale_factor_in_compositor; |
| 52 bool per_tile_painting_enabled; |
| 53 bool accelerated_animation_enabled; |
| 51 bool javascript_enabled; | 54 bool javascript_enabled; |
| 52 bool web_security_enabled; | 55 bool web_security_enabled; |
| 53 bool javascript_can_open_windows_automatically; | 56 bool javascript_can_open_windows_automatically; |
| 54 bool loads_images_automatically; | 57 bool loads_images_automatically; |
| 55 bool images_enabled; | 58 bool images_enabled; |
| 56 bool plugins_enabled; | 59 bool plugins_enabled; |
| 57 bool dom_paste_enabled; | 60 bool dom_paste_enabled; |
| 58 bool developer_extras_enabled; | 61 bool developer_extras_enabled; |
| 59 typedef std::vector<std::pair<std::string, std::string> > | 62 typedef std::vector<std::pair<std::string, std::string> > |
| 60 WebInspectorPreferences; | 63 WebInspectorPreferences; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 bool show_composited_layer_tree; | 100 bool show_composited_layer_tree; |
| 98 bool show_fps_counter; | 101 bool show_fps_counter; |
| 99 bool accelerated_compositing_for_overflow_scroll_enabled; | 102 bool accelerated_compositing_for_overflow_scroll_enabled; |
| 100 bool show_paint_rects; | 103 bool show_paint_rects; |
| 101 bool render_vsync_enabled; | 104 bool render_vsync_enabled; |
| 102 bool asynchronous_spell_checking_enabled; | 105 bool asynchronous_spell_checking_enabled; |
| 103 bool unified_textchecker_enabled; | 106 bool unified_textchecker_enabled; |
| 104 bool accelerated_compositing_enabled; | 107 bool accelerated_compositing_enabled; |
| 105 bool force_compositing_mode; | 108 bool force_compositing_mode; |
| 106 bool fixed_position_compositing_enabled; | 109 bool fixed_position_compositing_enabled; |
| 107 bool accelerated_layers_enabled; | 110 bool accelerated_compositing_for_3d_transforms_enabled; |
| 108 bool accelerated_animation_enabled; | 111 bool accelerated_compositing_for_animation_enabled; |
| 109 bool accelerated_video_enabled; | 112 bool accelerated_compositing_for_video_enabled; |
| 110 bool accelerated_2d_canvas_enabled; | 113 bool accelerated_2d_canvas_enabled; |
| 111 bool deferred_2d_canvas_enabled; | 114 bool deferred_2d_canvas_enabled; |
| 112 bool accelerated_painting_enabled; | 115 bool accelerated_painting_enabled; |
| 113 bool accelerated_filters_enabled; | 116 bool accelerated_filters_enabled; |
| 114 bool gesture_tap_highlight_enabled; | 117 bool gesture_tap_highlight_enabled; |
| 115 bool accelerated_plugins_enabled; | 118 bool accelerated_compositing_for_plugins_enabled; |
| 116 bool memory_info_enabled; | 119 bool memory_info_enabled; |
| 117 bool fullscreen_enabled; | 120 bool fullscreen_enabled; |
| 118 bool allow_displaying_insecure_content; | 121 bool allow_displaying_insecure_content; |
| 119 bool allow_running_insecure_content; | 122 bool allow_running_insecure_content; |
| 120 bool password_echo_enabled; | 123 bool password_echo_enabled; |
| 121 bool should_print_backgrounds; | 124 bool should_print_backgrounds; |
| 122 bool enable_scroll_animator; | 125 bool enable_scroll_animator; |
| 123 bool visual_word_movement_enabled; | 126 bool visual_word_movement_enabled; |
| 124 bool css_sticky_position_enabled; | 127 bool css_sticky_position_enabled; |
| 125 bool css_regions_enabled; | 128 bool css_regions_enabled; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 136 bool deferred_image_decoding_enabled; | 139 bool deferred_image_decoding_enabled; |
| 137 int number_of_cpu_cores; | 140 int number_of_cpu_cores; |
| 138 | 141 |
| 139 // This flags corresponds to a Page's Settings' setCookieEnabled state. It | 142 // This flags corresponds to a Page's Settings' setCookieEnabled state. It |
| 140 // only controls whether or not the "document.cookie" field is properly | 143 // only controls whether or not the "document.cookie" field is properly |
| 141 // connected to the backing store, for instance if you wanted to be able to | 144 // connected to the backing store, for instance if you wanted to be able to |
| 142 // define custom getters and setters from within a unique security content | 145 // define custom getters and setters from within a unique security content |
| 143 // without raising a DOM security exception. | 146 // without raising a DOM security exception. |
| 144 bool cookie_enabled; | 147 bool cookie_enabled; |
| 145 | 148 |
| 146 bool apply_page_scale_factor_in_compositor; | |
| 147 | |
| 148 #if defined(OS_ANDROID) | 149 #if defined(OS_ANDROID) |
| 149 bool text_autosizing_enabled; | 150 bool text_autosizing_enabled; |
| 150 float font_scale_factor; | 151 float font_scale_factor; |
| 151 bool force_enable_zoom; | 152 bool force_enable_zoom; |
| 152 bool user_gesture_required_for_media_playback; | 153 bool user_gesture_required_for_media_playback; |
| 153 bool supports_multiple_windows; | 154 bool supports_multiple_windows; |
| 154 #endif | 155 #endif |
| 155 | 156 |
| 156 // We try to keep the default values the same as the default values in | 157 // We try to keep the default values the same as the default values in |
| 157 // chrome, except for the cases where it would require lots of extra work for | 158 // chrome, except for the cases where it would require lots of extra work for |
| 158 // the embedder to use the same default value. | 159 // the embedder to use the same default value. |
| 159 WebPreferences(); | 160 WebPreferences(); |
| 160 ~WebPreferences(); | 161 ~WebPreferences(); |
| 161 | 162 |
| 162 void Apply(WebKit::WebView* web_view) const; | 163 void Apply(WebKit::WebView* web_view) const; |
| 163 }; | 164 }; |
| 164 | 165 |
| 165 } // namespace webkit_glue | 166 } // namespace webkit_glue |
| 166 | 167 |
| 167 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ | 168 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ |
| OLD | NEW |