OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |