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

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

Issue 236203005: Remove EditableLinkBehavior, which is always set to NeverLive by Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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
« no previous file with comments | « Source/core/page/EventHandler.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 m_settings->setMainFrameClipsContent(enabled); 344 m_settings->setMainFrameClipsContent(enabled);
345 } 345 }
346 346
347 void WebSettingsImpl::setMaxTouchPoints(int maxTouchPoints) 347 void WebSettingsImpl::setMaxTouchPoints(int maxTouchPoints)
348 { 348 {
349 m_settings->setMaxTouchPoints(maxTouchPoints); 349 m_settings->setMaxTouchPoints(maxTouchPoints);
350 } 350 }
351 351
352 void WebSettingsImpl::setEditableLinkBehaviorNeverLive() 352 void WebSettingsImpl::setEditableLinkBehaviorNeverLive()
353 { 353 {
354 // FIXME: If you ever need more behaviors than this, then we should probably 354 // FIXME: remove once Chromium call site goes away
355 // define an enum in WebSettings.h and have a switch statement that
356 // translates. Until then, this is probably fine, though.
357 m_settings->setEditableLinkBehavior(WebCore::EditableLinkNeverLive);
358 } 355 }
359 356
360 void WebSettingsImpl::setAllowUniversalAccessFromFileURLs(bool allow) 357 void WebSettingsImpl::setAllowUniversalAccessFromFileURLs(bool allow)
361 { 358 {
362 m_settings->setAllowUniversalAccessFromFileURLs(allow); 359 m_settings->setAllowUniversalAccessFromFileURLs(allow);
363 } 360 }
364 361
365 void WebSettingsImpl::setAllowFileAccessFromFileURLs(bool allow) 362 void WebSettingsImpl::setAllowFileAccessFromFileURLs(bool allow)
366 { 363 {
367 m_settings->setAllowFileAccessFromFileURLs(allow); 364 m_settings->setAllowFileAccessFromFileURLs(allow);
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 { 735 {
739 m_settings->setUseSolidColorScrollbars(enabled); 736 m_settings->setUseSolidColorScrollbars(enabled);
740 } 737 }
741 738
742 void WebSettingsImpl::setMainFrameResizesAreOrientationChanges(bool enabled) 739 void WebSettingsImpl::setMainFrameResizesAreOrientationChanges(bool enabled)
743 { 740 {
744 m_mainFrameResizesAreOrientationChanges = enabled; 741 m_mainFrameResizesAreOrientationChanges = enabled;
745 } 742 }
746 743
747 } // namespace blink 744 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/page/EventHandler.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698