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

Side by Side Diff: Source/core/testing/InternalSettings.cpp

Issue 145003002: [DevTools] Switch from blink-based to content-based touch emulation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: another rebase 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/testing/InternalSettings.h ('k') | Source/core/testing/InternalSettings.idl » ('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) 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
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
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 }
OLDNEW
« no previous file with comments | « Source/core/testing/InternalSettings.h ('k') | Source/core/testing/InternalSettings.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698