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

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

Issue 698253004: Reland: Implement Aura side of unified touch text selection for contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 "base/metrics/field_trial.h" 8 #include "base/metrics/field_trial.h"
9 #include "content/common/content_switches_internal.h" 9 #include "content/common/content_switches_internal.h"
10 #include "content/public/common/content_switches.h" 10 #include "content/public/common/content_switches.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 WebRuntimeFeatures::enableOrientationEvent(true); 54 WebRuntimeFeatures::enableOrientationEvent(true);
55 WebRuntimeFeatures::enableFastMobileScrolling(true); 55 WebRuntimeFeatures::enableFastMobileScrolling(true);
56 WebRuntimeFeatures::enableMediaCapture(true); 56 WebRuntimeFeatures::enableMediaCapture(true);
57 WebRuntimeFeatures::enableCompositedSelectionUpdate(true); 57 WebRuntimeFeatures::enableCompositedSelectionUpdate(true);
58 // If navigation transitions gets activated via field trial, enable it in 58 // If navigation transitions gets activated via field trial, enable it in
59 // blink. We don't set this to false in case the user has manually enabled 59 // blink. We don't set this to false in case the user has manually enabled
60 // the feature via experimental web platform features. 60 // the feature via experimental web platform features.
61 if (base::FieldTrialList::FindFullName("NavigationTransitions") == "Enabled") 61 if (base::FieldTrialList::FindFullName("NavigationTransitions") == "Enabled")
62 WebRuntimeFeatures::enableNavigationTransitions(true); 62 WebRuntimeFeatures::enableNavigationTransitions(true);
63 #else 63 #else
64 WebRuntimeFeatures::enableCompositedSelectionUpdate(true);
64 WebRuntimeFeatures::enableNavigatorContentUtils(true); 65 WebRuntimeFeatures::enableNavigatorContentUtils(true);
65 #endif // defined(OS_ANDROID) 66 #endif // defined(OS_ANDROID)
66 67
67 #if !(defined OS_ANDROID || defined OS_CHROMEOS || defined OS_IOS) 68 #if !(defined OS_ANDROID || defined OS_CHROMEOS || defined OS_IOS)
68 // Only Android, ChromeOS, and IOS support NetInfo right now. 69 // Only Android, ChromeOS, and IOS support NetInfo right now.
69 WebRuntimeFeatures::enableNetworkInformation(false); 70 WebRuntimeFeatures::enableNetworkInformation(false);
70 #endif 71 #endif
71 72
72 #if defined(OS_WIN) 73 #if defined(OS_WIN)
73 // Screen Orientation API is currently broken on Windows 8 Metro mode and 74 // Screen Orientation API is currently broken on Windows 8 Metro mode and
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 185
185 if (command_line.HasSwitch(switches::kEnableViewport)) 186 if (command_line.HasSwitch(switches::kEnableViewport))
186 WebRuntimeFeatures::enableCSSViewport(true); 187 WebRuntimeFeatures::enableCSSViewport(true);
187 188
188 if (command_line.HasSwitch(switches::kDisableSVG1DOM)) { 189 if (command_line.HasSwitch(switches::kDisableSVG1DOM)) {
189 WebRuntimeFeatures::enableSVG1DOM(false); 190 WebRuntimeFeatures::enableSVG1DOM(false);
190 } 191 }
191 } 192 }
192 193
193 } // namespace content 194 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698