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

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

Issue 1263703004: Revert of Implement Aura side of unified touch text selection for contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « content/browser/web_contents/web_contents_view_aura.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 // Android does not have support for PagePopup 53 // Android does not have support for PagePopup
54 WebRuntimeFeatures::enablePagePopup(false); 54 WebRuntimeFeatures::enablePagePopup(false);
55 // Android does not yet support SharedWorker. crbug.com/154571 55 // Android does not yet support SharedWorker. crbug.com/154571
56 WebRuntimeFeatures::enableSharedWorker(false); 56 WebRuntimeFeatures::enableSharedWorker(false);
57 // Android does not yet support NavigatorContentUtils. 57 // Android does not yet support NavigatorContentUtils.
58 WebRuntimeFeatures::enableNavigatorContentUtils(false); 58 WebRuntimeFeatures::enableNavigatorContentUtils(false);
59 WebRuntimeFeatures::enableOrientationEvent(true); 59 WebRuntimeFeatures::enableOrientationEvent(true);
60 WebRuntimeFeatures::enableFastMobileScrolling(true); 60 WebRuntimeFeatures::enableFastMobileScrolling(true);
61 WebRuntimeFeatures::enableMediaCapture(true); 61 WebRuntimeFeatures::enableMediaCapture(true);
62 WebRuntimeFeatures::enableCompositedSelectionUpdate(true);
62 // Android won't be able to reliably support non-persistent notifications, the 63 // Android won't be able to reliably support non-persistent notifications, the
63 // intended behavior for which is in flux by itself. 64 // intended behavior for which is in flux by itself.
64 WebRuntimeFeatures::enableNotificationConstructor(false); 65 WebRuntimeFeatures::enableNotificationConstructor(false);
65 #else 66 #else
66 WebRuntimeFeatures::enableNavigatorContentUtils(true); 67 WebRuntimeFeatures::enableNavigatorContentUtils(true);
67 #endif // defined(OS_ANDROID) 68 #endif // defined(OS_ANDROID)
68 69
69 #if defined(OS_ANDROID) || defined(USE_AURA)
70 WebRuntimeFeatures::enableCompositedSelectionUpdate(true);
71 #endif
72
73 #if !(defined OS_ANDROID || defined OS_CHROMEOS || defined OS_IOS) 70 #if !(defined OS_ANDROID || defined OS_CHROMEOS || defined OS_IOS)
74 // Only Android, ChromeOS, and IOS support NetInfo right now. 71 // Only Android, ChromeOS, and IOS support NetInfo right now.
75 WebRuntimeFeatures::enableNetworkInformation(false); 72 WebRuntimeFeatures::enableNetworkInformation(false);
76 #endif 73 #endif
77 74
78 #if defined(OS_WIN) 75 #if defined(OS_WIN)
79 // Screen Orientation API is currently broken on Windows 8 Metro mode and 76 // Screen Orientation API is currently broken on Windows 8 Metro mode and
80 // until we can find how to disable it only for Blink instances running in a 77 // until we can find how to disable it only for Blink instances running in a
81 // renderer process in Metro, we need to disable the API altogether for Win8. 78 // renderer process in Metro, we need to disable the API altogether for Win8.
82 // See http://crbug.com/400846 79 // See http://crbug.com/400846
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), ',', 223 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), ',',
227 &disabled_features); 224 &disabled_features);
228 for (const std::string& feature : disabled_features) { 225 for (const std::string& feature : disabled_features) {
229 WebRuntimeFeatures::enableFeatureFromString( 226 WebRuntimeFeatures::enableFeatureFromString(
230 blink::WebString::fromLatin1(feature), false); 227 blink::WebString::fromLatin1(feature), false);
231 } 228 }
232 } 229 }
233 } 230 }
234 231
235 } // namespace content 232 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698