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/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "third_party/WebKit/public/web/WebSettings.h" | 10 #include "third_party/WebKit/public/web/WebSettings.h" |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 touch_enabled(false), | 151 touch_enabled(false), |
152 device_supports_touch(false), | 152 device_supports_touch(false), |
153 device_supports_mouse(true), | 153 device_supports_mouse(true), |
154 touch_adjustment_enabled(true), | 154 touch_adjustment_enabled(true), |
155 pointer_events_max_touch_points(0), | 155 pointer_events_max_touch_points(0), |
156 available_pointer_types(0), | 156 available_pointer_types(0), |
157 primary_pointer_type(ui::POINTER_TYPE_NONE), | 157 primary_pointer_type(ui::POINTER_TYPE_NONE), |
158 available_hover_types(0), | 158 available_hover_types(0), |
159 primary_hover_type(ui::HOVER_TYPE_NONE), | 159 primary_hover_type(ui::HOVER_TYPE_NONE), |
160 sync_xhr_in_documents_enabled(true), | 160 sync_xhr_in_documents_enabled(true), |
161 deferred_image_decoding_enabled(false), | |
162 image_color_profiles_enabled(false), | 161 image_color_profiles_enabled(false), |
163 should_respect_image_orientation(false), | 162 should_respect_image_orientation(false), |
164 number_of_cpu_cores(1), | 163 number_of_cpu_cores(1), |
165 #if defined(OS_MACOSX) | 164 #if defined(OS_MACOSX) |
166 editing_behavior(EDITING_BEHAVIOR_MAC), | 165 editing_behavior(EDITING_BEHAVIOR_MAC), |
167 #elif defined(OS_WIN) | 166 #elif defined(OS_WIN) |
168 editing_behavior(EDITING_BEHAVIOR_WIN), | 167 editing_behavior(EDITING_BEHAVIOR_WIN), |
169 #elif defined(OS_ANDROID) | 168 #elif defined(OS_ANDROID) |
170 editing_behavior(EDITING_BEHAVIOR_ANDROID), | 169 editing_behavior(EDITING_BEHAVIOR_ANDROID), |
171 #elif defined(OS_POSIX) | 170 #elif defined(OS_POSIX) |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); | 232 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); |
234 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); | 233 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); |
235 pictograph_font_family_map[kCommonScript] = | 234 pictograph_font_family_map[kCommonScript] = |
236 base::ASCIIToUTF16("Times New Roman"); | 235 base::ASCIIToUTF16("Times New Roman"); |
237 } | 236 } |
238 | 237 |
239 WebPreferences::~WebPreferences() { | 238 WebPreferences::~WebPreferences() { |
240 } | 239 } |
241 | 240 |
242 } // namespace content | 241 } // namespace content |
OLD | NEW |