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

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

Issue 18341009: Refactor cc scrollbar layers to separate solid-color vs desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments; plumb scrollbar color via flag. 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 | 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 "cc/base/switches.h"
8 #include "content/public/common/content_switches.h" 9 #include "content/public/common/content_switches.h"
9 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" 10 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h"
10 11
11 #if defined(OS_ANDROID) 12 #if defined(OS_ANDROID)
12 #include <cpu-features.h> 13 #include <cpu-features.h>
13 #include "base/android/build_info.h" 14 #include "base/android/build_info.h"
14 #endif 15 #endif
15 16
16 using WebKit::WebRuntimeFeatures; 17 using WebKit::WebRuntimeFeatures;
17 18
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 130
130 if (command_line.HasSwitch(switches::kEnableSpeechSynthesis)) 131 if (command_line.HasSwitch(switches::kEnableSpeechSynthesis))
131 WebRuntimeFeatures::enableSpeechSynthesis(true); 132 WebRuntimeFeatures::enableSpeechSynthesis(true);
132 133
133 if (command_line.HasSwitch(switches::kEnableWebGLDraftExtensions)) 134 if (command_line.HasSwitch(switches::kEnableWebGLDraftExtensions))
134 WebRuntimeFeatures::enableWebGLDraftExtensions(true); 135 WebRuntimeFeatures::enableWebGLDraftExtensions(true);
135 136
136 if (command_line.HasSwitch(switches::kEnableHTMLImports)) 137 if (command_line.HasSwitch(switches::kEnableHTMLImports))
137 WebRuntimeFeatures::enableHTMLImports(true); 138 WebRuntimeFeatures::enableHTMLImports(true);
138 139
139 if (command_line.HasSwitch(switches::kEnableOverlayScrollbars)) 140 if (command_line.HasSwitch(cc::switches::kEnableOverlayScrollbars))
jamesr 2013/08/15 22:34:24 this is a bad change. cc::switches should only ch
wjmaclean 2013/08/16 13:34:16 OK. Is it preferable to add another, CC-specific f
140 WebRuntimeFeatures::enableOverlayScrollbars(true); 141 WebRuntimeFeatures::enableOverlayScrollbars(true);
141 } 142 }
142 143
143 } // namespace content 144 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698