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

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

Issue 2547563002: Unflag the MediaDevices devicechange event in Blink. (Closed)
Patch Set: rebase Created 4 years 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 | « no previous file | third_party/WebKit/LayoutTests/platform/win/virtual/stable/webexposed/global-interface-listing-expected.txt » ('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/feature_list.h" 10 #include "base/feature_list.h"
(...skipping 24 matching lines...) Expand all
35 WebRuntimeFeatures::enableNavigatorContentUtils(false); 35 WebRuntimeFeatures::enableNavigatorContentUtils(false);
36 WebRuntimeFeatures::enableOrientationEvent(true); 36 WebRuntimeFeatures::enableOrientationEvent(true);
37 WebRuntimeFeatures::enableFastMobileScrolling(true); 37 WebRuntimeFeatures::enableFastMobileScrolling(true);
38 WebRuntimeFeatures::enableMediaCapture(true); 38 WebRuntimeFeatures::enableMediaCapture(true);
39 // Android won't be able to reliably support non-persistent notifications, the 39 // Android won't be able to reliably support non-persistent notifications, the
40 // intended behavior for which is in flux by itself. 40 // intended behavior for which is in flux by itself.
41 WebRuntimeFeatures::enableNotificationConstructor(false); 41 WebRuntimeFeatures::enableNotificationConstructor(false);
42 // Android does not yet support switching of audio output devices 42 // Android does not yet support switching of audio output devices
43 WebRuntimeFeatures::enableAudioOutputDevices(false); 43 WebRuntimeFeatures::enableAudioOutputDevices(false);
44 WebRuntimeFeatures::enableAutoplayMutedVideos(true); 44 WebRuntimeFeatures::enableAutoplayMutedVideos(true);
45 // Android does not yet support SystemMonitor.
46 WebRuntimeFeatures::enableOnDeviceChange(false);
45 #else 47 #else
46 WebRuntimeFeatures::enableNavigatorContentUtils(true); 48 WebRuntimeFeatures::enableNavigatorContentUtils(true);
47 #endif // defined(OS_ANDROID) 49 #endif // defined(OS_ANDROID)
48 50
49 #if defined(OS_ANDROID) || defined(USE_AURA) 51 #if defined(OS_ANDROID) || defined(USE_AURA)
50 WebRuntimeFeatures::enableCompositedSelectionUpdate(true); 52 WebRuntimeFeatures::enableCompositedSelectionUpdate(true);
51 #endif 53 #endif
52 54
53 #if !(defined OS_ANDROID || defined OS_CHROMEOS) 55 #if !(defined OS_ANDROID || defined OS_CHROMEOS)
54 // Only Android, ChromeOS support NetInfo right now. 56 // Only Android, ChromeOS support NetInfo right now.
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 339 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
338 std::vector<std::string> disabled_features = base::SplitString( 340 std::vector<std::string> disabled_features = base::SplitString(
339 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 341 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
340 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 342 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
341 for (const std::string& feature : disabled_features) 343 for (const std::string& feature : disabled_features)
342 WebRuntimeFeatures::enableFeatureFromString(feature, false); 344 WebRuntimeFeatures::enableFeatureFromString(feature, false);
343 } 345 }
344 } 346 }
345 347
346 } // namespace content 348 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/win/virtual/stable/webexposed/global-interface-listing-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698