OLD | NEW |
---|---|
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
71 #endif | 71 #endif |
72 | 72 |
73 #if defined(OS_CHROMEOS) | 73 #if defined(OS_CHROMEOS) |
74 WebRuntimeFeatures::EnableForceTallerSelectPopup(true); | 74 WebRuntimeFeatures::EnableForceTallerSelectPopup(true); |
75 #endif | 75 #endif |
76 | 76 |
77 // The Notification Center on Mac OS X does not support content images. | 77 // The Notification Center on Mac OS X does not support content images. |
78 #if !defined(OS_MACOSX) | 78 #if !defined(OS_MACOSX) |
79 WebRuntimeFeatures::EnableNotificationContentImage(true); | 79 WebRuntimeFeatures::EnableNotificationContentImage(true); |
80 #endif | 80 #endif |
81 | |
82 WebRuntimeFeatures::EnableUpdateHoverPostLayout(true); | |
dtapuska
2017/06/28 19:15:17
Please remove. If you are making the feature as a
lanwei
2017/07/04 18:37:14
Done.
| |
81 } | 83 } |
82 | 84 |
83 void SetRuntimeFeaturesDefaultsAndUpdateFromArgs( | 85 void SetRuntimeFeaturesDefaultsAndUpdateFromArgs( |
84 const base::CommandLine& command_line) { | 86 const base::CommandLine& command_line) { |
85 bool enableExperimentalWebPlatformFeatures = command_line.HasSwitch( | 87 bool enableExperimentalWebPlatformFeatures = command_line.HasSwitch( |
86 switches::kEnableExperimentalWebPlatformFeatures); | 88 switches::kEnableExperimentalWebPlatformFeatures); |
87 if (enableExperimentalWebPlatformFeatures) | 89 if (enableExperimentalWebPlatformFeatures) |
88 WebRuntimeFeatures::EnableExperimentalFeatures(true); | 90 WebRuntimeFeatures::EnableExperimentalFeatures(true); |
89 | 91 |
90 WebRuntimeFeatures::EnableOriginTrials( | 92 WebRuntimeFeatures::EnableOriginTrials( |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
398 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { | 400 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { |
399 std::vector<std::string> disabled_features = base::SplitString( | 401 std::vector<std::string> disabled_features = base::SplitString( |
400 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), | 402 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), |
401 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); | 403 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
402 for (const std::string& feature : disabled_features) | 404 for (const std::string& feature : disabled_features) |
403 WebRuntimeFeatures::EnableFeatureFromString(feature, false); | 405 WebRuntimeFeatures::EnableFeatureFromString(feature, false); |
404 } | 406 } |
405 } | 407 } |
406 | 408 |
407 } // namespace content | 409 } // namespace content |
OLD | NEW |