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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 void InternalSettings::setExperimentalContentSecurityPolicyFeaturesEnabled(bool
enabled) | 185 void InternalSettings::setExperimentalContentSecurityPolicyFeaturesEnabled(bool
enabled) |
186 { | 186 { |
187 RuntimeEnabledFeatures::setExperimentalContentSecurityPolicyFeaturesEnabled(
enabled); | 187 RuntimeEnabledFeatures::setExperimentalContentSecurityPolicyFeaturesEnabled(
enabled); |
188 } | 188 } |
189 | 189 |
190 void InternalSettings::setOverlayScrollbarsEnabled(bool enabled) | 190 void InternalSettings::setOverlayScrollbarsEnabled(bool enabled) |
191 { | 191 { |
192 RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(enabled); | 192 RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(enabled); |
193 } | 193 } |
194 | 194 |
195 void InternalSettings::setTouchEventEmulationEnabled(bool enabled, ExceptionStat
e& exceptionState) | |
196 { | |
197 InternalSettingsGuardForSettings(); | |
198 settings()->setTouchEventEmulationEnabled(enabled); | |
199 } | |
200 | |
201 void InternalSettings::setViewportEnabled(bool enabled, ExceptionState& exceptio
nState) | 195 void InternalSettings::setViewportEnabled(bool enabled, ExceptionState& exceptio
nState) |
202 { | 196 { |
203 InternalSettingsGuardForSettings(); | 197 InternalSettingsGuardForSettings(); |
204 settings()->setViewportEnabled(enabled); | 198 settings()->setViewportEnabled(enabled); |
205 } | 199 } |
206 | 200 |
207 // FIXME: This is a temporary flag and should be removed once accelerated | 201 // FIXME: This is a temporary flag and should be removed once accelerated |
208 // overflow scroll is ready (crbug.com/254111). | 202 // overflow scroll is ready (crbug.com/254111). |
209 void InternalSettings::setCompositorDrivenAcceleratedScrollingEnabled(bool enabl
ed, ExceptionState& exceptionState) | 203 void InternalSettings::setCompositorDrivenAcceleratedScrollingEnabled(bool enabl
ed, ExceptionState& exceptionState) |
210 { | 204 { |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 settings()->setDefaultVideoPosterURL(url); | 346 settings()->setDefaultVideoPosterURL(url); |
353 } | 347 } |
354 | 348 |
355 void InternalSettings::setPasswordGenerationDecorationEnabled(bool enabled, Exce
ptionState& exceptionState) | 349 void InternalSettings::setPasswordGenerationDecorationEnabled(bool enabled, Exce
ptionState& exceptionState) |
356 { | 350 { |
357 InternalSettingsGuardForSettings(); | 351 InternalSettingsGuardForSettings(); |
358 settings()->setPasswordGenerationDecorationEnabled(enabled); | 352 settings()->setPasswordGenerationDecorationEnabled(enabled); |
359 } | 353 } |
360 | 354 |
361 } | 355 } |
OLD | NEW |