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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 should_clear_document_background(true), | 100 should_clear_document_background(true), |
101 enable_scroll_animator(false), | 101 enable_scroll_animator(false), |
102 region_based_columns_enabled(false), | 102 region_based_columns_enabled(false), |
103 touch_enabled(false), | 103 touch_enabled(false), |
104 device_supports_touch(false), | 104 device_supports_touch(false), |
105 device_supports_mouse(true), | 105 device_supports_mouse(true), |
106 touch_adjustment_enabled(true), | 106 touch_adjustment_enabled(true), |
107 pointer_events_max_touch_points(0), | 107 pointer_events_max_touch_points(0), |
108 sync_xhr_in_documents_enabled(true), | 108 sync_xhr_in_documents_enabled(true), |
109 deferred_image_decoding_enabled(false), | 109 deferred_image_decoding_enabled(false), |
| 110 decode_to_yuv_enabled(false), |
110 should_respect_image_orientation(false), | 111 should_respect_image_orientation(false), |
111 number_of_cpu_cores(1), | 112 number_of_cpu_cores(1), |
112 #if defined(OS_MACOSX) | 113 #if defined(OS_MACOSX) |
113 editing_behavior(EDITING_BEHAVIOR_MAC), | 114 editing_behavior(EDITING_BEHAVIOR_MAC), |
114 #elif defined(OS_WIN) | 115 #elif defined(OS_WIN) |
115 editing_behavior(EDITING_BEHAVIOR_WIN), | 116 editing_behavior(EDITING_BEHAVIOR_WIN), |
116 #elif defined(OS_ANDROID) | 117 #elif defined(OS_ANDROID) |
117 editing_behavior(EDITING_BEHAVIOR_ANDROID), | 118 editing_behavior(EDITING_BEHAVIOR_ANDROID), |
118 #elif defined(OS_POSIX) | 119 #elif defined(OS_POSIX) |
119 editing_behavior(EDITING_BEHAVIOR_UNIX), | 120 editing_behavior(EDITING_BEHAVIOR_UNIX), |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); | 172 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); |
172 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); | 173 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); |
173 pictograph_font_family_map[kCommonScript] = | 174 pictograph_font_family_map[kCommonScript] = |
174 base::ASCIIToUTF16("Times New Roman"); | 175 base::ASCIIToUTF16("Times New Roman"); |
175 } | 176 } |
176 | 177 |
177 WebPreferences::~WebPreferences() { | 178 WebPreferences::~WebPreferences() { |
178 } | 179 } |
179 | 180 |
180 } // namespace content | 181 } // namespace content |
OLD | NEW |