Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Side by Side Diff: webkit/glue/webpreferences.cc

Issue 6532012: Set the minimum timer interval on a per-page basis, and adjust it when... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/webkit_glue.gypi ('k') | webkit/support/webkit_support.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
15 #include "webkit/glue/webkit_glue.h" 16 #include "webkit/glue/webkit_glue.h"
16 17
17 using WebKit::WebRuntimeFeatures; 18 using WebKit::WebRuntimeFeatures;
18 using WebKit::WebSettings; 19 using WebKit::WebSettings;
19 using WebKit::WebString; 20 using WebKit::WebString;
20 using WebKit::WebURL; 21 using WebKit::WebURL;
21 using WebKit::WebView; 22 using WebKit::WebView;
22 23
23 WebPreferences::WebPreferences() 24 WebPreferences::WebPreferences()
24 : standard_font_family(ASCIIToUTF16("Times New Roman")), 25 : standard_font_family(ASCIIToUTF16("Times New Roman")),
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 it != inspector_settings.end(); ++it) 191 it != inspector_settings.end(); ++it)
191 web_view->setInspectorSetting(WebString::fromUTF8(it->first), 192 web_view->setInspectorSetting(WebString::fromUTF8(it->first),
192 WebString::fromUTF8(it->second)); 193 WebString::fromUTF8(it->second));
193 194
194 // Tabs to link is not part of the settings. WebCore calls 195 // Tabs to link is not part of the settings. WebCore calls
195 // ChromeClient::tabsToLinks which is part of the glue code. 196 // ChromeClient::tabsToLinks which is part of the glue code.
196 web_view->setTabsToLinks(tabs_to_links); 197 web_view->setTabsToLinks(tabs_to_links);
197 198
198 settings->setInteractiveFormValidationEnabled( 199 settings->setInteractiveFormValidationEnabled(
199 interactive_form_validation_enabled); 200 interactive_form_validation_enabled);
201
202 // Tabs start out hidden and are made visible.
203 settings->setMinimumTimerInterval(webkit_glue::kBackgroundTabTimerInterval);
200 } 204 }
OLDNEW
« no previous file with comments | « webkit/glue/webkit_glue.gypi ('k') | webkit/support/webkit_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698