OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "content/public/common/web_preferences.h" | 5 #include "content/public/common/web_preferences.h" |
6 | 6 |
7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "third_party/WebKit/public/web/WebSettings.h" | 10 #include "third_party/WebKit/public/web/WebSettings.h" |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 #elif defined(OS_POSIX) | 141 #elif defined(OS_POSIX) |
142 editing_behavior(EDITING_BEHAVIOR_UNIX), | 142 editing_behavior(EDITING_BEHAVIOR_UNIX), |
143 #else | 143 #else |
144 editing_behavior(EDITING_BEHAVIOR_MAC), | 144 editing_behavior(EDITING_BEHAVIOR_MAC), |
145 #endif | 145 #endif |
146 supports_multiple_windows(true), | 146 supports_multiple_windows(true), |
147 viewport_enabled(false), | 147 viewport_enabled(false), |
148 #if defined(OS_ANDROID) | 148 #if defined(OS_ANDROID) |
149 viewport_meta_enabled(true), | 149 viewport_meta_enabled(true), |
150 viewport_style(ViewportStyle::MOBILE), | 150 viewport_style(ViewportStyle::MOBILE), |
| 151 always_show_context_menu_on_touch(false), |
151 #else | 152 #else |
152 viewport_meta_enabled(false), | 153 viewport_meta_enabled(false), |
153 viewport_style(ViewportStyle::DEFAULT), | 154 viewport_style(ViewportStyle::DEFAULT), |
| 155 always_show_context_menu_on_touch(true), |
154 #endif | 156 #endif |
155 main_frame_resizes_are_orientation_changes(false), | 157 main_frame_resizes_are_orientation_changes(false), |
156 initialize_at_minimum_page_scale(true), | 158 initialize_at_minimum_page_scale(true), |
157 #if defined(OS_MACOSX) | 159 #if defined(OS_MACOSX) |
158 smart_insert_delete_enabled(true), | 160 smart_insert_delete_enabled(true), |
159 #else | 161 #else |
160 smart_insert_delete_enabled(false), | 162 smart_insert_delete_enabled(false), |
161 #endif | 163 #endif |
162 spatial_navigation_enabled(false), | 164 spatial_navigation_enabled(false), |
163 pinch_overlay_scrollbar_thickness(0), | 165 pinch_overlay_scrollbar_thickness(0), |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 pictograph_font_family_map[kCommonScript] = | 216 pictograph_font_family_map[kCommonScript] = |
215 base::ASCIIToUTF16("Times New Roman"); | 217 base::ASCIIToUTF16("Times New Roman"); |
216 } | 218 } |
217 | 219 |
218 WebPreferences::WebPreferences(const WebPreferences& other) = default; | 220 WebPreferences::WebPreferences(const WebPreferences& other) = default; |
219 | 221 |
220 WebPreferences::~WebPreferences() { | 222 WebPreferences::~WebPreferences() { |
221 } | 223 } |
222 | 224 |
223 } // namespace content | 225 } // namespace content |
OLD | NEW |