| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 return 0; | 135 return 0; |
| 136 return &page()->settings(); | 136 return &page()->settings(); |
| 137 } | 137 } |
| 138 | 138 |
| 139 void InternalSettings::setMockScrollbarsEnabled(bool enabled, ExceptionState& ex
ceptionState) | 139 void InternalSettings::setMockScrollbarsEnabled(bool enabled, ExceptionState& ex
ceptionState) |
| 140 { | 140 { |
| 141 InternalSettingsGuardForSettings(); | 141 InternalSettingsGuardForSettings(); |
| 142 settings()->setMockScrollbarsEnabled(enabled); | 142 settings()->setMockScrollbarsEnabled(enabled); |
| 143 } | 143 } |
| 144 | 144 |
| 145 void InternalSettings::setHideScrollbars(bool enabled, ExceptionState& exception
State) |
| 146 { |
| 147 InternalSettingsGuardForSettings(); |
| 148 settings()->setHideScrollbars(enabled); |
| 149 } |
| 150 |
| 145 void InternalSettings::setMockGestureTapHighlightsEnabled(bool enabled, Exceptio
nState& exceptionState) | 151 void InternalSettings::setMockGestureTapHighlightsEnabled(bool enabled, Exceptio
nState& exceptionState) |
| 146 { | 152 { |
| 147 InternalSettingsGuardForSettings(); | 153 InternalSettingsGuardForSettings(); |
| 148 settings()->setMockGestureTapHighlightsEnabled(enabled); | 154 settings()->setMockGestureTapHighlightsEnabled(enabled); |
| 149 } | 155 } |
| 150 | 156 |
| 151 void InternalSettings::setCSSStickyPositionEnabled(bool enabled) | 157 void InternalSettings::setCSSStickyPositionEnabled(bool enabled) |
| 152 { | 158 { |
| 153 RuntimeEnabledFeatures::setCSSStickyPositionEnabled(enabled); | 159 RuntimeEnabledFeatures::setCSSStickyPositionEnabled(enabled); |
| 154 } | 160 } |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 settings()->setLogPreload(enabled); | 482 settings()->setLogPreload(enabled); |
| 477 } | 483 } |
| 478 | 484 |
| 479 void InternalSettings::setCompositorWorkerEnabled(bool enabled, ExceptionState&
exceptionState) | 485 void InternalSettings::setCompositorWorkerEnabled(bool enabled, ExceptionState&
exceptionState) |
| 480 { | 486 { |
| 481 InternalSettingsGuardForSettings(); | 487 InternalSettingsGuardForSettings(); |
| 482 RuntimeEnabledFeatures::setCompositorWorkerEnabled(enabled); | 488 RuntimeEnabledFeatures::setCompositorWorkerEnabled(enabled); |
| 483 } | 489 } |
| 484 | 490 |
| 485 } // namespace blink | 491 } // namespace blink |
| OLD | NEW |