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

Side by Side Diff: third_party/WebKit/Source/web/WebSettingsImpl.cpp

Issue 2316303006: Make default spellchecking behavior in html elements configurable via WebSettings. (Closed)
Patch Set: remove setting of spellcheck default in render_view_impl Created 4 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 void WebSettingsImpl::setShrinksViewportContentToFit(bool shrinkViewportContent) 335 void WebSettingsImpl::setShrinksViewportContentToFit(bool shrinkViewportContent)
336 { 336 {
337 m_shrinksViewportContentToFit = shrinkViewportContent; 337 m_shrinksViewportContentToFit = shrinkViewportContent;
338 } 338 }
339 339
340 void WebSettingsImpl::setSpatialNavigationEnabled(bool enabled) 340 void WebSettingsImpl::setSpatialNavigationEnabled(bool enabled)
341 { 341 {
342 m_settings->setSpatialNavigationEnabled(enabled); 342 m_settings->setSpatialNavigationEnabled(enabled);
343 } 343 }
344 344
345 void WebSettingsImpl::setSpellCheckEnabledByDefault(bool enabled)
346 {
347 m_settings->setSpellCheckEnabledByDefault(enabled);
348 }
349
345 void WebSettingsImpl::setTextAreasAreResizable(bool areResizable) 350 void WebSettingsImpl::setTextAreasAreResizable(bool areResizable)
346 { 351 {
347 m_settings->setTextAreasAreResizable(areResizable); 352 m_settings->setTextAreasAreResizable(areResizable);
348 } 353 }
349 354
350 void WebSettingsImpl::setAllowScriptsToCloseWindows(bool allow) 355 void WebSettingsImpl::setAllowScriptsToCloseWindows(bool allow)
351 { 356 {
352 m_settings->setAllowScriptsToCloseWindows(allow); 357 m_settings->setAllowScriptsToCloseWindows(allow);
353 } 358 }
354 359
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 { 802 {
798 m_settings->setV8CacheStrategiesForCacheStorage(static_cast<blink::V8CacheSt rategiesForCacheStorage>(strategies)); 803 m_settings->setV8CacheStrategiesForCacheStorage(static_cast<blink::V8CacheSt rategiesForCacheStorage>(strategies));
799 } 804 }
800 805
801 void WebSettingsImpl::setViewportStyle(WebViewportStyle style) 806 void WebSettingsImpl::setViewportStyle(WebViewportStyle style)
802 { 807 {
803 m_devToolsEmulator->setViewportStyle(style); 808 m_devToolsEmulator->setViewportStyle(style);
804 } 809 }
805 810
806 } // namespace blink 811 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebSettingsImpl.h ('k') | third_party/WebKit/public/web/WebSettings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698