| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 } | 561 } |
| 562 | 562 |
| 563 if (!originTrialContext->featureBindingsInstalled("WebBluetooth") && (Runtim
eEnabledFeatures::webBluetoothEnabled() || originTrialContext->isFeatureEnabled(
"WebBluetooth"))) { | 563 if (!originTrialContext->featureBindingsInstalled("WebBluetooth") && (Runtim
eEnabledFeatures::webBluetoothEnabled() || originTrialContext->isFeatureEnabled(
"WebBluetooth"))) { |
| 564 if (executionContext->isDocument()) { | 564 if (executionContext->isDocument()) { |
| 565 // For global interfaces e.g. BluetoothUUID. | 565 // For global interfaces e.g. BluetoothUUID. |
| 566 V8WindowPartial::installWebBluetooth(scriptState, global); | 566 V8WindowPartial::installWebBluetooth(scriptState, global); |
| 567 // For navigator interfaces e.g. navigator.bluetooth. | 567 // For navigator interfaces e.g. navigator.bluetooth. |
| 568 V8NavigatorPartial::installWebBluetooth(scriptState); | 568 V8NavigatorPartial::installWebBluetooth(scriptState); |
| 569 } | 569 } |
| 570 } | 570 } |
| 571 |
| 572 if (!originTrialContext->featureBindingsInstalled("WebShare") && (RuntimeEna
bledFeatures::webShareEnabled() || originTrialContext->isFeatureEnabled("WebShar
e"))) { |
| 573 if (executionContext->isDocument()) { |
| 574 // For navigator interfaces e.g. navigator.share. |
| 575 V8NavigatorPartial::installWebShare(scriptState); |
| 576 } |
| 577 } |
| 571 } | 578 } |
| 572 | 579 |
| 573 void registerInstallOriginTrialsForModules() | 580 void registerInstallOriginTrialsForModules() |
| 574 { | 581 { |
| 575 s_originalInstallOriginTrialsFunction = setInstallOriginTrialsFunction(&inst
allOriginTrialsForModules); | 582 s_originalInstallOriginTrialsFunction = setInstallOriginTrialsFunction(&inst
allOriginTrialsForModules); |
| 576 } | 583 } |
| 577 } // namespace blink | 584 } // namespace blink |
| OLD | NEW |