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

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

Issue 22747002: setViewportEnabled on InternalSettings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Mac compile issue: removed unused member variable Created 7 years, 4 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 { 175 {
176 RuntimeEnabledFeatures::setStyleScopedEnabled(enabled); 176 RuntimeEnabledFeatures::setStyleScopedEnabled(enabled);
177 } 177 }
178 178
179 void InternalSettings::setTouchEventEmulationEnabled(bool enabled, ExceptionStat e& es) 179 void InternalSettings::setTouchEventEmulationEnabled(bool enabled, ExceptionStat e& es)
180 { 180 {
181 InternalSettingsGuardForSettings(); 181 InternalSettingsGuardForSettings();
182 settings()->setTouchEventEmulationEnabled(enabled); 182 settings()->setTouchEventEmulationEnabled(enabled);
183 } 183 }
184 184
185 void InternalSettings::setViewportEnabled(bool enabled, ExceptionState& es)
186 {
187 InternalSettingsGuardForSettings();
188 settings()->setViewportEnabled(enabled);
189 }
190
185 // FIXME: This is a temporary flag and should be removed once accelerated 191 // FIXME: This is a temporary flag and should be removed once accelerated
186 // overflow scroll is ready (crbug.com/254111). 192 // overflow scroll is ready (crbug.com/254111).
187 void InternalSettings::setCompositorDrivenAcceleratedScrollingEnabled(bool enabl ed, ExceptionState& es) 193 void InternalSettings::setCompositorDrivenAcceleratedScrollingEnabled(bool enabl ed, ExceptionState& es)
188 { 194 {
189 InternalSettingsGuardForSettings(); 195 InternalSettingsGuardForSettings();
190 settings()->setCompositorDrivenAcceleratedScrollingEnabled(enabled); 196 settings()->setCompositorDrivenAcceleratedScrollingEnabled(enabled);
191 } 197 }
192 198
193 typedef void (Settings::*SetFontFamilyFunction)(const AtomicString&, UScriptCode ); 199 typedef void (Settings::*SetFontFamilyFunction)(const AtomicString&, UScriptCode );
194 static void setFontFamily(Settings* settings, const String& family, const String & script, SetFontFamilyFunction setter) 200 static void setFontFamily(Settings* settings, const String& family, const String & script, SetFontFamilyFunction setter)
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 settings()->setImagesEnabled(enabled); 306 settings()->setImagesEnabled(enabled);
301 } 307 }
302 308
303 void InternalSettings::setDefaultVideoPosterURL(const String& url, ExceptionStat e& es) 309 void InternalSettings::setDefaultVideoPosterURL(const String& url, ExceptionStat e& es)
304 { 310 {
305 InternalSettingsGuardForSettings(); 311 InternalSettingsGuardForSettings();
306 settings()->setDefaultVideoPosterURL(url); 312 settings()->setDefaultVideoPosterURL(url);
307 } 313 }
308 314
309 } 315 }
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