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

Side by Side Diff: content/child/runtime_features.cc

Issue 66333016: Add DirectWrite flag and plumb it through to Blink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/child/runtime_features.h" 5 #include "content/child/runtime_features.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "content/public/common/content_switches.h" 8 #include "content/public/common/content_switches.h"
9 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" 9 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h"
10 10
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 if (command_line.HasSwitch(switches::kDisableDeviceOrientation)) 125 if (command_line.HasSwitch(switches::kDisableDeviceOrientation))
126 WebRuntimeFeatures::enableDeviceOrientation(false); 126 WebRuntimeFeatures::enableDeviceOrientation(false);
127 127
128 if (command_line.HasSwitch(switches::kDisableSpeechInput)) 128 if (command_line.HasSwitch(switches::kDisableSpeechInput))
129 WebRuntimeFeatures::enableSpeechInput(false); 129 WebRuntimeFeatures::enableSpeechInput(false);
130 130
131 if (command_line.HasSwitch(switches::kDisableFileSystem)) 131 if (command_line.HasSwitch(switches::kDisableFileSystem))
132 WebRuntimeFeatures::enableFileSystem(false); 132 WebRuntimeFeatures::enableFileSystem(false);
133 133
134 if (command_line.HasSwitch(switches::kEnableDirectWrite))
Avi (use Gerrit) 2013/11/16 06:26:51 Can you #if defined(OS_WIN)?
135 WebRuntimeFeatures::enableDirectWrite(true);
136
134 if (command_line.HasSwitch(switches::kEnableExperimentalCanvasFeatures)) 137 if (command_line.HasSwitch(switches::kEnableExperimentalCanvasFeatures))
135 WebRuntimeFeatures::enableExperimentalCanvasFeatures(true); 138 WebRuntimeFeatures::enableExperimentalCanvasFeatures(true);
136 139
137 if (command_line.HasSwitch(switches::kEnableSpeechSynthesis)) 140 if (command_line.HasSwitch(switches::kEnableSpeechSynthesis))
138 WebRuntimeFeatures::enableSpeechSynthesis(true); 141 WebRuntimeFeatures::enableSpeechSynthesis(true);
139 142
140 if (command_line.HasSwitch(switches::kEnableWebGLDraftExtensions)) 143 if (command_line.HasSwitch(switches::kEnableWebGLDraftExtensions))
141 WebRuntimeFeatures::enableWebGLDraftExtensions(true); 144 WebRuntimeFeatures::enableWebGLDraftExtensions(true);
142 145
143 if (command_line.HasSwitch(switches::kEnableHTMLImports)) 146 if (command_line.HasSwitch(switches::kEnableHTMLImports))
144 WebRuntimeFeatures::enableHTMLImports(true); 147 WebRuntimeFeatures::enableHTMLImports(true);
145 148
146 if (command_line.HasSwitch(switches::kEnableOverlayFullscreenVideo)) 149 if (command_line.HasSwitch(switches::kEnableOverlayFullscreenVideo))
147 WebRuntimeFeatures::enableOverlayFullscreenVideo(true); 150 WebRuntimeFeatures::enableOverlayFullscreenVideo(true);
148 151
149 if (command_line.HasSwitch(switches::kEnableOverlayScrollbars)) 152 if (command_line.HasSwitch(switches::kEnableOverlayScrollbars))
150 WebRuntimeFeatures::enableOverlayScrollbars(true); 153 WebRuntimeFeatures::enableOverlayScrollbars(true);
151 154
152 if (command_line.HasSwitch(switches::kEnableInputModeAttribute)) 155 if (command_line.HasSwitch(switches::kEnableInputModeAttribute))
153 WebRuntimeFeatures::enableInputModeAttribute(true); 156 WebRuntimeFeatures::enableInputModeAttribute(true);
154 157
155 if (command_line.HasSwitch(switches::kEnableFastTextAutosizing)) 158 if (command_line.HasSwitch(switches::kEnableFastTextAutosizing))
156 WebRuntimeFeatures::enableFastTextAutosizing(true); 159 WebRuntimeFeatures::enableFastTextAutosizing(true);
157 160
158 if (command_line.HasSwitch(switches::kEnableRepaintAfterLayout)) 161 if (command_line.HasSwitch(switches::kEnableRepaintAfterLayout))
159 WebRuntimeFeatures::enableRepaintAfterLayout(true); 162 WebRuntimeFeatures::enableRepaintAfterLayout(true);
160 } 163 }
161 164
162 } // namespace content 165 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698