| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "webkit/glue/webpreferences.h" | 5 #include "webkit/glue/webpreferences.h" |
| 6 | 6 |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSettings.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSettings.h" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 15 #include "webkit/glue/webkit_constants.h" | |
| 16 #include "webkit/glue/webkit_glue.h" | 15 #include "webkit/glue/webkit_glue.h" |
| 17 | 16 |
| 18 using WebKit::WebRuntimeFeatures; | 17 using WebKit::WebRuntimeFeatures; |
| 19 using WebKit::WebSettings; | 18 using WebKit::WebSettings; |
| 20 using WebKit::WebString; | 19 using WebKit::WebString; |
| 21 using WebKit::WebURL; | 20 using WebKit::WebURL; |
| 22 using WebKit::WebView; | 21 using WebKit::WebView; |
| 23 | 22 |
| 24 WebPreferences::WebPreferences() | 23 WebPreferences::WebPreferences() |
| 25 : standard_font_family(ASCIIToUTF16("Times New Roman")), | 24 : standard_font_family(ASCIIToUTF16("Times New Roman")), |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 it != inspector_settings.end(); ++it) | 198 it != inspector_settings.end(); ++it) |
| 200 web_view->setInspectorSetting(WebString::fromUTF8(it->first), | 199 web_view->setInspectorSetting(WebString::fromUTF8(it->first), |
| 201 WebString::fromUTF8(it->second)); | 200 WebString::fromUTF8(it->second)); |
| 202 | 201 |
| 203 // Tabs to link is not part of the settings. WebCore calls | 202 // Tabs to link is not part of the settings. WebCore calls |
| 204 // ChromeClient::tabsToLinks which is part of the glue code. | 203 // ChromeClient::tabsToLinks which is part of the glue code. |
| 205 web_view->setTabsToLinks(tabs_to_links); | 204 web_view->setTabsToLinks(tabs_to_links); |
| 206 | 205 |
| 207 settings->setInteractiveFormValidationEnabled( | 206 settings->setInteractiveFormValidationEnabled( |
| 208 interactive_form_validation_enabled); | 207 interactive_form_validation_enabled); |
| 209 | |
| 210 // Tabs start out hidden and are made visible. | |
| 211 settings->setMinimumTimerInterval(webkit_glue::kBackgroundTabTimerInterval); | |
| 212 } | 208 } |
| OLD | NEW |