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

Side by Side Diff: Source/web/WebRuntimeFeatures.cpp

Issue 25452002: Add more WebRuntimeFeatures plumbing for fast text autosizing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | public/web/WebRuntimeFeatures.h » ('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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 void WebRuntimeFeatures::enableExperimentalCanvasFeatures(bool enable) 137 void WebRuntimeFeatures::enableExperimentalCanvasFeatures(bool enable)
138 { 138 {
139 RuntimeEnabledFeatures::setExperimentalCanvasFeaturesEnabled(enable); 139 RuntimeEnabledFeatures::setExperimentalCanvasFeaturesEnabled(enable);
140 } 140 }
141 141
142 bool WebRuntimeFeatures::isExperimentalCanvasFeaturesEnabled() 142 bool WebRuntimeFeatures::isExperimentalCanvasFeaturesEnabled()
143 { 143 {
144 return RuntimeEnabledFeatures::experimentalCanvasFeaturesEnabled(); 144 return RuntimeEnabledFeatures::experimentalCanvasFeaturesEnabled();
145 } 145 }
146 146
147 void WebRuntimeFeatures::enableFastTextAutosizing(bool enable)
148 {
149 RuntimeEnabledFeatures::setFastTextAutosizingEnabled(enable);
150 }
151
152 bool WebRuntimeFeatures::isFastTextAutosizingEnabled()
153 {
154 return RuntimeEnabledFeatures::fastTextAutosizingEnabled();
155 }
156
147 void WebRuntimeFeatures::enableFileSystem(bool enable) 157 void WebRuntimeFeatures::enableFileSystem(bool enable)
148 { 158 {
149 RuntimeEnabledFeatures::setFileSystemEnabled(enable); 159 RuntimeEnabledFeatures::setFileSystemEnabled(enable);
150 } 160 }
151 161
152 bool WebRuntimeFeatures::isFileSystemEnabled() 162 bool WebRuntimeFeatures::isFileSystemEnabled()
153 { 163 {
154 return RuntimeEnabledFeatures::fileSystemEnabled(); 164 return RuntimeEnabledFeatures::fileSystemEnabled();
155 } 165 }
156 166
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 { 410 {
401 RuntimeEnabledFeatures::setInputModeAttributeEnabled(enable); 411 RuntimeEnabledFeatures::setInputModeAttributeEnabled(enable);
402 } 412 }
403 413
404 void WebRuntimeFeatures::enableOverlayFullscreenVideo(bool enable) 414 void WebRuntimeFeatures::enableOverlayFullscreenVideo(bool enable)
405 { 415 {
406 RuntimeEnabledFeatures::setOverlayFullscreenVideoEnabled(enable); 416 RuntimeEnabledFeatures::setOverlayFullscreenVideoEnabled(enable);
407 } 417 }
408 418
409 } // namespace WebKit 419 } // namespace WebKit
OLDNEW
« no previous file with comments | « no previous file | public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698