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

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: 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
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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 void InternalSettings::setExperimentalContentSecurityPolicyFeaturesEnabled(bool enabled) 190 void InternalSettings::setExperimentalContentSecurityPolicyFeaturesEnabled(bool enabled)
191 { 191 {
192 RuntimeEnabledFeatures::setExperimentalContentSecurityPolicyFeaturesEnabled( enabled); 192 RuntimeEnabledFeatures::setExperimentalContentSecurityPolicyFeaturesEnabled( enabled);
193 } 193 }
194 194
195 void InternalSettings::setOverlayScrollbarsEnabled(bool enabled) 195 void InternalSettings::setOverlayScrollbarsEnabled(bool enabled)
196 { 196 {
197 RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(enabled); 197 RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(enabled);
198 } 198 }
199 199
200 // FIXME: Remove this method and touchEventEmulationEnabled setting entirely.
200 void InternalSettings::setTouchEventEmulationEnabled(bool enabled, ExceptionStat e& exceptionState) 201 void InternalSettings::setTouchEventEmulationEnabled(bool enabled, ExceptionStat e& exceptionState)
201 { 202 {
202 InternalSettingsGuardForSettings(); 203 InternalSettingsGuardForSettings();
203 settings()->setTouchEventEmulationEnabled(enabled); 204 settings()->setTouchEventEmulationEnabled(enabled);
204 } 205 }
205 206
206 void InternalSettings::setViewportEnabled(bool enabled, ExceptionState& exceptio nState) 207 void InternalSettings::setViewportEnabled(bool enabled, ExceptionState& exceptio nState)
207 { 208 {
208 InternalSettingsGuardForSettings(); 209 InternalSettingsGuardForSettings();
209 settings()->setViewportEnabled(enabled); 210 settings()->setViewportEnabled(enabled);
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 settings()->setDefaultVideoPosterURL(url); 358 settings()->setDefaultVideoPosterURL(url);
358 } 359 }
359 360
360 void InternalSettings::setPasswordGenerationDecorationEnabled(bool enabled, Exce ptionState& exceptionState) 361 void InternalSettings::setPasswordGenerationDecorationEnabled(bool enabled, Exce ptionState& exceptionState)
361 { 362 {
362 InternalSettingsGuardForSettings(); 363 InternalSettingsGuardForSettings();
363 settings()->setPasswordGenerationDecorationEnabled(enabled); 364 settings()->setPasswordGenerationDecorationEnabled(enabled);
364 } 365 }
365 366
366 } 367 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698