Commit 32cf5a52 authored by jkarlin@chromium.org's avatar jkarlin@chromium.org

Add enabling/disabling of NetworkInformation API via WebRuntimeFeatures. This...

Add enabling/disabling of NetworkInformation API via WebRuntimeFeatures.  This lets us restrict the API to the platforms that are fully implemented while we develop the others.

See https://codereview.chromium.org/424823002/ for the Chromium code that uses this.

BUG=368358

Review URL: https://codereview.chromium.org/422933003

git-svn-id: svn://svn.chromium.org/blink/trunk@179147 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 1bf7d3f3
......@@ -170,6 +170,11 @@ void WebRuntimeFeatures::enableNavigationTransitions(bool enable)
RuntimeEnabledFeatures::setNavigationTransitionsEnabled(enable);
}
void WebRuntimeFeatures::enableNetworkInformation(bool enable)
{
RuntimeEnabledFeatures::setNetworkInformationEnabled(enable);
}
void WebRuntimeFeatures::enableOrientationEvent(bool enable)
{
RuntimeEnabledFeatures::setOrientationEventEnabled(enable);
......
......@@ -84,6 +84,8 @@ public:
BLINK_EXPORT static void enableNavigationTransitions(bool);
BLINK_EXPORT static void enableNetworkInformation(bool);
BLINK_EXPORT static void enableOrientationEvent(bool);
BLINK_EXPORT static void enablePagePopup(bool);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment