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

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: Rebased after blink issue fixed: r200194 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);
63 // Android won't be able to reliably support non-persistent notifications, the 62 // Android won't be able to reliably support non-persistent notifications, the
64 // intended behavior for which is in flux by itself. 63 // intended behavior for which is in flux by itself.
65 WebRuntimeFeatures::enableNotificationConstructor(false); 64 WebRuntimeFeatures::enableNotificationConstructor(false);
66 #else 65 #else
67 WebRuntimeFeatures::enableNavigatorContentUtils(true); 66 WebRuntimeFeatures::enableNavigatorContentUtils(true);
68 #endif // defined(OS_ANDROID) 67 #endif // defined(OS_ANDROID)
69 68
69 #if defined(OS_ANDROID) || defined(USE_AURA)
70 WebRuntimeFeatures::enableCompositedSelectionUpdate(true);
71 #endif
72
70 #if !(defined OS_ANDROID || defined OS_CHROMEOS || defined OS_IOS) 73 #if !(defined OS_ANDROID || defined OS_CHROMEOS || defined OS_IOS)
71 // Only Android, ChromeOS, and IOS support NetInfo right now. 74 // Only Android, ChromeOS, and IOS support NetInfo right now.
72 WebRuntimeFeatures::enableNetworkInformation(false); 75 WebRuntimeFeatures::enableNetworkInformation(false);
73 #endif 76 #endif
74 77
75 #if defined(OS_WIN) 78 #if defined(OS_WIN)
76 // Screen Orientation API is currently broken on Windows 8 Metro mode and 79 // Screen Orientation API is currently broken on Windows 8 Metro mode and
77 // until we can find how to disable it only for Blink instances running in a 80 // until we can find how to disable it only for Blink instances running in a
78 // renderer process in Metro, we need to disable the API altogether for Win8. 81 // renderer process in Metro, we need to disable the API altogether for Win8.
79 // See http://crbug.com/400846 82 // See http://crbug.com/400846
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 base::SplitString( 225 base::SplitString(
223 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), ',', 226 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), ',',
224 &disabled_features); 227 &disabled_features);
225 for (const std::string& feature : disabled_features) { 228 for (const std::string& feature : disabled_features) {
226 WebRuntimeFeatures::enableFeatureFromString(feature, false); 229 WebRuntimeFeatures::enableFeatureFromString(feature, false);
227 } 230 }
228 } 231 }
229 } 232 }
230 233
231 } // namespace content 234 } // 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