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

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: make it configurable via settings Created 4 years, 3 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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 void WebSettingsImpl::setShrinksViewportContentToFit(bool shrinkViewportContent) 330 void WebSettingsImpl::setShrinksViewportContentToFit(bool shrinkViewportContent)
331 { 331 {
332 m_shrinksViewportContentToFit = shrinkViewportContent; 332 m_shrinksViewportContentToFit = shrinkViewportContent;
333 } 333 }
334 334
335 void WebSettingsImpl::setSpatialNavigationEnabled(bool enabled) 335 void WebSettingsImpl::setSpatialNavigationEnabled(bool enabled)
336 { 336 {
337 m_settings->setSpatialNavigationEnabled(enabled); 337 m_settings->setSpatialNavigationEnabled(enabled);
338 } 338 }
339 339
340 void WebSettingsImpl::setSpellCheckEnabledByDefault(bool enabled)
341 {
342 m_settings->setSpellCheckEnabledByDefault(enabled);
343 }
344
340 void WebSettingsImpl::setTextAreasAreResizable(bool areResizable) 345 void WebSettingsImpl::setTextAreasAreResizable(bool areResizable)
341 { 346 {
342 m_settings->setTextAreasAreResizable(areResizable); 347 m_settings->setTextAreasAreResizable(areResizable);
343 } 348 }
344 349
345 void WebSettingsImpl::setAllowScriptsToCloseWindows(bool allow) 350 void WebSettingsImpl::setAllowScriptsToCloseWindows(bool allow)
346 { 351 {
347 m_settings->setAllowScriptsToCloseWindows(allow); 352 m_settings->setAllowScriptsToCloseWindows(allow);
348 } 353 }
349 354
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 { 792 {
788 m_settings->setV8CacheStrategiesForCacheStorage(static_cast<blink::V8CacheSt rategiesForCacheStorage>(strategies)); 793 m_settings->setV8CacheStrategiesForCacheStorage(static_cast<blink::V8CacheSt rategiesForCacheStorage>(strategies));
789 } 794 }
790 795
791 void WebSettingsImpl::setViewportStyle(WebViewportStyle style) 796 void WebSettingsImpl::setViewportStyle(WebViewportStyle style)
792 { 797 {
793 m_devToolsEmulator->setViewportStyle(style); 798 m_devToolsEmulator->setViewportStyle(style);
794 } 799 }
795 800
796 } // namespace blink 801 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698